(0)| 4/23/2011 7:21 AM | |
|
Joined: 3/21/2006 Last visit: 10/16/2025 Posts: 10239 Rating:
|
Hello, You idea isgood -How can you read out the date and time with SFC1 (READ_CLK) and input them with SFC0 (SET_CLK)? Best regards, Hristo Mihalev |
Last edited by: O_Moderator at: 4/26/2011 9:15 AMlink edited |
|
| 4/26/2011 10:12 AM | |
|
Joined: 8/31/2005 Last visit: 12/16/2025 Posts: 2198 Rating:
|
Have a look on this blocks: http://support.automation.siemens.com/WW/view/en/21669756 |
|
|
|
| 4/26/2011 11:37 AM | |
|
Joined: 1/28/2009 Last visit: 12/24/2025 Posts: 6885 Rating:
|
Check the following link: Handling Time of Day!Also these codes are tested,you can use MW4 , MD8 or MW12 to generatecompare function as you mentioned in LOGO! [code] CALL "READ_CLK" RET_VAL:=MW0 CDT :=#test CALL "DT_DATE" IN :=#test RET_VAL:=MW4 //DATE CALL "DT_TOD" IN :=#test RET_VAL:=MD8//TIME OF DAY CALL "DT_DAY" IN :=#test RET_VAL:=MW12//DAY L MD 8 L TOD#20:49:20.000 >D S Q 0.0[/code] regards |
| 8/8/2018 2:02 PM | |
|
Posts: 6 Rating:
|
If you have an HMI connected, just use the scheduler to trigger a tag and use it in your PLC. |
Follow us on