Int_To_Word(_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.15 INT_TO_WORD(_E)

Outline
This function converts word [signed] data into word [unsigned]/bit string [16-bit] data, and outputs the data
obtained by conversion.
1. Format
Function name
INT_TO_WORD
INT_TO_WORD_
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
[16-bit] data, and outputs the data obtained by conversion to a device specified in
22136
Word [signed] data
Cautions
Use the function having "_E" in its name to connect a bus.
64
FX
3U(C)
Expression in each language
Structured ladder
INT_TO_WORD
D0
_INT
X000
INT_TO_WORD_E
EN
D0
_INT
Execution condition
Conversion source word [signed] data
)
s
Execution status
Word [unsigned]/Bit String [16-bit] data after conversion
(
)
d
5678H
Word [unsigned]/
bit string [16-bit] data
FX
FX
FX
3G
2N(C)
1N(C)
INT_TO_WORD(_INT);
Example:
D10:=
*1
D10
INT_TO_WORD(D0);
INT_TO_WORD_E(EN,_INT,
Output label);
ENO
Example:
*1
D10
INT_TO_WORD_E(X000,D0,D10);
Description
5 Applied Functions
5.1 Type Conversion Functions
FX
FX
/FX
FX
1S
U
2C
0N
ST
Data type
Bit
Word [signed]
Bit
Word [unsigned]/
Bit String [16-bit]
into word [unsigned]/bit string
s
.
d
FX
0(S)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents