Converting Word (Unsigned)/16-Bit String Type To Word (Signed), Double Word (Signed) Type - Mitsubishi Electric MELSEC-Q/L Programming Manual

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

Advertisement

Converting word (unsigned)/16-bit string type to word (signed),
double word (signed) type
WORD_TO_INT(_E), WORD_TO_DINT(_E)
High
Basic
Process
Redundant Universal
performance
Structured ladder/FBD
WORD_TO_INT_E
EN
ENO
s
d
The following function(s) can go in the dotted squares.
WORD_TO_INT, WORD_TO_INT_E, WORD_TO_DINT, WORD_TO_DINT_E
■Argument
Input/output
Name
argument
Input argument
EN
s(_WORD)
Output argument
ENO
d
Processing details
■Operation processing
• WORD_TO_INT, WORD_TO_INT_E
Converts word (unsigned)/16-bit string type data input to (s) into word (signed) type data, and outputs the operation result
from (d).
s
5678
H
Word (unsigned)/16-bit string type
• WORD_TO_DINT, WORD_TO_DINT_E
Converts word (unsigned)/16-bit string type data input to (s) into double word (signed) type data, and outputs the operation
result from (d).
s
5678
H
Word (unsigned)/16-bit string type
5678
H
22136
0
0
0
0
0
0
0
0
0
0
Always filled with 0s.
LCPU
ST
ENO:=
(EN, s, d);
WORD_TO_INT_E
Description
Executing condition (TRUE: Execution, FALSE:
Stop)
Input
Execution result (TRUE: Normal, FALSE: Error)
Output
d
22136
Word (signed) type
Double word (signed) type
0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0
Data conversion
0
0
0
0
0
0
0
1 0 1 0 1 1 0 0 1 1 1 1 0 0 0
Data type
Bit
Word (unsigned)/16-bit string
Bit
Word (signed), double word (signed)
d
22136
5 APPLICATION FUNCTIONS
5.1 Type Conversion Functions
5
67

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents