Televac® AN 3029: Televac® EthernetIP Vacuum Controllers Creating and Mapping Class 3 Connections for Rockwell Automation Allen-Bradley CompactLogix PLCs

1 Description

목적

This application note explains the basic process for creating and mapping Class 3 Explicit Message connections in the Rockwell Automation Studio 5000 development environment for CompactLogix Programmable Logic Controllers (PLCs).

These connections allow the PLC to communicate with a Televac® EthernetIP device to exchange data and set parameters remotely.

Before You Begin

Before creating a Class 3 connection:

  • Load the appropriate EDS file into the PLC project.
  • Add the Televac® Ethernet module to the project.

Refer to Televac® Application Note 3016 for instructions on loading the EDS file and adding a new Ethernet module.

Refer to the applicable Televac® EthernetIP product instruction manual for:

  • Class 1 and Class 3 connection details.
  • The complete ADI table, including data instance, name, array length, access, and description.
  • IP address configuration information.
Back to Table of Contents

2 Configure a Class 3 GET Connection

2.1

Verify that the appropriate EDS file has been loaded and that the Televac® Ethernet module has been successfully added to the Studio 5000 project.

Studio 5000 project showing the Televac Ethernet module added and running
2.2

Select the rung where the message will be added. Right-click the rung and select Add Ladder Element... from the menu.

Studio 5000 ladder rung context menu with Add Ladder Element selected
2.3

Locate the Input/Output folder and select MSG from the list.

Studio 5000 Add Ladder Element window with MSG selected under Input Output
2.4

Right-click the box within the MSG instruction and select New Tag....

Studio 5000 MSG instruction context menu with New Tag selected
2.5

Provide a name for the tag and configure the following settings:

  • Set Data Type to MESSAGE.
  • Set External Access based on the applicable ADI information in the product manual.
  • Select Open MESSAGE Configuration.

When finished, select Create.

Studio 5000 New Parameter or Tag window configured for a GET MESSAGE tag
2.6

In the Message Configuration window:

  1. Set Service Type to Get Attribute Single.
  2. Set Class to A2.
  3. Set Attribute to 5.
  4. Refer to the applicable product ADI table to determine the correct Instance.

The Class and Attribute values are the same for all Televac® EthernetIP Class 3 connections.

In the example shown, Gas Type for Unit 2 on the EthernetIP Gateway uses Instance 218.

Select New Tag... for the Destination Element, where the received data will be stored locally.

Studio 5000 Message Configuration window showing Get Attribute Single Class A2 Attribute 5 and Instance 218
2.7

Create a new local tag to store the received parameter data.

  • Use REAL for pressure data.
  • Use STRING for all other data.
  • Set External Access based on the GET/SET information in the applicable ADI table.

When finished, select Create.

Studio 5000 New Parameter or Tag window showing a STRING destination tag for received data
2.8

Select the newly created local tag in the Destination Element field.

Studio 5000 Message Configuration window selecting the newly created Destination Element tag
2.9

Open the Communication tab and select the Televac® Ethernet module.

Verify that the module name appears in the Path field.

Studio 5000 Message Path Browser showing the Televac Ethernet module selected
2.10

Open the Tag tab and verify that the Name matches the message tag created in Section 2.5.

Select Apply to save the changes, then select OK to exit the configuration window.

Studio 5000 Message Configuration Tag tab showing the GET message tag name and Apply button
2.11

The GET MSG ladder instruction is now configured and ready to receive data from the Televac® Ethernet module.

Back to Table of Contents

3 Configure a Class 3 SET Connection

3.1

Verify that the appropriate EDS file has been loaded and that the Televac® Ethernet module has been successfully added to the Studio 5000 project.

Studio 5000 project showing the Televac Ethernet module added and running
3.2

Create a new STRING type tag in the Controller Tags table.

Set the String Length to match the Array Size of the instance being written, as specified in the applicable product ADI table.

In the example shown, the Gas Type parameter for the EthernetIP Gateway has an array size of 2 bytes.

Studio 5000 Controller Tags table showing the STRING tag and string length configuration
3.3

Set the STRING tag to the desired parameter value.

In the example shown, the string is set to N2 for nitrogen gas.

Studio 5000 String Browser showing N2 entered for nitrogen gas
3.4

Select the rung where the message will be added. Right-click the rung and select Add Ladder Element... from the menu.

Studio 5000 ladder rung context menu with Add Ladder Element selected
3.5

Locate the Input/Output folder and select MSG from the list.

Studio 5000 Add Ladder Element window with MSG selected under Input Output
3.6

Right-click the box within the MSG instruction and select New Tag....

Studio 5000 MSG instruction context menu with New Tag selected
3.7

Provide a name for the tag and configure the following settings:

  • Set Data Type to MESSAGE.
  • Set External Access based on the applicable ADI information in the product manual.
  • Select Open MESSAGE Configuration.

When finished, select Create.

Studio 5000 New Parameter or Tag window configured for a SET MESSAGE tag
3.8

In the Message Configuration window:

  1. Set Service Type to Set Attribute Single.
  2. Set Class to A2.
  3. Set Attribute to 5.
  4. Refer to the applicable product ADI table to determine the correct Instance.
  5. Set the Source Element and Length to the tag created in Section 3.2.

The Class and Attribute values are the same for all Televac® EthernetIP Class 3 connections.

In the example shown, Gas Type for Unit 2 on the EthernetIP Gateway uses Instance 218.

Studio 5000 Message Configuration window showing Set Attribute Single Class A2 Attribute 5 Instance 218 and source element settings
3.9

Open the Communication tab and select the Televac® Ethernet module.

Verify that the module name appears in the Path field.

Studio 5000 Message Path Browser showing the Televac Ethernet module selected
3.10

Open the Tag tab and verify that the Name matches the message tag created in Section 3.7.

Select Apply to save the changes, then select OK to exit the configuration window.

Studio 5000 Message Configuration Tag tab showing the SET message tag name
3.11

The SET MSG ladder instruction is now configured and ready to send data to the Televac® Ethernet module.

Back to Table of Contents