Str_To_Int(_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.37 STR_TO_INT(_E)

Outline
This function converts string data into word [signed] data, and outputs the data obtained by conversion.
1. Format
Function name
STR_TO_INT
STR_TO_INT_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 (3 words) stored in a device specified in
outputs the data obtained by conversion to a device specified in
String
1st word
2nd word
3rd word
Cautions
1) Use the function having "_E" in its name to connect a bus.
2) When handling string data in structured programs, you cannot specify 16-bit devices directly, different
from simple projects. Use labels when handling string data.
Use global labels when specifying labels.
FX
3U(C)
FX
Expression in each language
Structured ladder
STR_TO_INT
Label
_STRING
*1
STR_TO_INT_E
X000
EN
ENO
Label
_STRING
*1
Execution condition
Conversion source string data
)
s
Execution status
Word [signed] data after conversion
(
)
d
High-order byte
ASCII code for ten-thousands place
ASCII code for hundreds place ASCII code for thousands place
ASCII code for ones place
ASCII code for tens place
3G
FX
2N(C)
FX
1N(C)
FX
ST
STR_TO_INT(_STRING);
Example:
D10:=
D10
STR_TO_INT(Label);
STR_TO_INT_E(EN,_STRING,
Output label);
Example:
STR_TO_INT_E(X000, Label,
D10
D10);
Description
.
d
Low-order byte
Sign data
5 Applied Functions
5.1 Type Conversion Functions
1S
FX
U
/FX
2C
FX
0N
FX
Data type
Bit
String
Bit
Word [signed]
into word [signed] data, and
s
Word [signed] data
109
1
0(S)
2
3
4
5
6
A

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents