5-16
5.1 Type Conversion Functions
5.1.6 Double word (signed) type
→
word (signed) type conversion
DINT_TO_INT(_E)
5.1.6 Double word (signed) type → word (signed) type conversion
DINT_TO_INT(_E)
Function
Operation processing
Converts double word (signed) type data input to into word (signed) type data, and
outputs the operation result from .
DINT_TO_INT(_E)
_E: With EN/ENO
indicates any of the following
functions.
DINT_TO_INT DINT_TO_INT_E
Input argument, EN:
Executing condition (TRUE: Execution, FALSE: Stop) :Bit
s:
Input :Double word (signed)
Output argument, ENO:
Output status (TRUE: Normal, FALSE: Error) :Bit
d:
Output :Word (signed)
Universal
UD
High
Performance
EN ENO
ds
DINT_TO_INT_E
(EN, s, d);ENO:=
Structured ladder
ST
DINT_TO_INT_E
s
d
Double word (signed) type
1234
Word (signed) type
1234