5. NON PROCEDURE
PROTOCOL
COMMUNICATION
MELSEC
QnA
5.5
Data Transmission From PC CPU
This section sends data from the PC CPU to an external device.
The send data count units are word units.
(Practice Contents)
Use the sequence program OUTPUT instruction to write the character data (ASCII code)
[ABCDEFGH] to the QC24 buffer memory when X0 is turned ON.
When X1 is turned ON, the written data is sent to the external device using the non procedure
protocol.
The external device displays the received data on its CRT screen.
5.5.1
Sequence program
x0
1 1 1
[
MOV
K1
[
MCV K4
[
$MOV
"
ABCDEFGH"
[SET
DO
D4
M2
I
x r
[SET
[SET
[
RST
DO
D2
D4
MO
M1
Y70
Y71
MO
Y
70
Y71
.
'
Designates the Interface
that is to send the data. (CHI)
.
Send data count (4 words)
.
.
Stores the send data
to D4-D7.
.
D4: Send data storage source
M1: Turned ON at the end
of
head device
executlon of the instruction
.
Normal end
'
'
Abnormal end
(Dl =error code)
5 - 8