Specifications
IEC 1131-3 Instructions
10-32
S7-200 Programmable Controller System Manual
C79000-G7076-C233-01
10.9 IEC Conversion Instructions
Table 10-9 gives page references for the non-standard IEC Conversion
instructions.
Table 10-9 Non-Standard IEC Conversion Instructions
Description
Page
Decode Instruction 9-131
Encode Instruction 9-131
Segment Instruction 9-133
ASCII to Hex, Hex to ASCII Instruction 9-135
Integer to ASCII Instruction 9-136
Double Integer to ASCII Instruction 9-138
Real to ASCII Instruction 9-139
Truncate
The Truncate function converts a real number (IN) into a
double integer value and places the result in OUT. No
rounding is performed.
Error conditions that set ENO = 0: SM1.1 (overflow),
SM4.3 (run-time), 0006 (indirect address)
This function affects the following Special Memory bits:
SM1.1 (overflow)
Inputs/Outputs Operands Data Types
IN VD, ID, QD, MD, SD, SMD, LD, AC, Constant, *VD, *AC,* LD REAL
OUT VD, ID, QD, MD, SD, SMD, LD, AC, *VD, *AC, *LD DINT
L
A
D
TRUNC
EN
IN OUT
ENO
F
B
D
222 224
333
221