Bool_To_Dint(_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.2

BOOL_TO_DINT(_E)

Outline
This function converts bit data into double word [signed] data, and outputs the data obtained by conversion.
1. Format
Function name
BOOL_TO_DINT
BOOL_TO_DINT_
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 stored in a device specified in
the data obtained 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 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.
38
FX
3U(C)
Expression in each language
Structured ladder
BOOL_TO_DINT
M0
_BOOL
BOOL_TO_DINT_E
X000
EN
ENO
M0
_BOOL
Execution condition
Conversion source bit data
)
s
Execution status
Double word [signed] data after conversion
(
)
d
0
1
Double word [signed] data
FX
3G
FX
2N(C)
FX
1N(C)
BOOL_TO_DINT(_BOOL);
Example:
Label:=
*1
Label
BOOL_TO_DINT(M0);
BOOL_TO_DINT_E(EN,
_BOOL, Output label);
Example:
BOOL_TO_DINT_E(X000,M0,
*1
Label
Label);
Description
into double word [signed] data, and outputs
s
.
d
5 Applied Functions
5.1 Type Conversion Functions
FX
1S
FX
U
/FX
2C
FX
ST
Data type
Bit
Bit
Bit
Double Word [signed]
0N
FX
0(S)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents