11/3/2012 7:26 PM | |
Joined: 1/28/2009 Last visit: 4/26/2024 Posts: 6838 Rating: (1359) |
Hello, About reading and setting Date and Time of a CPU,you should know data type "Date and Time" and its data structure. All you need is explained throughly in the following link with 2(Reading and setting) samples. How can you read out the date and time with SFC1 (READ_CLK) and input them with SFC0 (SET_CLK)? Variable "Date and Time" con not be monitored as a whole in a variable table.It is consisted of 8 byte in which data related to each record stored as BCD format. Try your own codes and upload your project here for more inspection. Best regards, Hamid Hosseini |
This contribution was helpful to1 thankful Users |
11/5/2012 8:12 PM | |
Joined: 6/11/2012 Last visit: 12/3/2023 Posts: 38 Rating: (0) |
Ok i attached my problem. When i open module information in simulation mode, module time is same on my pc, but when i open DB there is different time. I am confused. Please help me to synchronize time. AttachmentTIME.zip (332 Downloads) |
Last edited by: madnesssm at: 11/5/2012 8:13 PM |
|
11/7/2012 9:19 PM | |
Joined: 6/11/2012 Last visit: 12/3/2023 Posts: 38 Rating: (0) |
Thanks a lot, you help me so much. Best regards |
This contribution was helpful to1 thankful Users |
Follow us on