Time variables in JRD and JRDP 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 JRD and JRDP instructions receive power, the current time will be stored in the variable in D1. The stored time variable can be extracted into hours, minutes and seconds by specifying the structure element. When the time 12:10:45 is stored in the time variable D1, the .HR time is 12, the .MIN time is 10, and the .SEC time is 45.