Specifications

SIMATIC Instructions
9-129
S7-200 Programmable Controller System Manual
C79000-G7076-C233-01
Byte to Integer
The Byte to Integer instruction converts the byte value
(IN) to an integer value and places the result into the
variable specified by OUT. The byte is unsigned,
therefore there is no sign extension.
Error conditions that set ENO = 0: SM4.3 (run-time),
0006 (indirect address)
Inputs/Outputs Operands Data Types
IN VB, IB, QB, MB, SB, SMB, LB, AC, Constant, *AC, *VD, *LD BYTE
OUT VW, IW, QW, MW, SW, SMW, LW, T, C, AC, *VD, *LD, *AC INT
Integer to Byte
The Integer to Byte instruction converts the word value
(IN) to a byte value and places the result into the variable
specified by OUT.
Values 0 to 255 are converted. All other values result in
overflow and the output is not affected.
Error conditions that set ENO = 0: SM1.1 (overflow),
SM4.3 (run-time), 0006 (indirect address)
These instructions affect the following Special Memory
bits: SM1.1 (overflow)
Inputs/Outputs Operands Data Types
IN VW, IW, QW, MW, SW, SMW, LW, T, C, AIW, AC, Constant, *VD,
*LD, *AC
INT
OUT VB, IB, QB, MB, SB, SMB, LB, AC, *VD, *AC, *LD BYTE
L
A
D
S
T
L
BTI IN, OUT
F
B
D
B_I
EN ENO
IN OUT
222 224
333
221
L
A
D
S
T
L
ITB IN, OUT
F
B
D
I_B
EN
ENO
IN OUT
222 224
333
221