Program - Mitsubishi Electric MELSEC-L SERIES Basic User Manual

Melsec-l ethernet interface module
Hide thumbs Also See for MELSEC-L SERIES:
Table of Contents

Advertisement

12.9.3

Program

(1) Sample program procedures
This section describes the procedures for a sample program.
(a) Sending side (LCPU-1 side)
The following describes how communications are processed on the sending side (LCPU-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 check 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 (LCPU-2 side)
The following describes how communications are processed on the receiving side (LCPU-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 check 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 connected device.
3.
Use the BUFRCV instruction to read the data that have been received by the corresponding fixed
buffer data area of the E71 into the CPU module.
150

Advertisement

Table of Contents
loading

Table of Contents