EasyManua.ls Logo

Siemens SIMATIC S7-200 - Integer to Real

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-132
S7-200 Programmable Controller System Manual
A5E00066097-02
Double Integer to Integer
The Double Integer to Integer instruction converts the
double integer value (IN) to an integer value and places
the result into the variable specified by OUT.
If the value that you are converting is too large to be
represented in the output, then the overflow bit is set 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 VD, ID, QD, MD, SMD, AC, LD, HC, Constant, *VD, *AC, SD, *LD DINT
OUT VW, IW, QW, MW, SW, SMW, LW, T, C, AC, *VD, *LD, *AC INT
Integer to Double Integer
The Integer to Double Integer instruction converts the
integer value (IN) to a double integer value and places
the result into the variable specified by OUT. The sign is
extended.
Error conditions that set ENO = 0: SM4.3 (run-time),
0006 (indirect address)
Inputs/Outputs Operands Data Types
IN VW, IW, QW, MW, SW, SMW, LW, T, C, AIW, AC, Constant, *AC,
*VD, *LD
INT
OUT VD, ID, QD, MD, SD, SMD, LD, AC, *VD, *LD, *AC DINT
Integer to Real
To change an integer to a real number, use the Integer to Double Integer
instruction (page 9-130) and then the Double Integer to Real instruction. Refer to
Figure 9-42.
L
A
D
S
T
L
DTI IN, OUT
F
B
D
DI_I
EN
ENO
IN OUT
222 224
✓✓
221 226
L
A
D
S
T
L
ITD IN, OUT
F
B
D
I_DI
EN ENO
IN OUT
222 224
✓✓
221 226

Table of Contents

Other manuals for Siemens SIMATIC S7-200

Related product manuals