Topic: DMD0040

Help File Version: 2.10.0.636

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:
 

  • Local Time - if the Source Date / Time represents Local Time (which includes adjustments for Time Zone and Daylight Saving Time).
     

  • UTC Time - if the Source Date / Time represents a UTC time (which does NOT include adjustments for Time Zone and Daylight Saving Time).

 


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

 

DTCMP - Compare Date / Time

 

DTDIFF - Difference between two Date / Times

 

DTOFFSET - Add Offset to Date / Time

 

NETTIME - SNTP Client

 

SETTIME - Set PLC Date / Time

 


Related Topics:

Date and Time Overview

 

Predefined Date / Time Structures

 

Date / Time Structure Fields

 


Rung Example: