32.11.1.2 Explanation of the JADD and JADDP Instructions
The JADD and JADDP instructions are time addition instructions.
When a JADD instruction is executed, the time variable in operand
S1 will be added to the time variable in S2, and the result of the
addition is stored in the time variable in operand D1. The JADD and
JADDP instructions always pass power.
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.
|
In the JADD instruction, you cannot run time add operations on
individual time variable elements (.HR .MIN .SEC).
The time variables and each element thereof are saved as BCD
data.
|