An Overview Of The Sample Program - Panasonic FP2 ET-LAN Technical Manual

Table of Contents

Advertisement

16.1 Sample Program

16.1.1 An Overview of the Sample Program

This is a sample program in which data is being sent and received between an ET-LAN unit and a
workstation.
System configuration
Setting conditions
Items
IP address
Port No.
MEWTOCOL station No.
Communication function
PROTOCOL
Open method
Operation overview
After a connection has been opened, the workstation uses MEWTOCOL-COM to send data to the ET-
LAN unit, and writes it to the DT0 of the programmable controller.
On the programmable controller side, initialization processing and open processing of the ET-LAN unit
are carried out, and „01" is set as the MEWTOCOL station number.
Usage method
1. Compile the sample program and create the execution file.
2. Enter the RUN mode on the programmable controller side.
3. Run the sample program.
4. When the connection is successfully opened, the sample program displays the following menu and
waits for input.
5. Pressing "0" at this points writes "0H" to DT0 (check this on the programmable controller side).
6. Pressing "1" at this point writes "FFFFH" to DT0 (check this on the programmable controller side).
7. Pressing "E" at this point disconnects the line and exists the program.
16-2
ET-LAN unit
192.9.210.130
4097
01
MEWTOCOL communication
TCP/IP
Unpassive
Workstation
If the network ID is the same as
that of the ET-LAN unit, no host
ID needs to be specified.
4098
02
Active (bind → connect)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp2-et1Fp2-et2Afp27901Afp2790

Table of Contents