Str_To_Bool(_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.36 STR_TO_BOOL(_E)

Outline
This function converts string data into bit data, and outputs the data obtained by conversion.
1. Format
Function name
STR_TO_BOOL
STR_TO_BOOL_
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 stored in a device specified in
obtained by conversion to a device specified in
'0'
'12'
String data
Cautions
1) Use the function having "_E" in its name to connect a bus.
2) When handling character 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_BOOL
Label
_STRING
*1
STR_TO_BOOL_E
X000
EN
ENO
Label
_STRING
*1
Execution condition
Conversion source string data
)
s
Execution status
Bit data after conversion
(
)
d
FALSE
TRUE
Bit data
3G
FX
2N(C)
FX
1N(C)
FX
ST
STR_TO_BOOL(_STRING);
Example:
M0:=
M0
STR_TO_BOOL(Label);
STR_TO_BOOL_E(EN,_STRING,
Output label);
Example:
STR_TO_BOOL_E(X000, Label,
M0
M0);
Description
into bit data, and outputs the data
s
.
d
5 Applied Functions
5.1 Type Conversion Functions
1S
FX
U
/FX
2C
FX
0N
FX
Data type
Bit
String
Bit
Bit
107
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