Mitsubishi Electronics FX3GC Garage Door Opener User Manual


 
536
FX3S/FX3G/FX3GC/FX3U/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
19 Data Operation 2 – FNC140 to FNC149
19.3 FNC142 – BTOW / BYTE to WORD
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 V Z Modify K H E ""P


n  
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 hi
g
h-order b
y
te is i
g
nored.
+2
+n-1
"n"
bytes
1st byte data
2nd byte data
3rd byte data
"n"th byte data
D
+0
+1
+n/2
*1
...
2nd byte
4th byte
"n"th byte
1st byte
3rd byte
"n-1"th byte
...
...
b15 b8 b7 b0
*1 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