EasyManua.ls Logo

Mitsubishi MELSEC Q Series

Mitsubishi MELSEC Q Series
268 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
5.1 Type Conversion Functions
5.1.21
Word (unsigned)/16-bit string type
→
word (signed), double word (signed) type conversion
5-65
5
APPLICATION
FUNCTIONS
WORD_TO_INT(_E),
WORD_TO_DINT(_E)
WORD_TO_INT(_E), WORD_TO_DINT(_E)
(2) WORD_TO_DINT, WORD_TO_DINT_E
Converts word (unsigned)/16-bit string type data input to into double word (signed) type
data, and outputs the operation result from .
Operation result
(1) Function without EN/ENO
An operation is executed and the operation value is output from .
(2) Function with EN/ENO
The following table shows the executing conditions and operation results.
*1 When FALSE is output from ENO, the data output from is undefined.
In this case, create a program so that the data output from is not used.
EN ENO
TRUE (Operation execution) TRUE Operation output value
FALSE (Operation stop)
FALSE
*1
Undefined value
s
d
Word (unsigned)/16-bit string type
Always filled with 0s.
5678H
Double word (signed) type
22136
5678H 0 1 0 1 0 11001111000
00000000000000000 1 0 1 0 11001111000
22136
Data conversion
d
d
d
d

Table of Contents

Other manuals for Mitsubishi MELSEC Q Series

Related product manuals