18 TYPE CONVERSION FUNCTIONS
18.32 Converting DINT to STRING
937
18
18.32
Converting DINT to STRING
DINT_TO_STRING(_E)
These functions convert DINT type data to STRING type data.
Setting data
■
Descriptions, types, and data types
Processing details
■
Operation processing
• These functions convert the DINT type data input to (s) to STRING type data and output from (d).
• A value input to (s) is the DINT type data value.
• In "Sign data", 20H (space) is stored when the input value is positive, and 2DH (-) is stored when the input value is
negative.
• 20H (space) is stored in high-order digits when the number of significant figures is small.
Ex.
When "-123456" is input
• 00H is stored at the end (high-order byte of the 6th word) of the character string when SM701 (output character number
selector signal) is off.
Ladder diagram, FBD/LD
Structured text
[Without EN/ENO]
[With EN/ENO]
[Without EN/ENO]
d:=DINT_TO_STRING(s);
[With EN/ENO]
d:=DINT_TO_STRING_E(EN,ENO,s);
Argument
Description
Type
Data type
EN
Execution condition (TRUE: Execution, FALSE: Stop)
Input variable
BOOL
s(IN)
Input
Input variable
DINT
ENO
Output status (TRUE: Normal, FALSE: Abnormal)
Output variable
BOOL
d(DINT_TO_STRING(_E))
Output
Output variable
STRING(11)
(1): "00H" is stored when "SM701" (output character number selector) is off.
s
d
EN
ENO
d
s
DINT
ASCII code for ten-millions place
ASCII code for hundred-millions place
ASCII code for hundred-thousands place
ASCII code for millions place
ASCII code for thousands place
ASCII code for ten-thousands place
ASCII code for tens place
ASCII code for hundreds place
00H
ASCII code for ones place
+1
+2
+3
+4
+5
+0
High-order byte
Low-order byte
ASCII code for billions place
Sign data
(1)
(s)
(d)
DINT
20H (SP)
-123456
20H (SP)
31H (1)
20H (SP)
33H (3)
32H (2)
35H (5)
34H (4)
00H
36H (6)
20H (SP)
2DH (-)
+1
+2
+3
+4
+5
+0
High-order byte
Low-order byte
(s)
(d)
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......