22.11.5.4 Write to DATE_AND_TIME type

Creates a DATE_AND_TIME string using the entered date and time, then stores it in the specified address.

You can use Write to DATE_AND_TIME type if you register a device/PLC tag.

SetDT (Device address, DATE_AND_TIME string)

Example expression:

SetDT("[w:[PLC1]TagName]","1970-01-02-03:04:05.06")

In the above example, write "02.01.70" to DATE_AND_TIME type device "[w:[PLC1]TagName]".