6DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q

(2)Transmission data arrangement

The following example shows an arrangement of the transmission data to be sent to the external device when storing it in the transmission area.

(Example) When transmitting "ABCDEFG123" (The transmit area is the default value.)

CH1 side address

400H

401H

402H

403H

404H

405H

406H

Buffer memory

5 or 10

(B)(A)

42H41H

(D)(C)

44H43H

(F)(E)

46H45H

(1)(G)

31H47H

(3)(2)

33H32H

(5)(4)

35H34H

1)

Transmission data count storage area

In accordance with the word/byte units designation Word units....5

Bytes units....10

2)

Transmission data designation area

Sequentially store the transmission data to low address (L) (H), next address (L) (H), in the order of transmission.

6.2.3 Sequence program for transmission data

A sequence program for transmission data is explained below.

For details on the OUTPUT instruction used for data transmission, see Chapter 9.

Transmission instruction

M0 M1

M1

(In case of the CH1 side)

Create transmission data from D11

Create control data from D0

G.OUTPUT Un D0 D11 M0

Processing for normal completion

Processing for abnormal completion (retransmission, etc.)

6 - 25

6 - 25