Word_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.26 WORD_TO_BOOL(_E)

Outline
This function converts word [unsigned]/bit string [16-bit] data into bit data, and outputs the data obtained by
conversion.
1. Format
Function name
WORD_TO_BOO
L
WORD_TO_BOO
L_E
*1.
Output variable
2. Set data
Variable
EN
Input
variable
_WORD (
ENO
Output
variable
*1
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
This function converts word [unsigned]/bit string [16-bit] data stored in a device specified in
and outputs the data obtained by conversion to a device specified in
0H
1567H
Word [unsigned]/
bit string [16-bit] data
Cautions
Use the function having "_E" in its name to connect a bus.
FX
3U(C)
FX
Expression in each language
Structured ladder
WORD_TO_BOOL
D0
_WORD
X000
WORD_TO_BOOL_E
EN
ENO
D0
_WORD
Execution condition
Conversion source word [unsigned]/bit String [16-bit] data
)
s
Execution status
Bit data after conversion
(
)
d
FALSE
TRUE
Bit data
3G
FX
2N(C)
FX
1N(C)
FX
ST
WORD_TO_BOOL(_WORD);
Example:
M0:=
*1
M0
WORD_TO_BOOL(D0);
WORD_TO_BOOL_E(EN,
_WORD, Output label);
Example:
WORD_TO_BOOL_E(X000,D0,
*1
M0
M0);
Description
.
d
5 Applied Functions
5.1 Type Conversion Functions
1S
FX
U
/FX
2C
FX
0N
FX
Data type
Bit
Word [unsigned]/
Bit String [16-bit]
Bit
Bit
into bit data,
s
1
0(S)
2
3
4
5
6
A
87

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents