Fnc142 - Btow / Byte To Word - Mitsubishi Electric FX3G SERIES Programming Manual

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
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
FNC 142
BTOW
P
2. Set data
Operand type
S
D
n
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
S
D
n
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
from
D
as shown below.
Command
input
S
"n"
bytes
+n-1
2)
The high-order byte (8 bits) of each combination source 16-bit data (
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
"00H" is stored in the high-order byte (8 bits) of
+0
S
+1
When
+2
"n" is
+3
"5"
+4
4)
When "n" is "0", the BTOW instruction is not executed.
Mnemonic
16-bit Instruction
7 steps BTOW
BTOWP
Head device number storing data to be combined in byte units
Head device number storing data acquired by combination in byte units
Number of byte data to be combined (0 ≤ n)
Digit Specification
FNC142
S
D
BTOWP
b15
b8 b7
+0
1st byte data
+1
2nd byte data
+2
3rd byte data
"n"th byte data
The high-order byte is ignored.
b15
b8 b7
ABH
12H
CDH
34H
EFH
56H
ABH
78H
CDH
9AH
The high-order bytes is ignored.
19 Data Operation 2 – FNC140 to FNC149
19.3 FNC142 – BTOW / BYTE to WORD
Operation Condition
32-bit Instruction
Continuous
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Index
Unit
V
Z Modify K H
is combined, and stored in "n/2" devices starting
S
n
b0
b15
+0
D
+1
+n/2
*
* When "n" is an odd number,
refer to "3)" below
S
to
S
S
D
+2.
b0
b15
+0
D
+1
+2
Mnemonic
Operation Condition
Data type
16-bit binary
Others
Con-
Real
Charac-
stant
Number
ter String
E
" "
b8 b7
b0
2nd byte
1st byte
4th byte
3rd byte
"n"th byte
"n-1"th byte
and later) is ignored.
+4 is stored in
to
D
D
b8 b7
b0
34H
12H
78H
56H
00H
9AH
When "n" is "5",
"00H" is stored.
11
12
13
14
Pointer
15
P
16
17
18
19
+2, and
20
537

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents