
Ladder
223
Input to Register
SI Description SB Function
SI170 Address of MI
containing
integer value
SB172 I to MI
SI171 Start address of
bit array (vector)
SB173
MI to O
SI172 Amount of bits
Example: Input to MI, SB 172
1. Store the value 7 into SI 170, 2 into SI 171 and 4 into SI 172.
2. Set SB 172 to ON.
The program takes the status of I2 to I5, and changes the status of the respective bits in MI
7.
Bits in the target register that are outside of the defined range are not affected.
Example: MI to Output, SB 173
1. Store the value 7 into SI 170, 3 into SI 171 and 7into SI 172.
2. Set SB 173 to ON.
The program will take the binary value of the MI 7, and change the status of the respective
outputs in the defined vector, O3 to O7.
Comentarios a estos manuales