Str_To_Dint(_E) - Mitsubishi Electric MELSEC FX Series Structured Programming Manual

Hide thumbs Also See for MELSEC FX Series:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
(Application Functions)

5.1.38 STR_TO_DINT(_E)

Outline
This function converts string data into double word [signed] data, and outputs the data obtained by
conversion.
1. Format
Function name
STR_TO_DINT
STR_TO_DINT_E
*1.
Output variable
2. Set data
Variable
EN
Input
variable
_STRING (
ENO
Output
variable
*1
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
This function converts string data (6 words) stored in a device specified in
data, and outputs the data obtained by conversion to a device specified in
1st word
String
2nd word
3rd word
4th word
5th word
6th word
Cautions
1) Use the function having "_E" in its name to connect a bus.
2) When handling string data and 32-bit data in structured programs, you cannot specify 16-bit devices
directly, different from simple projects. Use labels when handling string data and 32-bit data.
You can specify 32-bit counters directly, however, because they are 32-bit devices.
Use global labels when specifying labels.
FX
3U(C)
Expression in each language
Structured ladder
STR_TO_DINT
Label 1
_STRING
*1
X000
STR_TO_DINT_E
EN
ENO
Label 1
_STRING
*1
Execution condition
Conversion source string data
)
s
Execution status
Double word [signed] data after conversion
(
)
d
High-order byte
ASCII code for billions place
ASCII code for ten-millions place ASCII code for hundred-millions place
ASCII code for hundred-thousands place
ASCII code for thousands place
ASCII code for tens place ASCII code for hundreds place
(Ignore)
FX
3G
FX
2N(C)
FX
1N(C)
ST
STR_TO_DINT(_STRING);
Example:
Label 2:=
Label 2
STR_TO_DINT(Label 1);
STR_TO_DINT_E(EN,_STRING,
Output label);
Example:
STR_TO_DINT_E(X000, Label 1,
Label 2
Label 2);
Description
Low-order byte
Sign data
ASCII code for millions place
ASCII code for ten-thousands place
ASCII code for ones place
5 Applied Functions
5.1 Type Conversion Functions
FX
1S
FX
U
/FX
2C
FX
0N
Data type
Bit
String
Bit
Double Word [signed]
into double word [signed]
s
.
d
Double word [signed] data
1
FX
0(S)
2
3
4
5
6
A
111

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents