Vous êtes sur la page 1sur 8

2/17/12

Config ing ABTCP DASe e o Comm nica e i h AB PLC5 U ing S i eLink P o ocol

Tech No e 288

Config ing ABTCP DASe e U ing S i eLink P o ocol


Topic#: 001083 C reated: November 2002

o Comm nica e

i h AB PLC5

All Tech Notes and KBC D documents and software are provided "as is" without warranty of any kind. See the Terms of Use for more information.

The Wonderware ABTCP DAServer allows Windows applications program such as InTouch application to access data in Allen-Bradley programmable controllers such as SLC-500 series, PLC-5, and PLC5/250 over the Ethernet network. You can use this server as a DDE, SuiteLink, or OPC server to communicate with Wonderware InTouch applications or Windows programs capable of being a DDE, FastDDE, Suitelink, or OPC client. This technote shows how to configure and use Wonderware's ABTCP DAServer with the AllenBradley PLC5 using DDE / SuiteLink protocol. Before you continue, make sure you have the following: Follow the instructions in the documents for proper installation procedures and supported Operating systems. Installed the latest version of the ABTCP DAServer. If a previous version was installed, be sure to uninstall it using Add/Remove program in the Control Panel. This technote is written using ABTCP DAServer version 1.0. Installed and configured TCP/IP network protocol and the network interface card (NIC) so that it can communicate with the PLC via Ethernet using Winsock interface. Properly configure your Allen-Bradley Processor communications so that you can communicate with the PLC via Ethernet. Note -- This technote assumes the user has a basic working knowledge and understanding of Ethernet networking, Allen-Bradley PLC5 software/hardware, MicroSoft operating system, Wonderware FactorySuite components, WWCLient, and ABTCP DAServer.

Config a ion In

c ion

1. Determine the hierarchical structure of the network and PLC rack. The ABTCP DAServer starts at the TCPIP object, which is a logical representation of the Ethernet port for the Ethernet communication in the computer. 2. Start up the DAS Control Client from the task bar using Start / Programs / Wonderware / DAServer / Wonderware DAS Control Client. The DASControlClient window appears as in Figure 1.

fa. ammicomp e .co.k /TECH/h ml/ 001083.h m

1/8

2/17/12

Config ing ABTCP DASe e o Comm nica e i h AB PLC5 U ing S i eLink P o ocol

F IGURE 1. DASC ONTROLC LIENT 3. Expand LocalNode / ArchestrA.DASABTCP.1 / Configuration. It should now appear as in Figure 2.

F IGURE 2. GLOBA L PA RA METER 4. Right-Click Configuration and select Add Port_TCPIP Object as shown in Figure 3. A default name New_PORT_TCPIP_000 is assigned to the Ethernet port.
fa. ammicomp e .co.k /TECH/h ml/ 001083.h m 2/8

2/17/12

Config ing ABTCP DASe e o Comm nica e i h AB PLC5 U ing S i eLink P o ocol

F IGURE 3: TCPIP PA RA METERS C ONFIGURA TION From this branch of the hierarchy, the following objects can be created: PLC5_TCPIP for PLC5/20E through PLC5/80E SLC500_TCPIP for SLC5/05 PLC PYRAMID_EI for Pyramid Integrator network 5. Since we will communicate with a PLC5/20E, right-click on the New_PORT_TCPIP_000 branch and select Add PLC5_TCPIP Object. On the New_PLC5_TCPIP_000 Parameters configuration view, enter either the PLC's host name OR IP address. Figure 4 shows the TCPIP Parameters Configuration with the IP address for PLC5/20E configured for this technote. Click the Appl button to implement the changes. After all modifications are made, you will be prompted to save the changes to the configuration set. Host Name: The Host Name OR IP Address of the PLC. The host name is defined in the hosts file which is used to resolve the PLC's host name and IP address. Data block Si e: The number of date bytes can be sent in a messages. Valid range for PLC5 and the pyramid are from 2 to 2000. For SLC500 PLC is from 2 to 510. Connection Timeout: Time (in milliseconds) allowed to establish the connection to the PLC. Valid range: 1000 - 20000 msec. Repl Timeout: Time (in seconds) the ABTCP DAServer is to wait for the acknowledgement after sending out a message. The DAServer will resend the message when the timeout is done. Valid range: 1 to 300 seconds.

fa. ammicomp e .co.k /TECH/h ml/ 001083.h m

3/8

2/17/12

Config ing ABTCP DASe e o Comm nica e i h AB PLC5 U ing S i eLink P o ocol

F IGURE 4. TCPIP PA RA METERS C ONFIGURA TION

6. Now click on the Device Groups tab to create and configure device group definitions (also known as topic definitions). Right-Click the area in the Device Group and use the context menu to add a new device group. A default name (Topic_0) will be given to the new device group as shown in Figure 5 below. You can change it by clicking on the name (Topic_1) and enter a meaningful name (maximum 32characters long.) Click the Appl button to implement the changes. After all modifications are made, you will be prompted to save the changes to the configuration set. Note -- You can change the on the number and modifying your network when you have for unsolicited messages, set Update Interval (in milliseconds) as your wish by double-clicking it. The update interval can be changed to help reduce the traffic in multiple device groups in the list. If you want to configure the group the update interval to zero (0) millisecond.

fa. ammicomp e .co.k /TECH/h ml/ 001083.h m

4/8

2/17/12

Config ing ABTCP DASe e o Comm nica e i h AB PLC5 U ing S i eLink P o ocol

F IGURE 5: DEVICE GROUPS C ONFIGURA TION

7. In the hierarchy tree on the left pane, right-click on ArchestrA.DASABTCP.1 and select the Activate Server in the context menu to start the DAServer. The icon next to ArchestrA.DASABTCP.1 will change from red to green as shown in Figure 6.

fa. ammicomp e .co.k /TECH/h ml/ 001083.h m

5/8

2/17/12

Config ing ABTCP DASe e o Comm nica e i h AB PLC5 U ing S i eLink P o ocol

F IGURE 6. ABTCP DASERVER STA RTED The ABTCP DAServer is ready for use. We are now going to do a quick communications test to verify that we can establish the connection to the PLC. 8. Click Start / Programs / Wonderware / Common / WWClient to start the Wonderware WWClient program. On the menu bar, select Connections / Create. The Create Connection dialog box will appear. Enter appropriate information as shown in Figure 7 below, where: Node: is blank since the ABTCP DAServer and the WWClient are on the same computer. Otherwise, enter the computer name of the machine running the DAServer. Application: DASABTCP which is the name of the ABTCP DAServer. Topic: Topic_0 which is the exact name of the new device group we just created in the DAServer. Connection T pe: IOT which is the SuiteLink protocol using for this technote.

F IGURE 7. WWC LIENT'S C REA TE C ONNECTION DIA LOG BOX


fa. ammicomp e .co.k /TECH/h ml/ 001083.h m 6/8

2/17/12

Config ing ABTCP DASe e o Comm nica e i h AB PLC5 U ing S i eLink P o ocol

9. Click Create, then Done. The WWClient window should now be similar to that in Figure 8:

F IGURE 8. WWC LIENT SHOWING C ONNECTION WITH THE ABTCP DASERVER 10. Now, click on the Item on the menu bar. Enter a known good PLC register address, such as S:23 ( a built-in second timer for PLC5). Click the AdviseEX button to register and advise the item. If the Ethernet connection to the PLC is good, you should see the S:23 timer timing as shown in Figure 9 below:

F IGURE 9. WWC LIENT DISPLA YING PLC5'S TIMER S:23 VA LUES

By Brian Nguyen Tech No e are published occasionally by Wonderware Technical Support. Publisher: Invensys Systems, Inc.,
fa. ammicomp e .co.k /TECH/h ml/ 001083.h m 7/8

2/17/12

Config ing ABTCP DASe e o Comm nica e i h AB PLC5 U ing S i eLink P o ocol

26561 Rancho Parkway South, Lake Forest, C A 92630. There is also technical information on our software products at www.wonderware.com/support/mmi For technical support questions, send an e-mail to support@wonderware.com.

back to top
2012 Invensys Systems, Inc. All rights reserved. No part of the material protected by this copyright may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying, recording, broadcasting, or by anyinformation storage and retrieval system, without permission in writing from Invensys Systems, Inc. Terms of Use.

fa. ammicomp e .co.k /TECH/h ml/ 001083.h m

8/8

Vous aimerez peut-être aussi