EasyManua.ls Logo

Siemens SIMATIC S7-200 - Page 321

Siemens SIMATIC S7-200
606 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SIMATIC Instructions
9-133
S7-200 Programmable Controller System Manual
A5E00066097-02
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
F
B
D
B_I
EN ENO
IN OUT
222 224
✓✓
221 226
BTI IN, OUT
L
A
D
S
T
L
ITB IN, OUT
F
B
D
I_B
EN
ENO
IN OUT
222 224
✓✓
221 226

Table of Contents

Other manuals for Siemens SIMATIC S7-200

Related product manuals