Converting String To Dint - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

15.46

Converting STRING to DINT

STRING_TO_DINT(_E)
These functions convert STRING type data to DINT type data.
Ladder diagram
[Without EN/ENO]
s
d
Setting data
■Descriptions, types, and data types
Argument
Description
EN
Execution condition (TRUE: Execution, FALSE: Stop)
s
Input
ENO
Output status (TRUE: Normal, FALSE: Abnormal)
d
Output
Processing details
■Operation processing
• These functions convert the STRING type data input to (s) to DINT type data and output from (d).
1st word of the character string
2nd word
3rd word
4th word
5th word
6th word
(Indicates the end of the character string.)
• A value input to (s) is the STRING type data value and within the following range.
• Within the range of "30H" to "39H", "20H", "2DH", and "00H" in ASCII code
• Within the range of "-2147483648" to "2147483647" as the STRING type data value
■Operation result
1.
Function without EN/ENO
The following table lists the operation results.
Operation result
No operation error occurred
An operation error occurred
[With EN/ENO]
EN
ENO
s
d
(s)
High-order byte
Low-order byte
ASCII code for billions place
ASCII code for ten-millions place
ASCII code for hundred-millions place
ASCII code for millions place
ASCII code for hundred-thousands 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
Structured text
[Without EN/ENO]
d:=STRING_TO_DINT(s);
[With EN/ENO]
d:=STRING_TO_DINT_E(EN,ENO,s);
Type
Input variable
Input variable
Output variable
Output variable
Sign data
DINT
(d)
Operation output value
Indefinite value
15 TYPE CONVERSION FUNCTIONS
Data type
BOOL
STRING(11)
BOOL
DINT
(d)
15.46 Converting STRING to DINT
15
749

Advertisement

Table of Contents
loading

Table of Contents