Converting Word (Unsigned)/16-Bit String Type To Double Word (Unsigned)/32-Bit String 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 double word
(unsigned)/32-bit string type
WORD_TO_DWORD(_E)
High
Basic
Process
Redundant Universal
performance
Structured ladder/FBD
WORD_TO_DWORD_E
EN
ENO
s
d
The following function(s) can go in the dotted squares.
WORD_TO_DWORD, WORD_TO_DWORD_E
■Argument
Input/output
Name
argument
Input argument
EN
s(_WORD)
Output argument
ENO
d
Processing details
■Operation processing
Converts word (unsigned)/16-bit string type data input to (s) into double word (unsigned)/32-bit string type data, and outputs
the operation result from (d).
After data conversion, high-order 16 bits are filled with 0s.
s
5678
H
Word (unsigned)/16-bit string type
■Operation result
• Function without EN/ENO
An operation is executed and the operation value is output from (d).
• Function with EN/ENO
The following table shows the executing conditions and operation results.
EN
TRUE (Operation execution)
FALSE (Operation stop)
*1 When FALSE is output from ENO, the data output from (d) is undefined. In this case, create a program so that the data output from (d) is
not used.
LCPU
ST
ENO:=
(EN, s, d);
WORD_TO_DWORD_E
Description
Executing condition (TRUE: Execution, FALSE:
Stop)
Input
Execution result (TRUE: Normal, FALSE: Error)
Output
d
00005678
H
Double word (unsigned)/32-bit string type
ENO
TRUE
*1
FALSE
Data type
Bit
Word (unsigned)/16-bit string
Bit
Double word (unsigned)/32-bit string
(d)
Operation output value
Undefined value
5 APPLICATION FUNCTIONS
5.1 Type Conversion Functions
5
71

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents