Converting Word To Dint - 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.9

Converting WORD to DINT

WORD_TO_DINT
This function converts a value from WORD data type to DINT data type.
Structured text
d:=WORD_TO_DINT(s);
Setting data
■Description, type, data type
Argument
s (IN)
d
Processing details
■Operation processing
• This function converts the value input to (s) from WORD data type to DINT data type, and output the converted value from
(d).
• After the data type is converted, the upper 16 bits are filled with 0s.
(s)
5678H
WORD
5678H
22136
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
• 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.
12 TYPE CONVERSION FUNCTIONS
134
12.9 Converting WORD to DINT
Description
Input
Output
0
1
0
1
0
1
0
1
0
0
(d)
22136
DINT
1
1
0
0
1
1
1
1
0
0
0
1
1
0
0
1
1
1
1
0
0
0
Type
Data type
Input variable
WORD
Output variable
DINT

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents