Specifications

6 - 12
6.3.2 Sequence program
Create a sequence program that performs the receive processing for the data sent
from the external device.
When the data receive is completed correctly, the send data (X0 to X7, X20 to X2F)
are output to Y70 to Y77, Y40 to Y4F.
POINT
After creating a sequence program, perform the following operations with the GX
Developer.
1) Saving to FD
Drive/Path: A:
Q-E71
Project name: EX2-B
( indicates a demonstration machine No.)
Example: For demonstration machine No.1, EX2-B1
2) Designating connection destination (Refer to Section 5.2.3)
3) Writing to PLC CPU (Refer to Section 5.2.4)
(1) List of devices to be used
Device name Description Device name Description
SM400 Normally ON Y78
Turns ON when the data receiving is
completed normally.
M30
Turns ON for only 1 scan after the data
receiving is completed.
Y79
Turns ON when the data receiving is
completed abnormally.
M31
Turns ON for only 1 scan when the data
receiving is completed abnormally.
Y0B7
(Y(n+1)7)
COM. ERR LED off request
M80
Turns ON while the connection No.1 of the
Ethernet module is receiving data.
D30 to D31
Stores the control data of the BUFRCV
instruction.
X9
Switch to command clearing the error display
on the display LED
D32 Stores the receive data length.
X0BC
(X(n+1)C)
Turns ON when COM.ERR LED turns on. D33 Stores the receive data (X0 to X7).
Y40 to Y4F
Stores the information of X20 to X2F sent
from the sending side.
D34 Stores the receive data (X20 to X2F)
Y70 to Y77
Stores the information of X0 to X7 sent the
from the sending side.
—— ————