Converting Int 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.18

Converting INT to DWORD

INT_TO_DWORD
This function converts a value from INT data type to DWORD data type.
Structured text
d:=INT_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 INT data type to DWORD data type, and output the converted value from
(d).
• After the data type is converted, the upper 16 bits are filled with 0s.
(s)
-325
INT
-325
0000FEBBH
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
0
• Input an INT 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)
0000FEBBH
DWORD
1
1
1
1
1
1
1
0
1
0
1
1
1
0
1
1
1
1
1
1
0
1
0
1
1
1
0
Type
Input variable
Output variable
1
1
1
1
12 TYPE CONVERSION FUNCTIONS
12.18 Converting INT to DWORD
12
Data type
INT
DWORD
143

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents