Industry Online Support
Technical Forum
2/17/2011 11:41 AM | |
Joined: 1/28/2009 Last visit: 1/19/2025 Posts: 6858 Rating: (1366) |
Check the change program to provide accuracy of millisecond to the previous version.Simply multiply by 1000 in real and round the value transfer the value to a double word which is format of TIME.See the attachment for output of my project. [code] L MD 4 //speed L 0 ==R JC err TAK L MD 0 //distance TAK /R //TIME REAL L 1.000000e+003 *R RND //time DW err: T MD 8 CALL "TIM_S5TI" //TIME TO S5 TIMER IN :=MD8 RET_VAL:=MW12[/code] BR AttachmentTIME_CONV.zip (312 Downloads) |
Last edited by: hdhosseini at: 2/17/2011 11:43 AM |
|
Follow us on