Converting Word (Unsigned)/16-Bit String, Double Word (Unsigned)/32-Bit String 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 (unsigned)/16-bit string, double word
(unsigned)/32-bit string type to bit type
WORD_TO_BOOL(_E), DWORD_TO_BOOL(_E)
High
Basic
Process
Redundant Universal
performance
Structured ladder/FBD
WORD_TO_BOOL_E
EN
ENO
s
d
The following function(s) can go in the dotted squares.
WORD_TO_BOOL, WORD_TO_BOOL_E, DWORD_TO_BOOL, DWORD_TO_BOOL_E
■Argument
Input/output
Name
argument
Input argument
EN
s(_WORD, _DWORD)
Output argument
ENO
d
Processing details
■Operation processing
• WORD_TO_BOOL, WORD_TO_BOOL_E
Converts word (unsigned)/16-bit string type data input to (s) into bit type data, and outputs the operation result from (d).
When the input value is 0H, FALSE is output.
When the input value is other than 0H, TRUE is output.
s
0
H
1567
H
Word (unsigned)/16-bit string type
• DWORD_TO_BOOL, DWORD_TO_BOOL_E
Converts double word (unsigned)/32-bit string type data input to (s) into bit type data, and outputs the operation result from
(d).
When the input value is 0H, FALSE is output.
When the input value is other than 0H, TRUE is output.
s
0
H
12345678
H
Double word (unsigned)/32-bit string type
LCPU
ST
ENO:=
(EN, s, d);
WORD_TO_BOOL_E
Description
Executing condition (TRUE: Execution, FALSE:
Stop)
Input
Execution result (TRUE: Normal, FALSE: Error)
Output
d
FALSE
TRUE
Bit type
d
FALSE
TRUE
Bit type
Data type
Bit
Word (unsigned)/16-bit string,
Double word (unsigned)/32-bit string
Bit
Bit
5 APPLICATION FUNCTIONS
5.1 Type Conversion Functions
5
65

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents