Mitsubishi Electric MELSEC-Q/L Programming Manual page 45

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

• DINT_TO_STR, DINT_TO_STR_E
Converts double word (signed) type data input to (s) into string type data, and outputs the operation result from (d).
ASCII code of billions place
s
ASCII code of ten-millions place ASCII code of hundred-millions place
ASCII code of hundred-thousands place ASCII code of millions place
Double word (signed) type
ASCII code of thousands place ASCII code of ten-thousands place
ASCII code of tens place ASCII code of hundreds place
When SM701 (signal for switching the number of output characters) is OFF,
"00
" is stored.
H
'20H (space)' is stored in 'Sign data' when the input value is positive; '2DH (-)' is stored when negative.
If the number of significant figures is less, '20H (space)' is stored to high-order digits.
Ex.
Inputting -123456
s
-123456
Double word (signed) type
When SM701 (signal for switching the number of output characters) is OFF, "00H" is stored to the end of the character string.
■Operation result
• Function without EN/ENO
An operation is executed and the operation value is output from (d).
• Function with EN/ENO
The following table shows the executing conditions and operation results.
EN
TRUE (Operation execution)
FALSE (Operation stop)
*1 When FALSE is output from ENO, the data output from (d) is undefined. In this case, create a program so that the data output from (d) is
not used.
d
High-order byte
Low-order byte
Sign data
00
ASCII code of units place
H
d
High-order byte
Low-order byte
20
(space)
2D
H
20
(space)
20
H
H
31
(1)
20
H
H
33
(3)
32
H
35
(5)
34
H
00
36
H
ENO
TRUE
*1
FALSE
String 1st word
2nd word
3rd word
4th word
5th word
6th word
( - )
String 1st word
H
(space)
2nd word
(space)
3rd word
(2)
4th word
H
(4)
5th word
H
(6)
6th word
H
(d)
Operation output value
Undefined value
5 APPLICATION FUNCTIONS
5.1 Type Conversion Functions
5
43

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents