SITEMAP   PRIVACY   JAPANESE
FAWEB
  JAPAN   HOME  |  Product  |  Support  |  Knowledge  |  Download  |  Sales  |  Company  |  Contact
I/O Server

I/OServer
Top Page
Feature
Datasheet
Introduction
Overview
Release Note
FAQ
Price
Ability
Sample
   MELSEC-Q
   MELSEC-QnA
   MELSEC-A
   Visual Basic 6.0
   Visual C/C++ 6.0
   EXCEL
   InTouch
Manual/Demo

OnlineShop
You are Here : HOME > Product > IOServer > MELSEC-A Series Ethernet Parameter BACK

I/O Server


MELSEC-A Series Ethernet Parameter


When MELSEC-A series Ethernet is used, it explains the method of setting the Ethernet parameter to need the programming on PLC side.

This sample project can be downloaded here.


Hardware Setting
The communication condition setting switch in front of the unit is set as follows.

Switch

* Switch numbers in parentheses indicate switch numbers for discontinued A1SJ71E71-B2/B5-S3.
* Use data code setting (SW2) in binary code (OFF).
* Use CPU communication timing (SW7) with "allow writing from other node when PLC is running" (ON).
* Units without a DIP switch on the front panel (such as A1SJ71E71N-T) have the DIP switch on the board.
* For more details, please refer to the Ethernet Unit manual.


Sample Confiugration
When Ethernet is used by the MELSEC-A series, an initial processing program and the port processing of the Ethernet unit are needed. The example of programming the sample when the Ethernet unit is installed in slot 0 is shown. Please see the manual of PLC for the error processing of the Ethernet unit etc.
Protocol Local Port Other IP Address Other Port
Connection1 UDP/IP 1025 255.255.255.255 0xFFFF
Connection2 TCP/IP Unpassive 1026 N/A N/A
Connection3 TCP/IP Fullpassive 1027 192.168.0.1 1027
IP Address 192.168.0.3
Existence Confirmation Sends ICMP packets three times every 2 seconds after 14 seconds.
Unit Address Ethernet unit is installed in I/O address 0.


Initial Program
Sample PLC Program

1. Set the local IP Address to "192.168.0.3."
2. Set Existence Confirmation Start Interval timer to 14 seconds (7*2 seconds).
3. Set Existence Confirmation Interval Timer to 2 seconds (1*2 seconds).
4. Set Communication Instruction during STOP to "enabled" (0xFFFF) for all connections.
5. Turn on Initial Request signal (Y19).
6. After Initial Complete signal (X19) turns on, set the TCP/IP port to wait OPEN (M10/M20).


UDP/IP Open Processing
Sample PLC Program

1. Set Connection 1 protocol to UDP/IP (0x100).
2. Set Local Port # of Connection 1 to "1025".
3. Set Other IP Address to "0xFFFFFFFF" in order to enable broadcast communication.
4. Set Other Port # to "0xFFFF" in order to enable broadcast communication.
5. Turn ON Port OPEN Request (Y8).

- UDP/IP does not require connection processing. Y8 reset circuit is not required. Port remains open.
- If you do not specify the other PC, set Other IP Address to "0xFFFFFFFF" and Other Port # to "0xFFFF" in order to enable broadcast communication.


TCP/IP Unpassive Open Processing
Sample PLC Program

1. Set Connection 2 protocol to TCP/IP unpassive (0x8002).
2. Set "1026" to the local port of Connection 2.
3. Turn on Open Request (Y9) by default (this enables access from I/O Server).
4. When Open Complete signal (X11) turns off, turn Open Request off once and repeat step [3] again after 0.5 seconds.

- Configure Existence Confirmation properly when using TCP/IP.
- In order to return to wait OPEN state after the session is disconnected, make sure you wait a sufficient amount of time before attempting again.


TCP/IP Full Passive Open Processing
Sample PLC Program

1. Set Connection 3 protocol to TCP/IP full passive (0xC002). 2. Set "1027" to the local port of Connection 3.
3. Set "192.168.0.1" to Other IP of Connection 3.
4. Set "1027" to Other Port of Connection 3.
5. Turn on Open Request (Y9) by default (this enables access from I/O Server).
6. When Open Complete signal (X11) turns off, turn Open Request off once and repeat step [5] again after 0.5 seconds.

- Configure Existence Confirmation properly when using TCP/IP.
- In order to return to wait OPEN state after the session is disconnected, make sure you wait a sufficient amount of time before attempting.
- When using TCP/IP full passive communication, the port used by Windows will be locked after the session is closed. You may not be able to establish connection again for some time as a result.

BACK

Copyright © 1998-2006 TAKEBISHI Corporation All rights reserved.

FAWEB.NET
TAKEBISHI Corporation
29 Mamedacho Nishikyogoku Ukyoku Kyoto 615-8501, JAPAN
TEL: +81-75-325-2171 / FAX: +81-75-325-2273 fa-support@takebishi.co.jp