Converting Double Word (Signed) Type To Word (Signed) Type - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Converting double word (signed) type to word (signed) type

DINT_TO_INT(_E)
High
Basic
Process
performance
Structured ladder/FBD
DINT_TO_INT_E
EN
ENO
s
The following function(s) can go in the dotted squares.
DINT_TO_INT, DINT_TO_INT_E
■Argument
Input/output
argument
Input argument
Output argument
Processing details
■Operation processing
Converts double word (signed) type data input to (s) into word (signed) type data, and outputs the operation result from (d).
s
1234
Double word (signed) type
■Operation result
• Function without EN/ENO
An operation is executed and the operation value is output from (d).
• Function with EN/ENO
The following table shows the executing conditions and operation results.
EN
TRUE (Operation execution)
FALSE (Operation stop)
*1 When FALSE is output from ENO, the data output from (d) is undefined. In this case, create a program so that the data output from (d) is
not used.
When the DINT_TO_INT(_E) function is executed, low-order 16-bit data of double word (signed) type data
input to (s) are converted into word (signed) type data. High-order 16-bit data are discarded.
5 APPLICATION FUNCTIONS
34
5.1 Type Conversion Functions
Redundant Universal
LCPU
ST
ENO:=
DINT_TO_INT_E
d
Name
Description
EN
Executing condition (TRUE: Execution, FALSE:
Stop)
s(_DINT)
Input
ENO
Execution result (TRUE: Normal, FALSE: Error)
d
Output
Word (signed) type
ENO
TRUE
FALSE
(EN, s, d);
d
1234
*1
Data type
Bit
Double word (signed)
Bit
Word (signed)
(d)
Operation output value
Undefined value

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents