Converting Dint To Bool - 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.23

Converting DINT to BOOL

DINT_TO_BOOL
This function converts a value from DINT data type to BOOL data type.
Structured text
d:=DINT_TO_BOOL(s);
Setting data
■Description, type, data type
Argument
s (IN)
d
Processing details
■Operation processing
• This function converts the value input to (s) from DINT data type to BOOL data type, and output the converted value from
(d).
• When the value 0 is input, FALSE is output.
• When the value other than 0 is input, TRUE is output.
(s)
0
12345678
DINT
• Input a DINT 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.
12 TYPE CONVERSION FUNCTIONS
148
12.23 Converting DINT to BOOL
Description
Input
Output
FALSE
TRUE
BOOL
(d)
Type
Data type
Input variable
DINT
Output variable
BOOL

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents