Int_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.17 INT_TO_DWORD(_E)

Outline
This function converts word [signed] data into double word [unsigned]/bit string [32-bit] data, and outputs the
data obtained by conversion.
1. Format
Function name
INT_TO_DWORD
INT_TO_DWORD
_E
*1.
Output variable
2. Set data
Variable
EN
Input
variable
_INT (
ENO
Output
variable
*1
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
This function converts word [signed] data stored in a device specified in
string [32-bit] data, and outputs the data obtained by conversion to a device specified in
-325
0000FEBBH
0
Each of high-order 16 bits becomes
"0" after data conversion.
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.
68
FX
3U(C)
Expression in each language
Structured ladder
INT_TO_DWORD
D0
_INT
X000
INT_TO_DWORD_E
EN
D0
_INT
Execution condition
Conversion source word [signed] data
)
s
Execution status
Double word [unsigned]/bit string [32-bit] data after conversion
(
)
d
-325
Word [signed] data
0
0
0
0
0
0
0
0
0
0
0
0
FX
FX
FX
3G
2N(C)
INT_TO_DWORD(_INT);
Example:
Label:=
*1
Label
INT_TO_DWORD(D0);
INT_TO_DWORD_E(EN,_INT,
Output label);
Example:
ENO
INT_TO_DWORD_E(X000,D0,
*1
Label
Label);
Description
0000FEBBH
Double word [unsigned]/
bit string [32-bit] data
1 1 1 1 1 1 1
0
1
0
Data conversion
0
0
0
1 1 1 1 1 1 1
0
1
0
5 Applied Functions
5.1 Type Conversion Functions
FX
FX
/FX
1N(C)
1S
U
2C
ST
Bit
Word [signed]
Bit
Double Word [unsigned]/
Bit string [32-bit]
into double word [unsigned]/bit
s
d
1 1 1
0
1 1
1 1 1
0
1 1
FX
FX
0N
0(S)
Data type
.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents