S5-100U STEP 5 Operations
+1
CSW
015
ExplanationSTL
L IW 12
CSW
T DW 100
Load the contents of input word IW12 into ACCU 1.
Invert all bits and add a “1”.
Transfer the altered word to data word DW100.
Numeric Example
Form the negative value of the value
in input word IW12.
1 0 1 0 0 1 1 0 0 0 1 1 1 0 1 1
15 0
0 1 0 1 1 0 0 1ACCU 1
ACCU 1
IW12
1 1 0 0 0 1 0 1
EWA 4NEB 812 6120-02
8-51