Converting Dint To Int - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

15.28

Converting DINT to INT

DINT_TO_INT(_E)
These functions convert DINT type data to INT type data.
Ladder diagram
[Without EN/ENO]
s
d
Setting data
■Descriptions, types, and data types
Argument
EN
s
ENO
d
Processing details
■Operation processing
• These functions convert the DINT type data input to (s) to INT type data and output from (d).
(s)
1234
DINT
• A value input to (s) is the DINT type data value.
■Operation result
1.
Function without EN/ENO
The following table lists the operation results.
Operation result
No operation error occurred
An operation error occurred
2.
Function with EN/ENO
The following table lists the execution conditions and operation results.
Execution condition
EN
TRUE (Executes operation)
FALSE (Stops operation)
*1 When FALSE is output from ENO, data output from (d) is undefined. In that case, modify a program so that the data output from (d) is
not used.
Operation error
Error code
Description
(SD0/SD8067)
3401
The 32-bit signed binary data in the device specified by (s) is out of the valid range (-32768 to 32767).
15 TYPE CONVERSION FUNCTIONS
722
15.28 Converting DINT to INT
[With EN/ENO]
EN
ENO
s
d
Description
Execution condition (TRUE: Execution, FALSE: Stop)
Input
Output status (TRUE: Normal, FALSE: Abnormal)
Output
(d)
1234
INT
Operation result
ENO
TRUE (Operation error did not occur)
FALSE (Operation error occurred)
*1
FALSE
Structured text
[Without EN/ENO]
d:=DINT_TO_INT(s);
[With EN/ENO]
d:=DINT_TO_INT_E(EN,ENO,s);
Type
Input variable
Input variable
Output variable
Output variable
(d)
Operation output value
Indefinite value
(d)
Operation output value
*1
Indefinite value
Indefinite value
Data type
BOOL
DINT
BOOL
INT

Advertisement

Table of Contents
loading

Table of Contents