Description

Used to retrieve system date and time.

Function

The function block is used to get the value of the system time. The following options are available: Year, Month, Day, Hour, Minute, Second and Week. See the following table for details:

Year

2000...2099

Month

1...12

Day

1...31

Hour

0...23

Minute

0...59

Second

0...59

Week

1...7

Input

None

Output

PIN

Description

Output

The value of the system time. There are two sources of system time values:

  • When a real device is connected to the tool, the tool synchronizes the time displayed in the current computer to the real device. Check "Connecting to a physical device" to see when a real device needs to be connected to the tool.
  • When connected to the controller, external devices or software can modify the controller's current system time by modifying the controller's default RTC mapping object value via the Modbus protocol. The specific point of the RTC mapping object can be found at "Object mapping".

Output value

PIN

Data type

Unit

Default value

Range

Output

Analog

N/A

N/A

N/A

Example

Determines the system date to be valid if the system clock is before a set year.