Page 1 of 1

DATE_TIME function with Siemens PLC

Posted: Tue Nov 29, 2011 2:59 am
by bjornidar
Hi,

I was wondering if it's possible to adjust the CPU clock on a Siemens PLC from an iX application?

In the Developer I see a dataype = DATETIME, but I'm not sure if this has the same/ correct syntax..

Re: DATE_TIME function with Siemens PLC

Posted: Tue Nov 29, 2011 9:42 am
by Ron L.
The format of DATETIME is documented in section 4.14 of the iX Developer Reference Manual.
https://www.beijerelectronics.com/API/S ... 3D3C1751/1

It requires 7 "16-bit" words/registers on the PLC to store the DATETIME. This is not Siemens specific and may require some PLC logic to read those values and update it's clock.

Re: DATE_TIME function with Siemens PLC

Posted: Wed Nov 30, 2011 4:51 am
by bjornidar
Thank you! Will try it!