Converting Bool To Dword - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Motion module instructions, standard functions/ function blocks
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

12.2

Converting BOOL to DWORD

BOOL_TO_DWORD
This function converts a value from BOOL data type to DWORD data type.
Structured text
d:=BOOL_TO_DWORD(s);
Setting data
■Description, type, data type
Argument
Description
s (IN)
Input
d
Output
Processing details
■Operation processing
• This function converts the value input to (s) from BOOL data type to DWORD data type, and output the converted value
from (d).
• When the input value is FALSE, 0H (DWORD data type) is output.
• When the input value is TRUE, 1H (DWORD data type) is output.
(s)
FALSE
TRUE
BOOL
• Input a BOOL data type value to (s).
■Operation result
The operation processing is performed. The operation result is output from (d).
Operation error
There is no operation error.
(d)
0H
1H
DWORD
Type
Data type
Input variable
BOOL
Output variable
DWORD
12 TYPE CONVERSION FUNCTIONS
12.2 Converting BOOL to DWORD
12
127

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents