Académique Documents
Professionnel Documents
Culture Documents
v1.0.0 Initial Release 10 September 2008 v1.0.1 Update 12 September 2008 - added step-by-step detail for AOI setup v1.0.2 Update 30 September 2008 - updated AOI and faceplate setup
Table of Contents
Introduction___________________________________________________________ 3
Stratix 8000 Add-On-Instructions and Faceplates: What are they? _________________ 3 What components are needed?_______________________________________________ 5 Features of using an AOI to communicate to the switch __________________________ 5 Quickstart steps to run the demo _____________________________________________ 6
Navigating Through the Faceplate _______________________________________ 27 Stratix 8000 AOI Extended Documentation ________________________________ 32 Stratix 8000 Faceplate Extended Documentation___________________________ 36
Home Screen _____________________________________________________________ 36 Port Settings _____________________________________________________________ 37 Port Statistics: Input_______________________________________________________ 38 Port Statistics: Output _____________________________________________________ 39 Trending: Port Utilization and Switch Temperature vs. Time______________________ 40 Trending: Configuration____________________________________________________ 41 Port Fault Status __________________________________________________________ 42
9/30/2008
Page 2 of 42
Introduction
Stratix 8000 Add-On-Instructions and Faceplates: What are they?
The Stratix 8000 Add-On-Instruction (AOI) provides programmatic access to Stratix 8000 configuration and settings. Additionally, switch status can be monitored both in RSLogix 5000 and FactoryTalk View. The Stratix 8000 faceplate is a pre-configured screen displayed in View SE or View ME that interfaces with the Stratix8000 AOI to provide HMI functionality and integration.
Faceplate
9/30/2008
Page 3 of 42
The following is list of features that the AOI/faceplate combination provides: Display information about the switch itself Switch hostname IP Address Subnet Mask Default Gateway Temperature Uptime Display individual port status (based on operator selection) inactive, disabled, fault, connected Display individual port fault status (based on operator selection) OK or not connected Threshold exceeded Unauthorized device connected Alarm Relay Active Display diagnostic information on a per-port basis Utilization (%) Threshold Limit (%) Speed Duplex Link Status Auto Negotiation Status Hardware fault status Unauthorized device status Port input counter data In Octets In UCast packets In NUCast packets In Discards In Errors In Unknown Protocols Port output counter data Out Octets Out UCast packets Out NCast packets Out Discards Out Errors Out Unknown Protocols Trend of port utilization and temperature of switch vs. time Port Utilization Switch Temperature Trend range configuration: Utilization MIN and MAX Temperature MIN and MAX Different limits available for each pen
9/30/2008
Page 4 of 42
RSLogix
Stratix 8000 Add-On-Profile
v1.00
Samplecode website
FactoryTalk View SE or ME
Stratix 8000 Faceplates SE Global Object Faceplate screens Stratix 8000 Faceplates ME Global Object Faceplate screen
v5.0 or later v1.0 Stratix_8000_SE_v1-0.ggfx popStratix8000.gfx, Main.gfx Stratix_8000_ME_v1-0.ggfx popStratix8000.gfx, Main.gfx Samplecode website
v1.0
Samplecode website
9/30/2008
Page 5 of 42
6. Save and download to the controller. 7. Select either the SE or ME view demo application and load to your machine. 8. Make sure the switch is visible in RSLinx Enterprise and set the shortcut Controller to point to your controller. 9. Run your HMI application!
9/30/2008
Page 6 of 42
Open RS Logix 5000 and create a new application, Select the controller type and where appropriate set the chassis size and correct slot number. If you are using a ControlLogix processor, add an ENBT / EN2T card to the configuration.
When you have done so, or if you are using a CompactLogix processor, right click on the Ethernet network and select New Module
Browse to Communications
9/30/2008
Page 7 of 42
and scroll down until you find the Stratix 8000 Switch family. Select the appropriate module and click OK:
The New Module window will appear. The next steps will show you how to provide a name and the IP address for your switch. Note that by default, the module definition is configured to be an Input Data connection. You should change this to Data by clicking on the Change button.
9/30/2008
Page 8 of 42
2. Set the Switch IP address and change the Connection Type to Data. Password is either rockwell or write
9/30/2008
Page 9 of 42
You will return to the main module creation dialog. Click on the Connection tab and note that the RPI is set to a default value of 1000ms. Since the CIP interface to a switch is likely to be used for diagnostic purposes rather than active control, an update once a second is sufficient.
Click OK. You will now see the switch visible in the controller I/O tree.
The switch is functioning properly as a device when there is no yellow X on the I/O tree.
9/30/2008
Page 10 of 42
Install: Add-On-Instruction
Setting up the Add-on Instruction
In your Logix 5000 project, right click on Add-on instruction and select Import Add-On Instruction:
Import the correct add-on instruction for your switch model. In this case, the AB1783MS10T add-on instruction is used as an example. You should select add-on instruction which matches your switch model.
9/30/2008
Page 11 of 42
Note that the Add-on instruction (and a second add-on instruction handling IP address conversion) is now visible in the controller configuration, together with a number of user-defined data types and strings.
9/30/2008
Page 12 of 42
Open the main routine in the controller and click on the Add-On tab.
Click on the AB_1783 button to create an instance of the AB_1783MS add-on instruction.
Populate the AOI as follows, creating the relevant tags in each case. Note that the AOI backing and switch parameters tags can be of either program or controller scope but the Storage and Get_Message tags MUST be set to be controller scoped.
9/30/2008
Page 13 of 42
9/30/2008
Page 14 of 42
9/30/2008
Page 15 of 42
Click on the symbol to the right of the Get_All_Message tag to open the Message configuration window. Enter the parameters as shown below:
Click on the Communication tab. Click on the Browse button and select the path to your switch.
Return to the Communication Tab of the Message configuration screen and ensure that the Connected and Cache Connections check boxes are ticked.
9/30/2008
Page 16 of 42
Click on the symbol to the right of the Get_Single_Message tag to open the Message configuration window. Enter the parameters as shown below:
Click on the Communication tab. Click on the Browse button and select the path to your switch.
9/30/2008
Page 17 of 42
Return to the Communication Tab of the Message configuration screen and ensure that the Connected and Cache Connections check boxes are ticked.
Note: By default, the Add-on instruction is configured to allow control of the port status from the Faceplate. If you wish to remove this functionality, the button can be deleted from the global object. Alternatively, the bit controlling the visibility setting can be changed in the first rung of the add-on instruction. This will turn of the Set_ShowDisableButton bit on the first scan. Note that changing the add-on instruction will affect all instances of the switch. Alternatively, this bit can be turned on or off programmatically.
9/30/2008
Page 18 of 42
The global object contains 2 tag placeholders that need to be set at runtime by passing a parameter file using /P or by passing tags using /T with the Display command. #1 = complete path to the Switch_Parameters parameter of the AOI.
#2 = RSLinx shortcut name defined in your View application (without brackets) In the demo application, youll see that #1 and #2 are defined as such:
9/30/2008
Page 19 of 42
1. Drag the .ggfx global object file to your FactoryTalk View application.
Drag the SE object into your SE application. Drag the ME object into your ME application.
2. You will now need a new screen which uses the global object as a template. Drag the .gfx screen file to your FactoryTalk View application.
The popStratix8000.gfx screen uses the respective SE or ME global object as a template. The Main.gfx file is not necessary, but it shows you how to call the faceplate popStratix8000 from a button. Using View ME In View ME, you will create a button on your screen that has a command similar to the following defined as a release action:
9/30/2008
Page 20 of 42
#1 = complete path to the Switch_Parameters parameter of the AOI and #2 = RSLinx shortcut name defined in your View application (without brackets)
Using View SE
In View SE, you will create a button on your screen similar to the following defined as a release action:
where ::[Controller]Program:MainProgram.stratix1 is the runtime substitution for #1 and Controller is the substitution for #2. Modify the command with your controller shortcut name and your switch parameters tag! You may also use the /P option and configure a parameter file as in View ME.
Display popStratix8000 /PStartix8000
9/30/2008
Page 21 of 42
FactoryTalk View SE
1. Double-click the file Stratix8000_SE_demo_v1_0.apa and the FactoryTalk View application manager will create a new standalone View SE application. Assign the Linx topic to your controller. Note: Please keep the [Controller] shortcut name.
2.
3.
In Studio, before you run the application, open the Properties of the TagAandE server. Verify both tabs and close the Properties window. There wont be a need to change anything, but you still should open this window.
4.
On the Main Display, there are 3 buttons. You will have to configure the last 2 buttons to get them to work.
5.
On the Switch Ladder Code button, delete whats there and add this command with this syntax:
OpenRSLogix5000 "C:\Stratix8000\L32E_S8K_Faceplate_Full.ACD" MainProgram MainRoutine
where
"C:\Stratix8000\L32E_S8K_Faceplate_Full.ACD"
is replaced with the path to your ACD file. 6. On the Switch Webpage button, replace the IP address with your switchs IP address.
AppStart http://192.168.1.5
9/30/2008
Page 22 of 42
9/30/2008
Page 23 of 42
Button to launch Stratix8000 website. Button to open Logix5000 to show Stratix8000 AOI (if configured) Button to call Stratix8000 faceplate Tag-Based Alarm and Events to show how port status can be captured,displayed to operator, and displayed in A&E History (if configured).
Note: everytime the faceplate is initially displayed, it is forced to show the Home display through the use of a display command on popStratix8000.gfx.
9/30/2008
Page 24 of 42
FactoryTalk View ME
1. Double-click the file Stratix8000_ME_demo_v1_0.apa and the FactoryTalk View application manager will create a new standalone View ME application. Assign the Linx topic to your controller, both local and target. Note: Please keep the [Controller] shortcut name.
2.
3. Create a runtime application and transfer to your Panelview station using the Transfer Utility.
9/30/2008
Page 25 of 42
Note: everytime the faceplate is initially displayed, it is forced to show the Home display through the use of a display macro on popStratix8000.gfx.
9/30/2008
Page 26 of 42
9/30/2008
Page 27 of 42
Click on the button to launch the switch display. The home screen will appear. Note that the display will automatically detect the type of device connected and modify the display accordingly for example you will see either a six port or a 10 port base unit. Similarly, expansion modules will also be shown if they are present.
Note that the colour scheme is similar to that used with the Device Manager active ports are shown green whereas disabled ports are a dark brown colour. Further information can be obtained by clicking on the button, which brings up context sensitive help for each screen.
9/30/2008
Page 28 of 42
button. button.
To select a port in View SE, click on the port itself. To select a port in ViewME, click on the multi-list selector Up/Down arrows. The selected port is highlighted in yellow. For example, here port Fa1/3 has been selected.
Click on the Disable button to turn off that port. If a port is disabled, the colour of that port will change to brown. Click on the button to show information about the incoming traffic for the selected port.
9/30/2008
Page 29 of 42
Change the selected port setting and note the differences between active and inactive ports. Click on the button to show information about the outgoing traffic for the selected port.
to display the trend object. This shows the utilisation of the Click on the trend button selected port (in blue) and CPU temperature (in red). The y-axis scale can be changed by clicking on the Next Pen button. Data which is currently being displayed is indicated by the green rectangle. In this case, it shows that the active trend of the port utilisation for port Fa1/3.
9/30/2008
Page 30 of 42
Now click on the Trend settings button to modify the display parameters. Enter new values, as shown below. In each case, remember to press the enter key after entering the value in the respective fields.
again to view the modified graph. Click Next Pen if the Click on the trend button Temperature selection is not active. You should see a graph similar to that shown below. or red (alarm active) . Click on the alarm button, which may be grey (no alarm active) This screen will indicate if an unauthorised device is connected to the switch, if bandwidth has been exceeded on any of the ports or if the alarm relay contact has been triggered.
9/30/2008
Page 31 of 42
9/30/2008
Page 32 of 42
Rung 6: This rung reads each ports utilisation value and maps it the UDT corresponding to that ports Ethernet Link object. This serves two purposes it reduces the need to send an explicit message to read the bandwidth from attribute 100 of the Ethernet Link object and also allows the global object to read all of the display data to be read from the UDT directly. Rung 7: The screens in the global object are defined such that the screens themselves have a value between 0 and 9, with the respective help screens having a value 10+ that for the screen itself. With the current implementation of the global object, only screens 0 to 6 require any explicit messaging. Rung 7 controls a MessageTimer the preset for which is set on the first scan to poll CIP objects at a regular interval. The MessageTimer however will only count up if a screen is selected which requires the display of data obtained by explicit messaging. The timer will also only count up if the two MSG instructions used in the AOI are not currently enabled. The DN bit of the timer is included in the rung to ensure that it self-resets. The counter is also dependent on the InitialDelay bit being set. Rung 8: Rung 8 triggers a counter which increments whenever the MessageTimer is complete. This provides a value which increments every second. The counter is self-resetting on completion. Rung 9: Stratix 8000 switches have multiple instances of the Ethernet Link object. Information such as port speed, duplex status and port statistics are obtained from the appropropriate instance of the Ethernet Link object. The instance to be polled is determined by the port selected by the user. Rung 9 checks that the input from the user is non-zero and copies the value to the Selected_EthernetLink_Instance variable. Rung 10: Rung 10 determines which objects are to be polled depending on the selected screens. This is set up as follows: Set_FaceplateAnimation 0 2 MessageNumber(s) 10 4 5 6 7 8 9 10 4 10 4 10 1 10 1 2 10 10
3 4 5 6
Rung 12: Triggers the Get Attribute All Message whenever the MessageTimer is done. The class, attribute and instance parameters are set up as follows: For all objects except for initial message: Attribute = 0 Message Number 0 (First Message) 1 2 3 4 Class / Object 246 Ethernet Link 863 Switch Parameter 245 TCP/IP 246 Ethernet Link 246 Ethernet Link Instance 0 1 1 0 Selected_EthernetLink_Instance Data (Main) Number of Instances (Ports) Temperature Uptime IP Address Hostname Number of Instances (Ports) Port settings Counters
The results of the message operation are copied into the Storage SINT array.
9/30/2008
Page 33 of 42
Rung 13: Triggers Get Attribute Single Message whenever the MessageTimer is done. The class, attribute and instance parameters are set up as follows: Message Number 5 6 7 8 9 10 Class / Object 246 Ethernet Link 246 Ethernet Link 246 Ethernet Link 246 Ethernet Link 246 Ethernet Link 246 Ethernet Link Instance Selected_EthernetLink_Instance Selected_EthernetLink_Instance Selected_EthernetLink_Instance Selected_EthernetLink_Instance Selected_EthernetLink_Instance 0 Attribute 108 109 110 111 112 105 Data (Main) Applied Smartport VLANs assigned Broadcast Threshold Unicast Threshold Multicast Threshold Disabled Ports
The results of the message operation are copied into the Storage SINT array. Rung 14 & Rung 15: Generate a bit when the respective message is done. These rungs allow the respective bit to be used in subsequent rungs instead of using the respective .DN bit and a ONS elsewhere in the program. Rung 16: Copies the result of the Get Attribute All message into the appropriate part of the UDT. The value of the MessageNumber determines to which variable the results are copied. Rung 16 translates the results corresponding to messages 1 to 4. Rung 17: Copies the results of the Get Attribute Single message into the appropriate part of the UDT. The value of the MessageNumber determines to which variable the results are copied. Rung 17 translates the results corresponding to messages 5 to 10. Rung 18: Copies the disabled_ports value obtained by message 10 to HMI.Val_Disabled_Ports for display Rung 19: When the switch information screen is selected, the IP address, subnet mask and default gateway are read from the TCP/IP object. This rung converts this information into dotted-decimal from by calling the IP_Address_to_String AOI for each conversion. The result is placed in the HMI part of the UDT. Rungs 20 and 21: The trend object allows the operator to change the axes for the two parameters which can be displayed: temperature and port utilisation. These two runs copy the values which have been set by the user to the variables used by the trend object for display. Rung 22: Copies port settings and counters for the selected port for display. The information copied here includes speed and duplex settings for the port, the applied smartport as well as the port counters themselves. Rung 23: If the trend object is selected (animation 6) copy the value of the temperature read from the switch parameter object to the tag read by the trend object. Rung 24: Copies the switch hostname and uptime to the HMI part of the UDT for display. This rung does a comparison between the current value in the UDT and that obtained in the TCPIP object. If there is a difference, the destination string is cleaned before the new data is copied. This ensures that the FTView screen displays the information correctly. Rung 25: Captures whenever the port disable button is pressed and increments the value stored in the button_counter array. Each element of the array corresponds to one of the ports. The appropriate element is determined by the value of HMI.Set_SelectedPort Rung 26: If the stored value is 1, latch on the output bit for the selected port in order to disable it. Rung 27: If the stored value is 0, unlatch the output bit for the selected port in order to enable it. Rung 28: Monitor the value of the button counter and reset it to 0 if it is 2 ensures that the only possible values are 0 and 1 Rung 29: Map the value of button_counter for the selected port to the tag HMI.Val_EnableButton to ensure that the button displays enable when the port is disabled and disable when the port is enabled. Rung 30: Copies the output word used internally by the port control rungs to the actual output
9/30/2008
Page 34 of 42
Rungs 31 & 32: Map the values set on the trend configuration screen to the axes values used in the trend object depending on the button selected by the user. Clicking utilization sets the value of Set_TrendNextPenOper to 0 whereas clicking temperature sets this value to 1 Rung 33: Maps the error bits of the messages to the error bit of the AOI to provide visual indication of an error condition in the AOI.
9/30/2008
Page 35 of 42
Faceplate
Shows switch name, network information, temperature, uptime, and number of active multi-cast groups. Additionally, general port status is displayed.
9/30/2008
Page 36 of 42
Port Settings
Navigation
Faceplate
Shows individual port settings Port selected from the arrowed selector (View ME) or by clicking on port graphic (View SE).
9/30/2008
Page 37 of 42
Navigation
Faceplate
Shows additional port diagnostics Port selected by clicking on desired port on switch graphic.
9/30/2008
Page 38 of 42
Navigation
Faceplate
Shows additional port diagnostics Port selected by clicking on desired port on switch graphic.
9/30/2008
Page 39 of 42
Navigation
Faceplate
Show port utilization trend (real-time only) Port selected from the arrows. Graph starts fresh at each new port selection. Shows temperature of switch
9/30/2008
Page 40 of 42
Trending: Configuration
Navigation
Faceplate
After changing legend limits, select them for display by clicking on the pen legend on the trending screen.
9/30/2008
Page 41 of 42
Navigation
Faceplate
9/30/2008
Page 42 of 42