Word_To_Dword(_E) - Mitsubishi Electric MELSEC FX Series Structured Programming Manual

Hide thumbs Also See for MELSEC FX Series:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
(Application Functions)

5.1.32 WORD_TO_DWORD(_E)

Outline
This function converts word [unsigned]/bit string [16-bit] data into double word [unsigned]/bit string [32-bit]
data, and outputs the data obtained by conversion.
1. Format
Function name
WORD_TO_DWO
RD
WORD_TO_DWO
RD_E
*1.
Output variable
2. Set data
Variable
EN
Input
variable
_WORD (
ENO
Output
variable
*1
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
This function converts word [unsigned]/bit string [16-bit] data stored in a device specified in
word [unsigned]/bit [32-bit] data, and outputs the data obtained by conversion to a device specified in
Each of high-order 16 bits becomes "0" after data conversion.
5678H
Word [unsigned]/
bit string [16-bit] data
Cautions
1) Use the function having "_E" in its name to connect a bus.
2) When handling 32-bit data in structured programs, you cannot specify 16-bit devices directly, different
from simple projects. Use labels when handling 32-bit data.
You can specify 32-bit counters directly, however, because they are 32-bit devices.
Use global labels when specifying labels.
FX
3U(C)
Expression in each language
Structured ladder
WORD_TO_DWORD
D0
_WORD
X000
WORD_TO_DWORD_E
EN
ENO
D0
_WORD
Execution condition
Conversion source word [unsigned]/bit string [16-bit] data
)
s
Execution status
Double word[unsigned]/bit string[32-bit] data after conversion
(
)
d
00005678H
Double word [unsigned]/
bit string [32-bit] data
FX
3G
FX
2N(C)
FX
1N(C)
ST
WORD_TO_DWORD(_WORD);
Example:
*1
Label
Label:=
WORD_TO_DWORD(D0);
WORD_TO_DWORD_E(EN,
_WORD, Output label);
Example:
WORD_TO_DWORD_E(X000,D0,
*1
Label
Label);
Description
5 Applied Functions
5.1 Type Conversion Functions
FX
1S
FX
U
/FX
2C
FX
0N
Data type
Bit
Word [unsigned]/
Bit String [16-bit]
Bit
Double Word [unsigned]/
Bit string [32-bit]
into double
s
1
FX
0(S)
2
3
4
5
6
A
.
d
99

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents