Converting Dint 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.26

Converting DINT to INT

DINT_TO_INT
This function converts a value from DINT data type to INT data type.
Structured text
d:=DINT_TO_INT(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 DINT data type to INT data type, and output the converted value from (d).
(s)
1234
DINT
• Input a DINT data type value to (s).
■Operation result
The operation processing is performed. The operation result is output from (d).
Operation error
Error code
Description
3401H
The 32-bit signed binary data input to (s) is out of the range, -32768 to 32767.
(d)
1234
INT
Type
Data type
Input variable
DINT
Output variable
INT
12 TYPE CONVERSION FUNCTIONS
12.26 Converting DINT to INT
12
151

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents