Decode
L
A
D
EN
F
IN
B
D
S
T
DECO IN, OUT
L
221
222
Inputs/Outputs
IN
VB, IB, QB, MB, SMB, LB, SB, AC, Constant, *VD, *AC, *LD
OUT
VW, IW, QW, MW, SMW, LW, SW, AQW, T, C, AC, *VD, *AC, *LD
Encode
L
A
D
EN
F
IN
B
D
S
T
ENCO
L
221
222 224
Inputs/Outputs
IN
VW, T, C, IW, QW, MW, SMW, AC, LW, AIW, Constant, *VD, *AC,
SW, *LD
OUT
VB, IB, QB, MB, SMB, LB, AC, *VD, *AC, SB, *LD
S7-200 Programmable Controller System Manual
A5E00066097-02
The Decode instruction sets the bit in the output word
(OUT) that corresponds to the bit number represented by
DECO
ENO
the least significant "nibble" (4 bits) of the input byte (IN).
All other bits of the output word are set to 0.
OUT
Error conditions that set ENO = 0: SM4.3 (run-time),
0006 (indirect address)
224
226
Operands
The Encode instruction writes the bit number of the least
significant bit set of the input word (IN) into the least
ENCO
significant "nibble" (4 bits) of the output byte (OUT).
ENO
Error conditions that set ENO = 0: SM4.3 (run-time),
OUT
0006 (indirect address)
IN, OUT
226
Operands
SIMATIC Instructions
Data Types
BYTE
WORD
Data Types
WORD
BYTE
9-135