Word_To_Int(_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.28 WORD_TO_INT(_E)

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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents