5-64
5.1 Type Conversion Functions
5.1.21
Word (unsigned)/16-bit string type
→
word (signed), double word (signed) type conversion
WORD_TO_INT(_E), WORD_TO_DINT(_E)
5.1.21 Word (unsigned)/16-bit string type → word (signed), double
word (signed) type conversion
WORD_TO_INT(_E), WORD_TO_DINT(_E)
Function
Operation processing
(1) WORD_TO_INT, WORD_TO_INT_E
Converts word (unsigned)/16-bit string type data input to into word (signed) type data,
and outputs the operation result from .
WORD_TO_INT(_E)
WORD_TO_DINT(_E)
_E: With EN/ENO
indicates any of the following
functions.
WORD_TO_INT WORD_TO_INT_E
WORD_TO_DINT WORD_TO_DINT_E
Input argument, EN:
Executing condition (TRUE: Execution, FALSE: Stop) :Bit
s:
Input :Word (unsigned)/16-bit string
Output argument, ENO:
Output status (TRUE: Normal, FALSE: Error) :Bit
d:
Output :Word (signed), double word (signed)
Universal
UD
High
Performance
EN ENO
ds
WORD_TO_INT_E
(EN, s, d);ENO:=
Structured ladder
ST
WORD_TO_INT_E
s
d
Word (unsigned)/16-bit string type
5678H
Word (signed) type
22136