7 DATA COMMUNICATIONS USING BIDIRECTIONAL PROTOCOL

7.1.3 Sequence program for data reception

MELSEC-Q

This section explains the sequence program for data reception.

For details on the BIDIN instruction for data reception, see Chapter 9.

X3 Read request

(CH1)

Create control data from D0

G.BIDIN Un D0 D10 M0

M0M1

Q series C24 ready signal

(X1E)

Reception data read

(X3)

request signal

 

BIDIN instruction

 

BIDIN instruction complete device

BIDIN instruction complete device +1 (Normal completion)

Receive data count storage area (Buffer memory address: 600H)

Receive data storage area

(Buffer memory address: 601H to 7FFH)

Processing for normal completion

(stores receive data, etc.)

1)

2)

3)

BIDIN

4)

One scan

(OFF)

m

n

Receive data

Data reception

Response transmission

1)Start the local station PLC.

The values specified with GX Developer are stored in the Q series C24.

2)When data is received from the external device, the reception data read request signal turns ON.

3)After the control data for the BIDIN instruction is stored in the device, the sequence program executes the BIDIN instruction and reads the receive data.

4)When the reading of receive data is completed, a response message (ACK message when the operation was completed normally) is sent and the device that has completed the BIDIN instruction turns ON.

7 - 10

7 - 10