Converting Dword To Word - 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.12

Converting DWORD to WORD

DWORD_TO_WORD
This function converts a value from DWORD data type to WORD data type.
Structured text
d:=DWORD_TO_WORD(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 DWORD data type to WORD 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.)
• 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_WORD function is executed, the upper 16-bit data of the input value (DWORD data
type) are discarded.
Operation error
There is no operation error.
Type
Data type
Input variable
DWORD
Output variable
WORD
12 TYPE CONVERSION FUNCTIONS
12.12 Converting DWORD to WORD
12
137

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents