Chapter 4. programming – IAI America S-SEL-E User Manual
Page 150

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
E x p a n s io n
c o n d itio n
(A N D · O R )
In p u t
c o n d itio n
(I/O · F la g )
C o m m a n d
P o s t
(O u tp u t p o rt · F la g )
C o m m a n d
O p e r a n d 1
O p e r a n d 2
O p tio n a l
O p tio n a l
L E T
Va ria b le N o .
D a ta ·Va ria b le N o .
O p tio n a l
E x p a n s io n
c o n d itio n
( A N D · O R )
In p u t
c o n d itio n
( I/O · F la g )
C o m m a n d
P o s t
( O u tp u t p o r t · F la g )
C o m m a n d
O p e r a n d 1
O p e r a n d 2
O p tio n a l
O p tio n a l
A D D
V a r ia b le N o .
D a ta ·V a r ia b le N o .
O p tio n a l