Mitsubishi Electric AJ71QC24 Manual page 124

Melsec qna serial communications module
Table of Contents

Advertisement

6. BIDIRECTIONAL PROTOCOL COMMUNICATIONS
MELSEC QnA
6.5.3
Trainer operation
Write the sequence program shown in Section
6.5.1
to the PC CPU and the BASIC program
shown in Section 6.5.2 to the external device.
After writing, set the PC CPU and external device to "RUN".
If there are no errors, send and receive data using the following procedure.
@
When X0 is turned ON, word count "4" is stored to data register DO and data
"ABCDEFGH" is stored to data registers
D l to D4 and written to QC24 buffer memory
addresses 400H to 404H. Check this by monitoring the value of data registers DO to
D4 with GPPQ.
Device
DO
Display : 16Bit
' 1
' 1
e
I
: i : :
D
1 H
D
2
HH
D
3 H H
. H
H
46d5
4443
0
1 2 3
4
5
6 7 8
3
A B C D E F
Hexadec'mal
GPPQ batch monitor screen
**
Reception from PC in bidirectional mode
**
Wait to receive data !
Send data from PC.
External device screen
@When X1 is turned ON, the data is sent to the external device.
**
Receive from PC in bidirectional mode
**
Receive data=ABCDEFGH
Receive again ("IN) ?
External device screen
6 - 1 3

Advertisement

Table of Contents
loading

This manual is also suitable for:

Aj71qc24-r2Aj71qc24-r4

Table of Contents