(1)| 5/25/2011 5:25 AM | |||||||||||||||||||||||||||||||
|
Joined: 1/28/2009 Last visit: 1/5/2026 Posts: 6892 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
|
|||||||||||||||||||||||||||||||
| 5/25/2011 6:10 AM | |
|
Joined: 2/6/2009 Last visit: 1/6/2026 Posts: 940 Rating:
|
Hihdhosseini, Thank you very much. Very useful information.
|
|
_______________________________________________________________ |
|
This contribution was helpful to
|
|
| 5/25/2011 8:54 AM | |
|
Joined: 1/28/2009 Last visit: 1/5/2026 Posts: 6892 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 (361 Downloads) |
| 5/25/2011 11:22 AM | |
|
Joined: 7/29/2008 Last visit: 12/6/2025 Posts: 101 Rating:
|
Thank you very much hdhosseini! |
This contribution was helpful to
|
|
Follow us on