Mitsubishi Electric AJ71QC24 Manual page 127

Melsec qna serial communications module
Table of Contents

Advertisement

6,
BIDIRECTIONAL
PROTOCOL
COMMUNICATIONS
MELSEC
QnA
6.6 Data Reception From External Device
In this section, the PC CPU receives the send data from the external device.
The receive data count units are word units.
[Practice Contents]
The external device sends the data input from its keyboard to the PC CPU.
The PC CPU uses the sequence program FROM instruction to read the receive data from the
QC24 buffer memory.
When the external device receives the transmitted result, it ends communications.
6.6.1
Sequence program
[FMOV
KO
[
MOV
[
G
BlDlN
U8
D O
MO
M I
K1
D l
K10
D l 0
+ I
A I
[SET
I Y
M I
I I
[SET
XR
RST
FMOV KO
D i 0
X1
X83
MO
I l l
X I
A I
{DTO
H8
HO
HOCOFFOOFF
D O
K2
D3
MO
Y
70
Y71
Y70
Y71
K50
K i
[END
6 - 1 6
. .
Clears the recelve result and
recelve data count storage
devlce to zero.
. .
Designates the allowable
recelve data count (1 0 words).
.
. .
destlnatlon head device
D10: Recelve data storage
MO: Turned ON at the end of
execution of the instruction.
(D2: Recelve data count storage)
. .
Normal end
. .
Abnormal end
(Dl =error code storage)
.
.
Clear 50 registers to zero,
beginning from D10.
'
.
Error LED OFF request

Advertisement

Table of Contents
loading

This manual is also suitable for:

Aj71qc24-r2Aj71qc24-r4

Table of Contents