Siemens SIMATIC S5-115U User Manual page 251

Simatic s5 series cpu 941-7ub11 cpu 942-7ub11 cpu 943-7ub11 and cpu 943-7ub21 cpu 944-7ub11 and cpu 944-7ub21
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents