Dword_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.27 DWORD_TO_BOOL(_E)

Outline
This function converts double word [unsigned]/bit string [32-bit] data into bit data, and outputs the data
obtained by conversion.
1. Format
Function name
DWORD_TO_BO
OL
DWORD_TO_BO
OL_E
*1.
Output variable
2. Set data
Variable
EN
Input
variable
_DWORD (
ENO
Output
variable
*1
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
This function converts double word [unsigned]/bit string [32-bit] data stored in a device specified in
bit data, and outputs the data obtained by conversion to a device specified in
0H
12345678H
Double word [unsigned]/
bit string [32-bit] data
Cautions
1) Use the function having "_E" in its name to connect a bus.
2) When handling 32-bit data in structured programs, you cannot specify 16-bit devices directly, different
from simple projects. Use labels when handling 32-bit data.
You can specify 32-bit counters directly, however, because they are 32-bit devices.
Use global labels when specifying labels.
FX
3U(C)
FX
Expression in each language
Structured ladder
DWORD_TO_BOOL
Label
_DWORD
X000
DWORD_TO_BOOL_E
EN
ENO
Label
_DWORD
Execution condition
Conversion source double word [unsigned]/bit string [32-bit] data
)
s
Execution status
Bit data after conversion
(
)
d
FALSE
TRUE
Bit data
3G
FX
2N(C)
FX
1N(C)
FX
ST
DWORD_TO_BOOL(_DWORD);
Example:
M0:=
*1
M0
DWORD_TO_BOOL(Label);
DWORD_TO_BOOL_E(EN,
_DWORD, Output label);
Example:
DWORD_TO_BOOL_E(X000,
*1
M0
Label, M0);
Description
5 Applied Functions
5.1 Type Conversion Functions
1S
FX
U
/FX
2C
FX
0N
FX
Data type
Bit
Double Word [unsigned]/
Bit string [32-bit]
Bit
Bit
s
.
d
1
0(S)
2
3
4
5
6
into
A
89

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents