You are on page 1of 11

Application Note

Capturing and Storing Axis Fault History

Purpose of this Document: This document describes how to implement an Axis Fault History program module into a previously developed
RSLogix5000 Application.

NOTE: This application files discussed in this document were developed using RSView ®ME 3.02 and RSLogix5000 v13.03 software.

Before You Begin: The following software and hardware is required.

Hardware: Description:
ControlLogix Sales demo with Ultra3000 Standard ControlLogix Sales demo including Ultra3000 SERCOS drive (2098-DSD- 005-SE)
SERCOS Drive

Personal Computer (PC) Personal Computer use for application display and development

Software: Load Software on:


RSLogix v 13.03 PC
RSLinx v 2.42
RSView ME v 3.02

Application Files: Purpose: Load Files on:


APP_AFH.acd RSLogix5000 application file PC / L63 Controller
APP_AFH.mer RSView®ME runtime application file PC
APP_AFH.apa Backup of the RSView®ME application file

Application Code Module Description

The Axis Fault Log code module is designed to record axis faults and store the faults in a 50 element FIFO (First In – First Out) stack. All
tags used within the code module for operation are program scope tags. Along with the program scope tags used, there are also 2 User
Defined Data Types (UDT’s) required for operation.

Integrating the Axis Fault Log Code Module

1. Go on-line with your controller and upload the existing program.

2. Save the program, making sure that when prompted to save current tag values you choose YES.

1
3. Keeping the program to be modified open, open the RSLogix5000 project containing the Axis Fault Log code module. On your
desktop, you should see 2 instances of RSLogix5000, as shown below.

4. Once both projects are open, begin by copying the 2 UDT’s found in the Axis Fault Log project. Highlight each UDT, right click
and select Copy.

2
5. In the target project highlight the User-Defined folder, right click and select paste.

6. Once this has been done for each UDT, both UDT’s from the template should appear in the User-Defined folder in your target
project.

3
7. Returning to the template project highlight and right-click the AXIS_FaultHistory program folder, and select copy.

8. In the target project highlight the main task, right-click, and select paste.

4
9. Following a successful paste procedure, when the program folder is expanded, all the routines should be visible.

10. Next, open the Program Tag Database by highlighting Program Tags in the AXIS_FaultHistory program folder and selecting
EDIT Tags.

11. Once the Tag Database is opened and ready for editing, it is necessary to begin to alias tags. The reason these tags are not
accepted is because they are aliased to axes that don’t exist in our target application.

5
12. Taking a closer look at the axes in our target application, we find that there are 2 axes of data type AXIS_SERVO_DRIVE that
need to be aliased to. By highlighting on each axis, we can determine what SERCOS node each axis is associated with by
viewing the node number in the Status Panel

Highlight Axis

View SERCOS Node Number

13. Once each axes’ node number is known, we can alias our program scope tags. In the picture below, the program scoped tag
Servo_Axis_Node_1 is being aliased to the controller scoped tag AXIS1_Web. This will need to be done for each SERCOS axis
in the motion group. When aliasing the axes, remember to alias your motion group as well.

Note: When aliasing tags, it is important to remember that the Tag Name and the Alias tag must be different,
otherwise the tag will not be accepted.

6
14. Now that all SERCOS axes in the motion group have been aliased to, we find there are still tags that are not accepted, because at
this point they are unused because our application does not have 8 axes. There are 2 choices that can be made at this time. The
first, modify the code module by deleting tags and all references in the ladder logic to those tags. The second is to simply create
another axis and leave it ungrouped so that all the tags can be aliased to this unused axis. Highlight the Ungrouped Axes folder,
right click, and create a new axis.

15. When creating the new axis, make sure to pick AXIS_SERVO_DRIVE as your data type.

16. Once the “dummy” axis has been created, the aliasing can be completed.

7
17. Once all aliasing has been completed verify your project, save, and download to the controller.

Using the Basic RSViewME Application

The Axis Fault History navigation screen is displayed below.

Major screen components include:


 Time and Date Stamp of Logged Fault
 Current System Time
 SERCOS Node List Selection
 Fault Queue Index Number Selection
 Fault Indicators

8
Fault Time and Date Stamp- Displays date and time the fault was logged

Current System Time- Displays the current system time

SERCOS Node List Selection- Used to select axis for fault log viewing

Node Viewed
Increment

Return to Top

Decrement

Fault Queue Index Number Selection- Used to select individual queue index. As the queue operates as a FIFO stack, Index 1 will always
be the most current. Selection buttons operate identical to the Node Selection buttons.

Fault Viewed

Fault Indicators- Used to indicate the presence of a fault. Red indicates the presence of a fault.

Note: The Group Synched indicator under the Group Status heading is an exception to this operation. When a fault is logged, the
Group Synched indicator will display green for Synched, or red if it is not.

9
This Page Intentionally Left Blank

10
Important User Information
Solid state equipment has operational characteristics differing from those of electromechanical equipment. Safety Guidelines for the
Application, Installation and Maintenance of Solid State Controls (Publication SGI-1.1 available from your local Rockwell Automation sales
office or online at http://www.rockwellautomation/liturature) describes some important differences between solid state equipment and hard-
wired electromechanical devices. Because of this difference, and also because of the wide variety of uses for solid state equipment, all
persons responsible for applying this equipment must satisfy themselves that each intended application of this equipment is acceptable.
In no event will Rockwell Automation, Inc. be responsible or liable for indirect or consequential damages resulting from the use or
application of this equipment.
The examples and diagrams in this document are included solely for illustrative purposes. Because of the many variables and
requirements associated with any particular installation, Rockwell Automation, Inc. cannot assume responsibility or liability for actual use
based on the examples and diagrams.
No patent liability is assumed by Rockwell Automation, Inc. with respect to use of information, circuits, equipment, or software described in
this document.

RSViewME and VersaView are registered trademarks of Rockwell Automation, Inc.


PanelView Plus and Ultra3000 are trademarks of Rockwell Automation, Inc.

www.rockwellautomation.com

Corporate Headquarters
Rockwell Automation, 777 East Wisconsin Avenue, Suite 1400, Milwaukee, WI, 53202-5302 USA, Tel: (1) 414.212.5200, Fax: (1) 414.212.5201

Headquarters for Allen-Bradley Products, Rockwell Software Products and Global Manufacturing Solutions
Americas: Rockwell Automation, 1201 South Second Street, Milwaukee, WI 53204-2496 USA, Tel: (1) 414.382.2000, Fax: (1) 414.382.4444
Europe/Middle East/Africa: Rockwell Automation SA/NV, Vorstlaan/Boulevard du Souverain 36, 1170 Brussels, Belgium, Tel: (32) 2 663 0600, Fax: (32) 2 663 0640
Asia Pacific: Rockwell Automation, 27/F Citicorp Centre, 18 Whitfield Road, Causeway Bay, Hong Kong, Tel: (852) 2887 4788, Fax: (852) 2508 1846

Headquarters for Dodge and Reliance Electric Products


Americas: Rockwell Automation, 6040 Ponders Court, Greenville, SC 29615-4617 USA, Tel: (1) 864.297.4800, Fax: (1) 864.281.2433
Europe/Middle East/Africa: Rockwell Automation, Brühlstraße 22, D-74834 Elztal-Dallau, Germany, Tel: (49) 6261 9410, Fax: (49) 6261 17741
Asia Pacific: Rockwell Automation, 55 Newton Road, #11-01/02 Revenue House, Singapore 307987, Tel: (65) 6356-9077, Fax: (65) 6356-9011

Publication 2098-xxxxxx-xx-x – January 2005 Copyright © 2004 Rockwell Automation, Inc. All rights reserved. Printed in USA.

You might also like