Integer to Byte Convert

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

Memory Ranges ENO Errors Instruction Support for S7-200 CPUs SIMATIC/International Mnemonics
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:

0006 (indirect address), SM1.1 (overflow), SM4.3 (run-time)

These instructions affect the following Special Memory bits:

SM1.1 (overflow)