Bool_To_Str(_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.3

BOOL_TO_STR(_E)

Outline
This function converts bit data into string data, and outputs the data obtained by conversion.
1. Format
Function name
BOOL_TO_STR
BOOL_TO_STR_
E
*1.
Output variable
2. Set data
Variable
EN
Input
variable
_BOOL (
ENO
Output
variable
*1
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
This function converts bit data input to a deice specified in
by conversion to a device specified in
FALSE
TRUE
Bit data
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.
40
FX
3U(C)
Expression in each language
Structured ladder
BOOL_TO_STR
M0
_BOOL
*1
X000
BOOL_TO_STR_E
EN
ENO
M0
_BOOL
*1
Execution condition
Conversion source bit data
)
s
Execution status
String data after conversion
(
)
d
.
d
"0"
"1"
String data
FX
FX
FX
3G
2N(C)
1N(C)
ST
BOOL_TO_STR(_BOOL);
Example:
Label:=
Label
BOOL_TO_STR(M0);
BOOL_TO_STR_E(EN,
_BOOL, Output label);
Example:
BOOL_TO_STR_E(X000,M0,
Label
Label);
Description
into string data, and outputs the data obtained
s
5 Applied Functions
5.1 Type Conversion Functions
FX
FX
/FX
FX
1S
U
2C
0N
Data type
Bit
Bit
Bit
String
FX
0(S)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents