Converting Word 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.6

Converting WORD to BOOL

WORD_TO_BOOL
This function converts a value from WORD data type to BOOL data type.
Structured text
d:=WORD_TO_BOOL(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 WORD data type to BOOL data type, and output the converted value from
(d).
• When the input value is 0H, FALSE is output.
• When the input value is other than 0H, TRUE is output.
(s)
0H
1567H
WORD
• Input a WORD 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)
FALSE
TRUE
BOOL
Type
Data type
Input variable
WORD
Output variable
BOOL
12 TYPE CONVERSION FUNCTIONS
12.6 Converting WORD to BOOL
12
131

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents