Download Print this page

Converting Dword To Int - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

18.14

Converting DWORD to INT

DWORD_TO_INT(_E)
These functions convert DWORD type data to INT type data.
Ladder diagram, FBD/LD
[Without EN/ENO]
s
d
Setting data
■Descriptions, types, and data types
Argument
EN
s(IN)
ENO
d(DWORD_TO_INT(_E))
Processing details
■Operation processing
• These functions convert the DWORD type data input to (s) to INT type data and output from (d).
• The information stored in high-order 16 bits of an input value is discarded. (Refer to (1) in the figure below.)
BC614EH
BC614EH
0
0
0
0
0
24910
• A value input to (s) is the DWORD type data value.
■Operation result
1.
Function without EN/ENO
The operation processing is executed. The operation output value is output from (d).
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.
When DWORD_TO_INT(_E) is executed, the information stored in high-order 16 bits of the DWORD type
data value input from (s) is discarded.
18 TYPE CONVERSION FUNCTIONS
914
18.14 Converting DWORD to INT
[With EN/ENO]
EN
ENO
s
Description
Execution condition (TRUE: Execution, FALSE: Stop)
Input
Output status (TRUE: Normal, FALSE: Abnormal)
Output
(s)
DWORD
0
0
0
1
0
1
1
1
1
0
0
0
1
0
1
(1)
Operation result
ENO
TRUE
FALSE
Structured text
[Without EN/ENO]
d:=DWORD_TO_INT(s);
[With EN/ENO]
d:=DWORD_TO_INT_E(EN,ENO,s);
d
(d)
24910
INT
1
0
0
0
0
1
0
1
0
0
1
1
1
1
0
0
0
0
1
0
1
0
0
1
1
1
*1
Type
Input variable
Input variable
Output variable
Output variable
0
0
(d)
Operation output value
Indefinite value
Data type
BOOL
DWORD
BOOL
INT

Hide quick links:

Advertisement

loading