S5-115U Manual
STL
L
IW 12
Load the contents of input word IW 12 into ACCUM 1.
CSW
Invert all bits. Add a "1" at the least significant position.
T
DW 100
Transfer the altered word to data word DW 100.
15
ACCUM 1
0 1 0 1 1 0 0 1
15
ACCUM 1
1 0 1 0 0 1 1 0 0 0 1 1 1 0 1 1
EWA 4NEB 811 6130-02b
Explanation
Numeric Example
IW 12
0
1 1 0 0 0 1 0 1
+1
CSW
0
STEP 5 Operations
Form the negative value of the
value in input word IW 12.
8-51