Converting Dword To Int - 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.13

Converting DWORD to INT

DWORD_TO_INT
This function converts a value from DWORD data type to INT data type.
Structured text
d:=DWORD_TO_INT(s);
Setting data
■Description, type, data type
Argument
s (IN)
d
Processing details
■Operation processing
• This function converts the value input to (s) from DWORD data type to INT data type, and output the converted value from
(d).
• The upper 16-bit data of the input value (DWORD data type) are discarded. (Refer to (1) in the figure below.)
BC614EH
DWORD
BC614EH
0 0 0 0 0 0 0 0 1 0 1 1 1 1 0 0
24910
• Input a DWORD data type value to (s).
■Operation result
The operation processing is performed. The operation result is output from (d).
When the DWORD_TO_INT function is executed, the upper 16-bit data of the input value (DWORD data type)
are discarded.
Operation error
There is no operation error.
12 TYPE CONVERSION FUNCTIONS
138
12.13 Converting DWORD to INT
Description
Input
Output
(s)
0
1
1
0
1
1
(1)
(d)
24910
INT
0
0
0
0
1
0
1
0
0
1
1
1
0
0
0
0
0
1
0
1
0
0
1
1
1
0
Type
Data type
Input variable
DWORD
Output variable
INT

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents