31.9.2.1 Explanation of the JSET and JSETP Instructions

Time variables used in JSET and JSETP instructions are structure variables. The following table lists the internal structures.

Time Variable

Time Variable

Variables Settings

Description

VariableName.HR

Integer Variable

Hours are input in BCD.

VariableName.MIN

Integer Variable

Minutes are input in BCD.

VariableName.SEC

Integer Variable

Seconds are input in BCD.

When JSET and JSETP instructions receive power, the specified time will be stored in the time variable. To set the time, use JSET and JSETP instructions. The time variable in D1 can be extracted into hours, minutes, and seconds by specifying structure elements.

When the current time 12:10:45 is stored in D1, the values 12, 10, and 45 are stored in .HR, .MIN and .SEC, respectively.