Specifications

IEC 1131-3 Instructions
10-33
S7-200 Programmable Controller System Manual
C79000-G7076-C233-01
Binary Coded Decimal to Integer, Integer to BCD
The BCD to Integer function converts the input
Binary-Coded Decimal value (IN) to an integer value and
loads the result into the variable specified by OUT.
The Integer to BCD function converts the input integer
value to a Binary-Coded Decimal value and loads the
result in OUT.
Error conditions that set ENO = 0: SM1.6 (BCD),
SM4.3 (run-time), 0006 (indirect address)
These functions affect the following Special Memory bits:
SM1.6 (invalid BCD)
Inputs/Outputs Operands Data Types
IN VW, IW, QW, MW, SW, SMW, LW, T, C, AIW, AC, Constant,
*VD, *LD, *AC
WORD
OUT VW, IW, QW, MW, SW, SMW, LW, T, C, AC, *VD, *AC, *LD WORD
Double Integer to Real
The Double Integer to Real function converts a 32-bit,
signed integer (IN) into a 32-bit real number loads the
result into the variable specified by OUT.
Error conditions that set ENO = 0: SM4.3 (run-time),
0006 (indirect address)
Inputs/Outputs Operands Data Types
IN VD, ID, QD, MD,SD, SMD, LD, HC, AC, Constant,*VD,*LD,
*AC
DINT
OUT VD, ID, QD, MD, SD, SMD, LD, AC, *VD, *LD, *AC REAL
L
A
D
BCD_TO_I
EN
IN OUT
F
B
D
EN
IN OUT
I_TO_BCD
222 224
333
221
ENO
ENO
L
A
D
F
B
D
DI_TO_R
EN
IN OUT
ENO
222 224
333
221