Converting Double Word (Unsigned)/32-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 double word (unsigned)/32-bit string type to word
(signed), double word (signed) type
DWORD_TO_INT(_E), DWORD_TO_DINT(_E)
High
Basic
Process
Redundant Universal
performance
Structured ladder/FBD
DWORD_TO_INT_E
EN
ENO
s
d
The following function(s) can go in the dotted squares.
DWORD_TO_INT, DWORD_TO_INT_E, DWORD_TO_DINT, DWORD_TO_DINT_E
■Argument
Input/output
Name
argument
Input argument
EN
s(_DWORD)
Output argument
ENO
d
Processing details
■Operation processing
• DWORD_TO_INT, DWORD_TO_INT_E
Converts double word (unsigned)/32-bit string type data input to (s) into word (signed) type data, and outputs the operation
result from (d).
s
BC614E
H
Double word (unsigned)/32-bit string type
BC614E
0
0
0
0
0
0
0
0
1
H
24910
High-order 16-bit data is discarded.
• DWORD_TO_DINT, DWORD_TO_DINT_E
Converts double word (unsigned)/32-bit string type data input to (s) into double word (signed) type data, and outputs the
operation result from (d).
s
BC614E
H
Double word (unsigned)/32-bit string type
LCPU
ST
ENO:=
(EN, s, d);
DWORD_TO_INT_E
Description
Executing condition (TRUE: Execution, FALSE:
Stop)
Input
Execution result (TRUE: Normal, FALSE: Error)
Output
Word (signed) type
0
1
1
1
1
0
0
0
1
1
0
0
0
0
0
1
1
0
0
0
0
d
12345678
Double word (signed) type
Data type
Bit
Double word (unsigned)/32-bit string
Bit
Word (signed), double word (signed)
d
24910
1
0
1
0
0
1
1
1
0
1
0
1
0
0
1
1
1
0
5 APPLICATION FUNCTIONS
5.1 Type Conversion Functions
5
69

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents