Mitsubishi Electric FX3G SERIES Programming Manual page 540

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
Related instruction
Instruction
WTOB (FNC141)
Caution
Devices storing the combination source data may be equivalent to devices storing the combined data.
After combination, however, the high-order byte (8 bits) of the combination source data stored in the devices used for
the combination destination data is erased and overwritten with the data acquired by combining the high-order byte (8
bits).
=D11
S
D12
When
D13
"n" is
D14
"6"
D15
D16
Because these combination source devices are
also used for the combination destination, "ABH"
and "CDH" are erased and overwritten.
Errors
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in
D8067.
• When the combination source devices
K6706)
• When the combined data destination devices
code: K6706)
When "n" is an odd number, the number of a rounded up value decides the numer of devices. (error code: K6706)
Program example
In the program shown below, the low-order byte (8 bits) data stored in D20 to D25 is combined, and stored in D10 to
D12.
X000
b15
D20
D21
D22
6 bytes
D23
D24
D25
The high-order bytes is ignored.
538
Separates consecutive 16-bit data in byte units (8 bits).
b15
b8 b7
ABH
12H
CDH
34H
EFH
56H
ABH
78H
CDH
9AH
EFH
BCH
The high-order bytes is ignored.
S
FNC142
D20
D10
BTOWP
b8 b7
b0
00H
78H
31H
12H
36H
49H
44H
55H
48H
67H
49H
31H
19 Data Operation 2 – FNC140 to FNC149
Description
b0
b15
=D10
D
D11
D12
D13
D14
D15
D16
to
S
+n-1 are outside the specified device range (error code:
D
to
D
+n/2 are outside the specified device range (error
K6
END
b15
D10
12H
D11
55H
D12
31H
19.3 FNC142 – BTOW / BYTE to WORD
b8 b7
b0
34H
12H
78H
56H
BCH
9AH
EFH
56H
ABH
78H
CDH
9AH
EFH
BCH
It is not changed.
b8 b7
b0
78H
49H
67H

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents