5/25/2011 5:25 AM | |||||||||||||||||||||||||||||||
Joined: 1/28/2009 Last visit: 5/26/2023 Posts: 6802 Rating:
|
Check this FAQ: How can you read out the date and time with SFC1 (READ_CLK) and input them with SFC0 (SET_CLK)?
Also check the following codes for a solution provided there based on address registers: [code]L W#16#FFF0 L W[AR1,P#6.0] AW T "MILLI SECONDS" //WORD[/code] |
||||||||||||||||||||||||||||||
Last edited by: hdhosseini at: 5/25/2011 5:31 AM |
|||||||||||||||||||||||||||||||
This contribution was helpful to
1 thankful Users |
5/25/2011 6:10 AM | |
Joined: 2/6/2009 Last visit: 4/19/2023 Posts: 932 Rating:
|
Hihdhosseini, Thank you very much. Very useful information.
|
_______________________________________________________________ |
|
This contribution was helpful to
1 thankful Users |
5/25/2011 8:54 AM | |
Joined: 1/28/2009 Last visit: 5/26/2023 Posts: 6802 Rating:
|
Check the following codes in STL and the attachment as the source program. Same can be done in SCL as you wrote : [code] CALL "READ_CLK" RET_VAL:=#ret1 CDT :=#hd LAR1 P##hd L W [AR1,P#6.0] T MW 100 L W#16#FFF0 AW SRW 4 BTI T MW 102[/code] AttachmentTest.zip (128 Downloads) |
5/25/2011 11:22 AM | |
Joined: 7/29/2008 Last visit: 5/26/2023 Posts: 96 Rating:
|
Thank you very much hdhosseini! |
This contribution was helpful to
1 thankful Users |
Follow us on