Simatic Conversion Instructions; Bcd To Integer, Integer To Bcd - Siemens SIMATIC S7-200 System Manual

Hide thumbs Also See for SIMATIC S7-200:
Table of Contents

Advertisement

SIMATIC Instructions
9.13

SIMATIC Conversion Instructions

BCD to Integer, Integer to BCD

L
BCD_I
A
D
EN
F
IN
B
D
I_BCD
EN
IN
S
BCDI
T
L
IBCD
221
222 224
Inputs/Outputs
IN
VW, T, C, IW, QW, MW, SMW, LW, AC, AIW, Constant, *VD, *AC,
SW, *LD
OUT
VW, T, C, IW, QW, MW, SMW, LW, AC, *VD, *AC, SW, *LD
Double Integer to Real
L
A
EN
D
IN
F
B
D
S
DTR
T
L
221
222 224
Inputs/Outputs
IN
VD, ID, QD, MD, SMD, AC, LD, HC, Constant, *VD, *AC, SD, *LD
OUT
VD, ID, QD, MD, SMD, LD, AC, *VD, *AC, SD, *LD
9-130
The BCD to Integer instruction converts the input
Binary-Coded Decimal (IN) to an integer value and loads
ENO
the result into the variable specified by OUT. The valid
range for IN is 0 to 9999 BCD.
OUT
The Integer to BCD instruction converts the input integer
value (IN) to a Binary-Coded Decimal and loads the
ENO
result into the variable specified by OUT. The valid range
for IN is 0 to 9999 integer.
OUT
Error conditions that set ENO = 0: SM1.6 (BCD error),
SM4.3 (run-time), 0006 (indirect address)
OUT
These instructions affect the following Special Memory
OUT
bits: SM1.6 (invalid BCD)
226
Operands
The Double Integer to Real instruction converts a
DI_R
32-bit, signed integer (IN) into a 32-bit real number and
ENO
places the result into the variable specified by OUT.
OUT
Error conditions that set ENO = 0: SM4.3 (run-time),
0006 (indirect address)
IN, OUT
226
Operands
S7-200 Programmable Controller System Manual
Data Types
WORD
WORD
Data Types
DINT
REAL
A5E00066097-02

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents