Melsec-q, 9 dedicated instructions program example – MITSUBISHI ELECTRIC QJ71C24N User Manual

Page 243

Advertising
background image

9 - 13 9 - 13

MELSEC-Q

9 DEDICATED INSTRUCTIONS

Program example

The following example shows a program that sends any data stored in D11 to D15

using the bidirectional protocol.

When the input/output signals of the Q series C24 are from X/Y00 to X/Y1F:

Transmission data is stored.

Clear the transmission result storage device to 0.

Designate the transmission data count in word units.
(Designate K10 when the unit is bytes.)

The transmission data stored in the designated device is
sent.
After the BIDOUT instruction is executed, the user
designated transmission complete signal (M1) turns ON for
one scan.
Storing the transmission data and writing the transmission
data count in the buffer memory, and issuing a
transmission request to Q series C24 are all executed by
the PLC CPU.

Designate the number of the interface (CH ) that will
send the data.

Transmission command is converted to pulse.

The completion flag is reset by the external command.

Advertising
This manual is related to the following products: