Melsec-q, Appendix (2) program example, Remark – MITSUBISHI ELECTRIC QJ71C24N User Manual

Page 332

Advertising
background image

App. - 38 App. - 38

MELSEC-Q

APPENDIX

(2) Program example

<Receive read request>

<Read of received data count>

<Read of received data>

<Receive error detection>

<When receive error detected: Read of data reception result>

Changes the receive read
request signal into pulses.

Reads the received data count
from the communication area of
the buffer memory to D1.

Received data acquisition
command

Abnormal completion of
REMFR instruction

Reads data as many as the
received data count from the
communication area of the buffer
memory to D1.

Normal reception completion

Abnormal completion of REMFR
instruction

Turns ON the receive read
completion signal.

Abnormal reception completion

Reception result acquisition
command

Reads the data reception result
of the buffer memory to D8000.

Normal completion of REMFR
instruction

Abnormal completion of REMFR
instruction

Turns ON the receive read
completion signal.

Turns OFF the receive read
completion signal.

REMARK

When data reception is executed by the bidirectional protocol, the area enclosed by

the dotted line shown above must be removed.

Set the intelligent function module switches as indicated below. (Refer to Section

4.5.2.)

Switch No.

Setting value

Switch 1

07C0

H

Switch 2

0007

H

Advertising
This manual is related to the following products: