Topic: DMD0040 SETTIME - Set PLC Date / Time |
|
The Set PLC Date/Time (SETTIME) instruction is used to change the PLC's internal clock & calendar to the Date and Time specified in a User Date / Time structure or a System Date / Time Structure.
|
|
Parameters:Note: Use the F9 key or click the 'three dot box' at the right edge of the parameter field to open the Default Element Selection Tool (the Element Picker or the Element Browser) or use the Down-Arrow key (Auto-Complete) on any parameter field to see a complete list of the memory locations that are valid for that parameter of the instruction.
Source Date / Time - specifies a Date / Time structure that contains the desired Date and Time information. This can be any of the system-defined Date / Time structures, or any user-defined Date / Time structure.
Source Type - selects the format of the data that is contained in the Source Date / Time structure:
|
|
Status Display:
The gray triangle at the right end of an input leg indicates the input is edge triggered, meaning that each time the input logic transitions from OFF to ON the instruction will run one time to completion.
The status shows the fully-qualified Date / Time value.
|
|
See Also:DT2EPOCH - Convert Date / Time to 1970 Epoch
EPOCH2DT - Convert 1970 Epoch Time to Date / Time
DTDIFF - Difference between two Date / Times
DTOFFSET - Add Offset to Date / Time
SETTIME - Set PLC Date / Time
|
|
Related Topics:
Predefined Date / Time Structures
|
|
Rung Example:
|
|