Industry Online Support
Technical Forum
12/31/2011 2:30 AM | |
Joined: 9/27/2006 Last visit: 6/10/2023 Posts: 12040 Rating:
|
Hello noor; Reading and writing the real-time clock of the CPU is done using the standardfunctions SFC0 and SFC1. Look at the contents of the following thread to see how one member learned how to use them: /tf/WW/en/Posts/30976 You can also use the Search box at the right of this page to find many other threads on the subject, ans also interesting FAQs that may help you. Hope this helps, Daniel Chartier |
12/31/2011 11:27 AM | |
Joined: 4/22/2010 Last visit: 12/15/2022 Posts: 5697 Rating:
|
Hello, If it's only a lamp there is no danger, controllingmachine's is and should not be done without supervising. First you have to read the clock with SFC1 READ_CLK , then convert the output (bcd) to integers and after that a few compare functions to set the output at the right date and time. there are lot of threads here about reading'/setting the cpu clock. Here's one: http://support.automation.siemens.com/WW/view/en/21222026 Regards, Marcjan |
Last edited by: Marcjan at: 12/31/2011 11:29 AMProblem solved? |
|
Follow us on