FX
/FX
Series Programmable Controllers
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
starting from
Command
input
S
"n"
bytes
+n-1
2) The high-order byte (8 bits) of each combination source 16-bit data (
Mnemonic
16-bit Instruction
7 steps BTOW
BTOWP
Head device number storing data to be combined in unit of byte
Head device number storing data acquired by combination in unit of byte
Number of byte data to be combined (0 ≤ n)
Digit Specification
as shown below.
D
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.
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
S
n
b0
b15
+0
2nd byte
D
+1
*
+n/2
"n"th byte
* When "n" is an odd number,
refer to "3)" below
Mnemonic
Operation Condition
−
−
Data type
16-bit binary
Others
Con-
Real
Charac-
stant
Number
ter String
E
" "
b8 b7
b0
1st byte
4th byte
3rd byte
"n-1"th byte
and later) is ignored.
S
11
12
13
14
15
Pointer
P
16
17
18
19
20
513