Bit Type → Word (Unsigned)/16-Bit String, Double Word (Unsigned)/32-Bit String Type Conversion - Mitsubishi Melsec-Q Series Structured Programming Manual

Application functions, qcpu
Hide thumbs Also See for Melsec-Q Series:
Table of Contents

Advertisement

5.1.3
Bit type → word (unsigned)/16-bit string, double word
(unsigned)/32-bit string type conversion
BOOL_TO_WORD(_E)
BOOL_TO_DWORD(_E)
Structured ladder
BOOL_TO_DWORD_E
EN
ENO
s
d
Input argument,
EN:
Executing condition (TRUE: Execution, FALSE: Stop)
s:
Input
Output argument,
ENO:
Output status (TRUE: Normal, FALSE: Error)
d:
Output
Function
Operation processing
(1) BOOL_TO_WORD, BOOL_TO_WORD_E
Converts bit type data input to
the operation result from
When the input value is FALSE, 0H is output in word (unsigned)/16-bit string type data.
When the input value is TRUE, 1H is output in word (unsigned)/16-bit string type data.
FALSE
TRUE
Bit type
5.1.3 Bit type
BOOL_TO_WORD(_E), BOOL_TO_DWORD(_E)
ST
ENO:=
(EN, s, d);
BOOL_TO_DWORD_E
into word (unsigned)/16-bit string type data, and outputs
s
.
d
Word (unsigned)/16-bit string type
word (unsigned)/16-bit string, double word (unsigned)/32-bit string type conversion
BOOL_TO_WORD(_E), BOOL_TO_DWORD(_E)
_E: With EN/ENO
indicates any of the following
functions.
BOOL_TO_WORD
BOOL_TO_DWORD
BOOL_TO_DWORD_E
:Bit
:Bit
:Bit
:Word (unsigned)/16-bit string, double word
(unsigned)/32-bit string
0
H
1
H
5.1 Type Conversion Functions
High
Performance
Universal
UD
BOOL_TO_WORD_E
5
5-7

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q-kp-ok-e13jw08

Table of Contents