Int_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.9

INT_TO_BOOL(_E)

Outline
This function converts word [signed] data into bit data, and outputs the data obtained by conversion.
1. Format
Function name
INT_TO_BOOL
INT_TO_BOOL_E
*1.
Output variable
2. Set data
Variable
EN
Input
variable
_INT (
ENO
Output
variable
*1
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
This function converts word [signed] data stored in a device specified in
data obtained by conversion to a device specified in
When the input value is "0", this function outputs "FALSE".
When the input value is any value other than "0", this function outputs "TRUE".
0
1567
Word [signed] data
Cautions
Use the function having "_E" in its name to connect a bus.
52
FX
3U(C)
Expression in each language
Structured ladder
INT_TO_BOOL
D0
_INT
X000
INT_TO_BOOL_E
EN
D0
_INT
Execution condition
Conversion source word [signed] data
)
s
Execution status
Bit data after conversion
(
)
d
FALSE
TRUE
Bit data
FX
FX
FX
3G
2N(C)
1N(C)
INT_TO_BOOL(_INT);
Example:
M0:=
*1
M0
INT_TO_BOOL(D0);
INT_TO_BOOL_E(EN,_INT,
Output label);
ENO
Example:
*1
M0
INT_TO_BOOL_E(X000,D0,M0);
Description
.
d
5 Applied Functions
5.1 Type Conversion Functions
FX
FX
/FX
FX
1S
U
2C
0N
ST
Data type
Bit
Word [signed]
Bit
Bit
into bit data, and outputs the
s
FX
0(S)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents