User guide
Page 145
ADD (Addition)
[Function] Adds contents of the variable in Operand 1 and the data in Operand 2, then stores this in the variable in
Operand 1. Adds the contents of the variable in Operand 1 and the contents of the variable in Operand 2,
then stores this in the variable in Operand 1 variable. If there is a post instruction (flag, output port), it turns
ON when the computation result is zero.
[Example] ADD 1 10
If the content of variable 1 in Operand 1 is 10, then 10 (content of variable 1 in Operand 1) + 10 (data
in Operand 2) = 20, and after the command is executed, the content of variable 1 becomes 20.
ADD 1 *2
If variable 1 in Operand 1 and variable *2 in Operand 2 both contain 10, then 10 (content of variable
1 in Operand 1) + 10 (contents of variable *2 in Operand 2) = 20, and after the command is executed,
the content of variable 1 becomes 20.
2-8 Calculation Commands
LET (Assignment)
[Function] Assigns data to the variable. When Operand 1 is 0, the post section turns ON.
[Example] LET 1 10
Assign a value of 10 to variable register 1.
LET 1 *2
Substitute variable 1 with contents of variable 2.
Chapter 4. Programming
Expansion
condition
(AND · OR)
Input
condition
(I/O · Flag)
Command
Post
(Output port · Flag)
Command Operand 1 Operand 2
Optional Optional LET Variable No. Data·Variable No. Optional
Expansion
condition
(AND · OR)
Input
condition
(I/O · Flag)
Command
Post
(Output port · Flag)
Command Operand 1 Operand 2
Optional Optional ADD Variable No. Data·Variable No. Optional