Documente Academic
Documente Profesional
Documente Cultură
Example of use
Contents
1 Introduction .................................................................................................................. 3
1.1 Description .............................................................................................................. 3
1.2 Target group............................................................................................................ 3
1.3 Data ........................................................................................................................ 3
3 Example projects........................................................................................................ 14
3.1 RS Logix project.................................................................................................... 14
3.2 Visu+ project ......................................................................................................... 17
1 Introduction
1.1 Description
This example of use illustrates how communication is established between the touch panel
from Phoenix Contact and an Allen Bradley Control Logix.
This document describes setup of the EtherNet/IP driver in the Visu+ development
environment. The example program for RS Logix and Visu+ is described in section 4. Useful
expansions such as the monitoring of communication are dealt with in the Tips and Tricks
section.
This document is intended for users with a basic knowledge of the VISU+ 2 (Order No.
2988544) and RS Logix 5000 logic tools. Refer to the VISU+ Programmers Guide (Order No.
7477) in the PHOENIX CONTACT download center or the VISU+ User Course (Order
No. 2884716) for further information on Visu+.
1.3 Data
Name: TP 3105T EtherNet/IP communication
Type: Example of use
Environment: Visu+ 2.04, RS Logix 5000 Ver. 16.00.00
Language: Ladder Logic
Version: V1.00
Author: PxCE / MPOT
Touch Panel: TP 3105T (Order No. 2700916) or optional
TP 3057M (Order No. 2700901)
TP 3057T (Order No. 2700906)
TP 3070T (Order No. 2700911)
TP 3121T (Order No. 2700921)
Controller types: Allen Bradley Control Logix 5555, 1756 L55 A
TP 3105T EtherNet/IP communication
Page 4 of 21
In the following window, please select the desired HMI product first, subsequently the desired
storage location for the new project und finally, a name. If the order is adhered to, Visu+
automatically generates a folder with the selected name in the selected path and creates a
new project with suitable settings for the selected product.
In the next step, click on the communication objects with the right mouse button select the
Add a new Comm. I/O driver item.
The new dialog offers you all available drivers in Visu+. A driver is offered for EtherNet/IP
communication within the Rockwell Automation group.
The driver is now integrated into your Visu+ project and no longer appears in the selection
list.
TP 3105T EtherNet/IP communication
Page 8 of 21
Further settings are made to the driver during the following procedure. Double-click on the
driver beneath the communication objects in the list.
You can now add your ControlLogix station via the Station Properties tab. Assign a unique
name for your station under Station Name and enter the IP address of the EtherNet/IP
scanner Additional setting must be made according to the driver help file.
You can test the connection of the hardware connected via the Test Cable/Comm function.
The result of the test is reported immediately.
The following window shows the properties of a dynamic task. The station is assigned as
device that was created in the previous Station Properties window. The other properties are
set according to the instructions in the help file. The A-B address in the 'Allen-Bradley Task
Settings" section must correspond to the name in the RS Logix controller tag list.
The successful setup of the driver can now be checked with a lamp for example. For this
purpose, take a lamp out of the tool box on your drawing area and link it to the
bPlcTaktMerker variable. Since the clock marker of the controller linked via the
bPlcTaktMerker variable is a byte and each bit symbolizes a specific frequency, you must
determine a matching bit manually. Supplement the variable name linked to the lamp with the
desired bit number (e.g., .5 corresponds to 1 Hz).
If implemented successfully, the lamp should flash at the the selected frequency.
TP 3105T EtherNet/IP communication
Page 14 of 21
3 Example projects
3.1 RS Logix project
The project included for the RS Logix consists of 3 parts.
In these three parts, the following 'global variables' or controller tags can be accessed from Visu+. The
EtherNet/IP driver only supports access to controller tags.
The eXclusive OR condition for the analog value visualized in fig. 2 in a trend is located in
the Counter program section. If the result is True, counting up (up to max. 100) or down
(down to min. 0) takes place depending on the CountUp or CountDown button pressed. If the
result is False, no action is performed.
The LifeBit is generated in the Toggle program section. Visu+ reads the LifeBit from the
Control Logix via the ToggleBit variable.
The date and time are read in the the "Main Program" section via the Get System Value
block. Visu+ reads the date and time from the Control Logix via the user-defined TIME (
DINT[7] ) of the DateAndTime variable.
Should your controller be accessible under another address, you must adjust this in the
station configuration of the EtherNet/IP driver. The project uses some elements of the image
1 and 2 process images that exchange data with the Control Logix CPU. The current data
and time of the CPU is shown in figure 1. Furthermore, the LifeBit indicating controller
accessibility is visualized
A trend window is represented in figure 2 that displays the value of the counter from the RS
Logix project. CountUp and CountDwn are linked within the Control Logix CPU XOR and
enable the counter to count up to a maximum of 100 or count down to a minimum of 0.
All further process images or functions correspond to the standard Phoenix Contact Visu+
project example of use and are described in the Visu+_Template_V1_00_049.DOC
document. This document is available in the download center under
http://www.PhoenixContact.com.
TP 3105T EtherNet/IP communication
Page 20 of 21
5 List of figures
Fig. 1: creating a new Visu+ project....................................................................................... 4
Fig. 2: step 2 of the project wizard......................................................................................... 5
Fig. 3: adding the EtherNet/IP driver...................................................................................... 6
Fig. 4: selecting the driver ..................................................................................................... 7
Fig. 5: driver configuration dialog........................................................................................... 8
Fig 6: station settings............................................................................................................. 9
Fig. 7: success message ....................................................................................................... 9
Fig 8: variable properties ..................................................................................................... 10
Fig 9: variable explorer........................................................................................................ 11
Fig. 10: settings task............................................................................................................ 12
Fig. 11: checking successful integration .............................................................................. 13
Fig. 12: RS Logix project tree .............................................................................................. 14
Fig. 13: controller tag list ..................................................................................................... 14
Fig. 14: program counter ..................................................................................................... 15
Fig. 15: program toggle ....................................................................................................... 16
Fig 16: main program .......................................................................................................... 16
Fig 17: station settings......................................................................................................... 17
Fig. 18: process image 1 view ............................................................................................. 18
Fig. 19: process image 2 view ............................................................................................. 19
Fig. 20: LifeBit monitoring.................................................................................................... 20