12.17
Converting INT to WORD
INT_TO_WORD
This function converts a value from INT data type to WORD data type.
Structured text
d:=INT_TO_WORD(s);
Setting data
■Description, type, data type
Argument
s (IN)
d
Processing details
■Operation processing
• This function converts the value input to (s) from INT data type to WORD data type, and output the converted value from
(d).
(s)
22136
INT
• 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.
12 TYPE CONVERSION FUNCTIONS
142
12.17 Converting INT to WORD
Description
Input
Output
5678H
WORD
(d)
Type
Data type
Input variable
INT
Output variable
WORD