Program - Mitsubishi Electric QJ71E71-100 User Manual

Q corresponding ethernet interface module
Table of Contents

Advertisement

12.9.3

Program

(1) Sample program procedures
This section describes the procedures for a sample program.
(a) Sending side (QCPU-1 side)
The following describes how communications are processed on the sending side (QCPU-1 side).
1.
Set each parameter on a programming tool and write the set parameters to the CPU module.
Then reset the CPU module and confirm that the initial process is completed.
2.
Perform the open process (Active open) of the connection number 1.
3.
Perform communications using a fixed buffer from the CPU module using the BUFSND
instruction.
4.
After the data is sent, perform the close process of the connection number 1.
(b) Receiving side (QCPU-2 side)
The following describes how communications are processed on the receiving side (QCPU-2 side).
1.
Set each parameter on a programming tool and write the set parameters to the CPU
module. Then reset the CPU module and confirm that the initial process is completed.
When the initial process is normally completed, the connection number 1 waits for an
Active open request from the connected device.
2.
Perform communications using a fixed buffer from the CPU module using the BUFRCV
instruction.
3.
Data received in the corresponding fixed buffer data area in the E71 is read to the CPU
module.
168

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qj71e71-b5Qj71e71-b2

Table of Contents