Download Print this page

Mitsubishi Electric MELSEC FX Series Structured Programming Manual page 522

Hide thumbs Also See for MELSEC FX Series:

Advertisement

FXCPU Structured Programming Manual
(Basic & Applied Instruction)
Function and operation explanation
1. 16-bit operation (BTOW/BTOWP)
1) This instruction stores the 16-bit data coupling lower byte (8 bit) of 16-bit data of n points from the device
specified by
Head device of data to be coupled
Number of byte data to be coupled
s
n bytes
2) Higher byte (8 bits) of 16-bit data (after
3) When n is an odd number, as shown below, higher byte (8 bits) of the data coupled in the last place is set
to 00H. For example, in the case of n=5, data of lower byte (8 bits) of
to
+2. Higher byte (8 bits) of
In the case
of n=5
4) Instruction is not processed in the case of n=0.
Related instructions
Instruction
WTOB
520
, into n/2 devices starting from
Command
BTOWP
input
EN
s
n
b15
b8 b7
+0
First byte data
+1
Second byte data
+2
Third byte data
+n-1
n-th byte data
Higher bytes are ignored.
b15
b8 b7
s
+0
ABH
+1
CDH
+2
EFH
+3
ABH
+4
CDH
Higher bytes are ignored.
This instruction separates continuous 16-bit data in byte (8-bit) unit.
as follows.
ENO
d
Head device for storing the coupled result in byte unit.
b0
d
+n/2
) in the coupling source is ignored.
+2 is 00H.
b0
12H
34H
56H
78H
9AH
Content
7 Applied Instructions
7.13 Data Operation 2
b15
b8 b7
+0
Second byte
First byte
+1
Fourth byte
Third bytes
*
n-th byte
n-1-th byte
* If n is an odd number, refer to 3).
to
+4 is stored in
b15
b8 b7
d
+0
34H
+1
78H
+2
00H
In the case of n=5, "H00" is set.
b0
b0
12H
56H
9AH

Advertisement

loading

This manual is also suitable for:

Fxcpu