EasyManuals Logo
Home>Mitsubishi>Controller>FX3U Series

Mitsubishi FX3U Series Programming Manual

Mitsubishi FX3U Series
944 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #531 background imageLoading...
Page #531 background image
529
FX3G/FX3U/FX3GC/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
19 Data Operation 2 – FNC140 to FNC149
19.3 FNC142 – BTOW / BYTE to WORD
11
FNC30-FNC39
Rotation and
Shift
12
FNC40-FNC49
Data Operation
13
FNC50-FNC59
High-Speed
Processing
14
FMC60-FNC69
Handy
Instruction
15
FNC70-FNC79
External FX I/O
Device
16
FNC80-FNC89
External FX
Device
17
FNC100-FNC109
Data
Transfer 2
18
FNC110-FNC139
Floating Point
19
FNC140-FNC149
Data
Operation 2
20
FNC150-FNC159
Positioning
Control
19.3 FNC142 – BTOW / BYTE to WORD
Outline
This instruction combines the low-order 8 bits (low-order byte) of consecutive 16-bit data.
1. Instruction format
2. Set data
3. Applicable devices
Explanation of function and operation
1. 16-bit operation (BTOW and BTOWP)
1) The low-order byte (8 bits) of "n" 16-bit data starting from is combined, and stored in "n/2" devices starting
from as shown below.
2) The high-order byte (8 bits) of each combination source 16-bit data ( and later) is ignored.
3) When "n" is an odd number, "00H" is stored in the high-order byte (8 bits) of the final one among the combination
result destination devices as shown below.
For example, when "n" is "5", the low-order byte (8 bits) of to +4 is stored in to +2, and
"00H" is stored in the high-order byte (8 bits) of +2.
4) When "n" is "0", the BTOW instruction is not executed.
Operand type Description Data type
Head device number storing data to be combined in byte units
16-bit binary
Head device number storing data acquired by combination in byte units
n Number of byte data to be combined (0 n)
Oper-
and
Type
Bit Devices Word Devices Others
System User Digit Specification System User
Special
Unit
Index
Con-
stant
Real
Number
Charac-
ter String
Pointer
XYMTCSD.b KnX KnY KnM KnS T C D R U\G VZModifyKH E ""P
3333 3
3333 3
n 33 33
P
FNC 142
BTOW
Mnemonic Operation Condition
16-bit Instruction
7 steps
BTOW
BTOWP
Mnemonic Operation Condition
Continuous
Operation
Pulse (Single)
Operation
32-bit Instruction
S
D
S
D
S
D
Command
input
FNC142
BTOWP
S
D
n
b15 b8 b7 b0
S
+0
+1
...
The high-order byte is ignored.
+2
+n-1
"n"
bytes
1st byte data
2nd byte data
3rd byte data
"n"th byte data
D
+0
+1
+n/2
*
...
2nd byte
4th byte
"n"th byte
1st byte
3rd byte
"n-1"th byte
...
...
b15 b8 b7 b0
* When "n" is an odd number,
refer to "3)" below
S
S
S
D
D
D
00H
b15 b8 b7 b0
S
+0
+1
The high-order bytes is ignored.
+2
When
"n" is
"5"
D
+0
+1
+2
34H
78H
12H
56H
9AH
ABH
CDH
ABH
12H
34H
78H
EFH 56H
CDH
9AH
+3
+4
When "n" is "5",
"00H" is stored.
b15 b8 b7 b0

Table of Contents

Other manuals for Mitsubishi FX3U Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi FX3U Series and is the answer not in the manual?

Mitsubishi FX3U Series Specifications

General IconGeneral
BrandMitsubishi
ModelFX3U Series
CategoryController
LanguageEnglish

Related product manuals