Converting Word (Signed), Double Word (Signed) Type To Bit Type - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Converting word (signed), double word (signed) type to bit type

INT_TO_BOOL(_E), DINT_TO_BOOL(_E)
High
Basic
Process
performance
Structured ladder/FBD
INT_TO_BOOL_E
EN
ENO
s
The following function(s) can go in the dotted squares.
INT_TO_BOOL, INT_TO_BOOL_E, DINT_TO_BOOL, DINT_TO_BOOL_E
■Argument
Input/output
argument
Input argument
Output argument
Processing details
■Operation processing
• INT_TO_BOOL, INT_TO_BOOL_E
Converts word (signed) type data input to (s) into bit type data, and outputs the operation result from (d).
When the input value is 0, FALSE is output in bit type data.
When the input value is other than 0, TRUE is output in bit type data.
s
0
1567
Word (signed) type
• DINT_TO_BOOL, DINT_TO_BOOL_E
Converts double word (signed) type data input to (s) into bit type data, and outputs the operation result from (d).
When the input value is 0, FALSE is output in bit type data.
When the input value is other than 0, TRUE is output in bit type data.
s
0
12345678
Double word (signed) type
5 APPLICATION FUNCTIONS
36
5.1 Type Conversion Functions
Redundant Universal
LCPU
ST
ENO:=
INT_TO_BOOL_E
d
Name
Description
EN
Executing condition (TRUE: Execution, FALSE:
Stop)
s(_INT, _DINT)
Input
ENO
Execution result (TRUE: Normal, FALSE: Error)
d
Output
(EN, s, d);
d
FALSE
TRUE
Bit type
d
FALSE
TRUE
Bit type
Data type
Bit
Word (signed), double word (signed)
Bit
Bit

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents