Control Logix Motion Module-AllenBradley
Control Logix Motion Module-AllenBradley
Control Logix Motion Module-AllenBradley
(Cat.No. 1756-M02AE)
Because of the variety of uses for the products described in this publication, those responsible for the application and use of this control equipment must satisfy themselves that all necessary steps have been taken to assure that each application and use meets all performance and safety requirements, including any applicable laws, regulations, codes and standards. The illustrations, charts, sample programs and layout examples shown in this guide are intended solely for purposes of example. Since there are many variables and requirements associated with any particular installation, Allen-Bradley does not assume responsibility or liability (to include intellectual property liability) for actual use based upon the examples shown in this publication. Allen-Bradley publication SGI-1.1, Safety Guidelines for the Application, Installation and Maintenance of Solid-State Control (available from your local Allen-Bradley office), describes some important differences between solid-state equipment and electromechanical devices that should be taken into consideration when applying products such as those described in this publication. Reproduction of the contents of this copyrighted publication, in whole or part, without written permission of Rockwell Automation, is prohibited. Throughout this manual we use notes to make you aware of safety considerations: ATTENTION Identifies information about practices or circumstances that can lead to personal injury or death, property damage or economic loss
!
IMPORTANT
Identifies information that is critical for successful application and understanding of the product.
If this product has the CE mark it is approved for installation within the European Union and EEA regions. It has been designed and tested to meet the following directives.
EMC Directive
This product is tested to meet the Council Directive 89/336/EC Electromagnetic Compatibility (EMC) by applying the following standards, in whole or in part, documented in a technical construction file:
EN 50081-2 EMC Generic Emission Standard, Part 2 Industrial Environment EN 50082-2 EMC Generic Immunity Standard, Part 2 Industrial Environment
Table of Contents
Preface
Chapter 1
Chapter 2
Table of Contents
General Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Vendor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Slot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Revision . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Electronic Keying. . . . . . . . . . . . . . . . . . . . . . . . . Connection Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . Requested Packet Interval . . . . . . . . . . . . . . . . . . Inhibit Module checkbox . . . . . . . . . . . . . . . . . . . Major Fault Controller Connection Fails checkbox . Module Fault . . . . . . . . . . . . . . . . . . . . . . . . . . . . Associated Axes Tab . . . . . . . . . . . . . . . . . . . . . . . . Servo Update Period . . . . . . . . . . . . . . . . . . . . . . Channel 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Channel 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . New Axis button . . . . . . . . . . . . . . . . . . . . . . . . . Module Info Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . Major/Minor Fault Status . . . . . . . . . . . . . . . . . . . Internal State Status . . . . . . . . . . . . . . . . . . . . . . . Configured . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Owned . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Module Identity . . . . . . . . . . . . . . . . . . . . . . . . . . Refresh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Reset Module. . . . . . . . . . . . . . . . . . . . . . . . . . . . Backplane Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . ControlBus Status. . . . . . . . . . . . . . . . . . . . . . . . . ControlBus Parameters. . . . . . . . . . . . . . . . . . . . . Multicast CRC Error Threshold . . . . . . . . . . . . . . . Transmit Retry Limit. . . . . . . . . . . . . . . . . . . . . . . Set Limit Button . . . . . . . . . . . . . . . . . . . . . . . . . . Receive Error Counters. . . . . . . . . . . . . . . . . . . . . Transmit Error Counters . . . . . . . . . . . . . . . . . . . . Refresh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Assigning Additional Motion Modules . . . . . . . . . . . . . . Running Hookup Diagnostics and Auto Tuning . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-6 2-6 2-6 2-6 2-7 2-7 2-7 2-7 2-8 2-9 2-9 2-10 2-10 2-10 2-11 2-11 2-11 2-11 2-12 2-13 2-14 2-14 2-14 2-15 2-15 2-15 2-15 2-16 2-16 2-16 2-17 2-17 2-17 2-17 2-17 2-17 2-18 2-18
Chapter 3
Table of Contents
General Tab . . . . . . . Type . . . . . . . . . . . Vendor . . . . . . . . . Name . . . . . . . . . . Description . . . . . . Slot . . . . . . . . . . . . Revision . . . . . . . . Electronic Keying. . SERCOS Interface Tab Data Rate . . . . . . . Cycle Time . . . . . . Transmit Power . . . SERCOS Interface Info Ring Comm. Phase. Fault Type. . . . . . . Refresh . . . . . . . . .
.... .... .... .... .... .... .... .... .... .... .... .... Tab . .... .... ....
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
3-4 3-5 3-5 3-5 3-5 3-5 3-6 3-6 3-7 3-8 3-8 3-8 3-8 3-9 3-9 3-9
Chapter 4
Table of Contents
Station Address . . . . . . . . . . . . . . . . . . . . . Error Detection . . . . . . . . . . . . . . . . . . . . . Enable Duplicate Detection . . . . . . . . . . . . ACK Timeout. . . . . . . . . . . . . . . . . . . . . . . DF1 Point to Point Parameters . . . . . . . . . . DF1 Inquiries. . . . . . . . . . . . . . . . . . . . . . . NAK Receive Limit . . . . . . . . . . . . . . . . . . . DF1 Slave Parameters. . . . . . . . . . . . . . . . . Transmit Retries. . . . . . . . . . . . . . . . . . . . . Slave Poll Timeout. . . . . . . . . . . . . . . . . . . DF1 Master Parameters. . . . . . . . . . . . . . . . Transmit Retries. . . . . . . . . . . . . . . . . . . . . Reply Message Wait . . . . . . . . . . . . . . . . . . Polling Mode . . . . . . . . . . . . . . . . . . . . . . . Master Transmit . . . . . . . . . . . . . . . . . . . . . Normal Poll Node Tag . . . . . . . . . . . . . . . . Normal Poll Group Size . . . . . . . . . . . . . . . Priority Poll Node Tag . . . . . . . . . . . . . . . . Active Station Tag . . . . . . . . . . . . . . . . . . . User Protocol Tab Overview. . . . . . . . . . . . . . Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . Buffer Size. . . . . . . . . . . . . . . . . . . . . . . . . Termination Character 1 and 2 . . . . . . . . . . Append Character 1 and 2 . . . . . . . . . . . . . XON/OFF . . . . . . . . . . . . . . . . . . . . . . . . . Echo Mode . . . . . . . . . . . . . . . . . . . . . . . . Delete Mode . . . . . . . . . . . . . . . . . . . . . . . Major Faults Tab Overview. . . . . . . . . . . . . . . Number of Major Faults Since Last Cleared . Recent Faults . . . . . . . . . . . . . . . . . . . . . . . Clear Majors . . . . . . . . . . . . . . . . . . . . . . . Minor Faults Tab Overview . . . . . . . . . . . . . . Number of Minor Faults Since Last Cleared . Recent Faults . . . . . . . . . . . . . . . . . . . . . . . Clear Minors . . . . . . . . . . . . . . . . . . . . . . . Fault Bits. . . . . . . . . . . . . . . . . . . . . . . . . . Date/Time Tab Overview. . . . . . . . . . . . . . Date . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Coordinated System Time master . . . . . . . . Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . Advanced Tab Overview . . . . . . . . . . . . . . . . Memory Used . . . . . . . . . . . . . . . . . . . . . . Memory Unused . . . . . . . . . . . . . . . . . . . . Memory Total . . . . . . . . . . . . . . . . . . . . . .
Publication 1756-UM006A-EN-P - April 2001
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-6 4-7 4-7 4-7 4-7 4-7 4-7 4-7 4-7 4-7 4-8 4-8 4-8 4-8 4-8 4-8 4-9 4-9 4-9 4-9 4-10 4-10 4-10 4-11 4-11 4-11 4-12 4-12 4-12 4-13 4-13 4-13 4-13 4-14 4-14 4-14 4-14 4-15 4-15 4-15 4-15 4-15 4-16 4-16 4-16 4-16
Table of Contents
Controller Fault Handler. . . . Power-Up Handler. . . . . . . . System Overhead Time Slice File Tab Overview . . . . . . . . . . Name . . . . . . . . . . . . . . . . . Path . . . . . . . . . . . . . . . . . . Created . . . . . . . . . . . . . . . . Edited . . . . . . . . . . . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
Chapter 5
Table of Contents
Real Time Axis Information . Homing Tab . . . . . . . . . . . . . . Mode . . . . . . . . . . . . . . . . . Position. . . . . . . . . . . . . . . . Offset . . . . . . . . . . . . . . . . . Sequence . . . . . . . . . . . . . . Limit Switch. . . . . . . . . . . . . Direction . . . . . . . . . . . . . . . Speed . . . . . . . . . . . . . . . . . Return Speed. . . . . . . . . . . . Homing Configurations . . . . Homing Tab . . . . . . . . . . . . . . Home Position. . . . . . . . . . . Mode . . . . . . . . . . . . . . . . . Sequence . . . . . . . . . . . . . . Homing Direction . . . . . . . . Homing Speed. . . . . . . . . . . Home Return Speed. . . . . . . Hookup Tab . . . . . . . . . . . . . . Test Increment. . . . . . . . . . . Feedback Polarity . . . . . . . . Output Polarity . . . . . . . . . . Test Marker . . . . . . . . . . . Test Feedback . . . . . . . . . Test Output & Feedback . . . Tune Tab. . . . . . . . . . . . . . . . . Tuning Travel Limit . . . . . . . Tuning Speed . . . . . . . . . . . Tuning Direction . . . . . . . . . Damping Factor. . . . . . . . . . Tune . . . . . . . . . . . . . . . . . . Start Tuning. . . . . . . . . . . . . Tune Bandwidth Dialog . . . . . . Bandwidth. . . . . . . . . . . . . . Dynamics Tab . . . . . . . . . . . . . Maximum Velocity . . . . . . . . Maximum Acceleration. . . . . Maximum Deceleration . . . . Program Stop Action . . . . . . Manual Tune... . . . . . . . . . . Gains Tab . . . . . . . . . . . . . . . . Velocity Feedforward. . . . . . Acceleration Feedforward. . . Proportional (Position) Gain. Integral (Position) Gain . . . . Proportional (Velocity) Gain.
Publication 1756-UM006A-EN-P - April 2001
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-17 5-18 5-19 5-19 5-19 5-19 5-20 5-20 5-21 5-21 5-22 5-22 5-22 5-23 5-23 5-24 5-24 5-24 5-26 5-26 5-27 5-27 5-28 5-28 5-28 5-29 5-29 5-29 5-29 5-30 5-30 5-30 5-30 5-30 5-32 5-33 5-33 5-34 5-34 5-35 5-35 5-36 5-36 5-37 5-38 5-38
Table of Contents
Integral (Velocity) Gain . . . . . . . . . . Integrator Hold . . . . . . . . . . . . . . . . Manual Tune... . . . . . . . . . . . . . . . . Output Tab . . . . . . . . . . . . . . . . . . . . . Velocity Scaling . . . . . . . . . . . . . . . . Torque Scaling . . . . . . . . . . . . . . . . Enable Filter Bandwidth. . . . . . . . . . Filter Bandwidth . . . . . . . . . . . . . . . Manual Tune... . . . . . . . . . . . . . . . . Limits Tab . . . . . . . . . . . . . . . . . . . . . . Soft Travel Limits . . . . . . . . . . . . . . . Maximum Positive . . . . . . . . . . . . . . Maximum Negative . . . . . . . . . . . . . Position Error Tolerance. . . . . . . . . . Position Lock Tolerance . . . . . . . . . . Output Limit . . . . . . . . . . . . . . . . . . Manual Tune... . . . . . . . . . . . . . . . . Offset Tab . . . . . . . . . . . . . . . . . . . . . . Friction Compensation . . . . . . . . . . . Velocity Offset. . . . . . . . . . . . . . . . . Torque Offset . . . . . . . . . . . . . . . . . Output Offset . . . . . . . . . . . . . . . . . Manual Tune... . . . . . . . . . . . . . . . . Fault Actions Tab. . . . . . . . . . . . . . . . . Drive Fault . . . . . . . . . . . . . . . . . . . Feedback Noise . . . . . . . . . . . . . . . . Feedback Loss . . . . . . . . . . . . . . . . . Position Error . . . . . . . . . . . . . . . . . Soft Overtravel. . . . . . . . . . . . . . . . . Tag Tab. . . . . . . . . . . . . . . . . . . . . . . . Name . . . . . . . . . . . . . . . . . . . . . . . Description . . . . . . . . . . . . . . . . . . . Tag Type. . . . . . . . . . . . . . . . . . . . . Data Type . . . . . . . . . . . . . . . . . . . . Scope . . . . . . . . . . . . . . . . . . . . . . . Style . . . . . . . . . . . . . . . . . . . . . . . . Produce this tag for up to . . . . . . . . Base Tag . . . . . . . . . . . . . . . . . . . . . Manual Tune . . . . . . . . . . . . . . . . . . Assigning Additional Motion Axes . . . . . . . Developing a Motion Application Program. Understanding a Programming Example. . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-39 5-39 5-39 5-40 5-41 5-42 5-42 5-42 5-43 5-43 5-44 5-44 5-45 5-45 5-45 5-45 5-46 5-46 5-47 5-48 5-48 5-48 5-49 5-49 5-51 5-51 5-51 5-51 5-51 5-52 5-52 5-52 5-52 5-53 5-53 5-53 5-53 5-53 5-53 5-54 5-54 5-55
Table of Contents
Chapter 6
Chapter 7
Motion Instructions
Motion State Instructions . . . . . . . . . . . . . . . . . . . Motion Move Instructions . . . . . . . . . . . . . . . . . . Motion Group Instructions. . . . . . . . . . . . . . . . . . Motion Event Instructions . . . . . . . . . . . . . . . . . . Understanding Motion Configuration Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-1 7-2 7-3 7-3 7-4
Table of Contents
Chapter 8
Troubleshooting
1756-M02AE Module Status Using the OK Indicator . . . 1756-M02AE Module Status Using the FDBK Indicator . 1756-M02AE Module Status Using the DRIVE Indicator . 1756-M08SE SERCOS Communication Phase Status Using the CP Indicator . . . . . . . . . . . . . . . . . . . . . . . . 1756-M08SE Module Status Using the OK Indicator. . . . 1756-M08SE SERCOS Ring Status . . . . . . . . . . . . . . . . . . . . 8-1 . . . 8-2 . . . 8-2 . . . 8-3 . . . 8-4 . . . 8-4
Appendix A
Appendix B
Table of Contents
10
Appendix C
Appendix D
Appendix E
Instruction Timing
Understanding Immediate Type Instructions. . . . . . . . . . . . E-1 Understanding Message Type Instructions . . . . . . . . . . . . . E-2 Understanding Process Type Instructions . . . . . . . . . . . . . . E-3
Appendix F
Fault Handling
Handling Motion Faults . . . . . . . . . . . . . . . . . . . . . . . . . . . F-1 Understanding Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-1 Understanding Minor/Major Faults . . . . . . . . . . . . . . . . . . . F-1
Index
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . I-1
Preface
To use this manual, you should be able to program and operate the Allen-Bradley Logix5550 controller to efficiently use your motion control modules. If you need more information about programming and operating the Logix5550 controller, refer to the Logix5550 Controller User Manual, publication number 1756-6.5.12.
This manual describes how to configure and troubleshoot your ControlLogix motion module. The following table shows the contents of each section in this manual:
Section Chapter 1 The ControlLogix Motion Control System Chapter 2 Adding and Configuring Your 1756-M02AE Motion Module Chapter 3 Adding and Configuring Your 1756-M08SE Motion Module Chapter 4 Controller Properties Chapter 5 Adding and Configuring Motion Axes Chapter 6 Configuring a 1394C-SJT05/10/22-D Digital Servo Drive Chapter 7 The Motion Instructions Contains Information about the ControlLogix motion control system. How to add and configure your 1756-M02AE motion module using the RSLogix 5000 programming software. How to add and configure your 1756-M08SE motion module using the RSLogix 5000 programming software Explains how to edit the controller properties. How to name and configure a motion axis using the RSLogixtm 5000 programming software. How to add and configure a 1394C Digital Servo Drive. Information about the 32 motion instructions provided in the RSLogix 5000 programming software. Information about troubleshooting your ControlLogix motion control system.
Chapter 8 Troubleshooting
Preface
P-2
Appendix A Specifications and Performance Appendix B Loop and Interconnect Diagrams Appendix C The Motion Control Structures Appendix D The Motion Attributes Appendix E Instruction Timing Appendix F Fault Handling
Specifications and performance guidelines for the motion module. Loop diagrams and wiring diagrams for your ControlLogix motion control system. An explanation of the motion control structures. Information about the motion attributes. Information about types of timing for motion instructions. Information about motion control faults.
Related Documentation
1756-UM001
1756-RM0003
1756-RM007
1756-IN572
For more information on the documentation, refer to the Allen-Bradley Publication Index, publication number SD499.
Rockwell Automation offers support services worldwide, with over 75 sales/support offices, 512 authorized distributors, and 260 authorized systems integrators located throughout the United States. In addition,
Preface
P- 3
Rockwell Automation representatives are located in every major country in the world.
On the Web
For information about Allen-Bradley, visit the following World Wide Web site: http://www.ab.com/
Preface
P-4
Chapter
The Logix5550 controller, 1756-M02AE servo module, 1756-M08SE SERCOS interface module, and RSLogix5000 programming software provide integrated motion control support.
The Logix5550 controller contains a high-speed motion task, which executes ladder motion commands and generates position and velocity profile information. The controller sends this profile information to one or more 1756-M02AE servo modules. You can use several Logix5550 controllers in each chassis. Each controller can control up to 16 1756-M02AE servo modules. The 1756-M02AE servo module connects to a servo drive and closes a high-speed position and velocity loop. Each Logix5550 controller can support up to 16 1756-M02AE servo modules. Each 1756-M02AE module can control up to two axes. The 1756-M08SE SERCOS interface module serves as the interface between one ControlLogix processor and 1 to 8 axes operating in either position or velocity mode. The module has a programmable ring Cycle Period of 1ms or 2ms depending on the number of axes and a ring Data Rate of 4 Mbaud. RSLogix5000 programming software provides complete axis configuration and motion programming support.
1-2
Identifying the Components The Logix5550 Controller of the ControlLogix Motion The Logix5550 controller is the main component in the ControlLogix System system. It supports sequential and motion functions, and it performs
all of the motion command execution and motion trajectory planner functions. You can use one or more Logix5550 controllers in each chassis, and each controller can control up to 16 motion modules. The Logix5550 controller provides the following motion support:
Thirty motion instructions A high-speed motion task, which manages motion functions and generates move profiles The ability to control up to 16 Analog/Encoder servo modules for a total of 32 axes
1-3
This section provides an introduction to concepts used in developing application programs for motion control. These concepts include:
Application program development The MOTION_INSTRUCTION tag Motion status and configuration parameters Modifying motion configuration parameters Handling motion faults
Publication 1756-UM006A-EN-P - April 2001
1-4
Name and Configure an axis Develop a motion application program Add a motion module Assign additional servo modules and axes Run hookup diagnostics and auto tuning
WARNING
!
Publication 1756-UM006A-EN-P - April 2001
Tags used for the motion control parameter of instructions should only be used once. Re-use of the motion control parameter in other instructions can cause unintended operation of the control variables.
1-5
For more information about the MOTION_INSTRUCTION tag, refer to Appendix C - The Motion Control Structures.
Refer to the Input/Output Instructions chapter of the Logix5550 Controller Instruction Set Reference Manual, publication 1756-RM003B
Example A Motion Axis Move (MAM) instruction with a parameter out of range
1-6
Caused by a problem with the servo loop Can shutdown the controller if you do not correct the fault condition
For more information about handling faults, see Handling Controller Faults in the Logix5550 Controller User Manual, publication 1756-UM001 and Appendix F Fault Handling in this manual.
Chapter
This chapter describes how to add, configure, and edit your 1756-M02AE motion module for use in your motion control application. This chapter describes each of the tasks for adding and configuring a motion module .
To use your motion module in a control system, you must add your motion module to the application program. To add a motion module: 1. Right-click the I/O Configuration folder.
2-2
3. Click on the Clear All button to clear the dialog window then click on Motion to list the available Motion Controllers.
2-3
New Module
Use this dialog to select and create a new module. To access this dialog, position the cursor on the I/O Configuration Folder in the Controller Organizer, and right click the mouse button. The context sensitive menu appears, from which you can select a New Module.
Type
The Type field displays the catalog number of the module highlighted in the Type list box. You can either type in a module catalog number in this field to quickly select/find the module you want to create or you can scroll through the list of modules in the Type list box.
Major Revision
Select the major revision number of the physical module that you think want to reside in the chassis. The major revision is used to indicate the revision of the interface to the module.
Show:
Displays check boxes, which support filtering on particular types of modules.
Check this box: Digital Analog Communication Motion Controller Vendor If you want to: display digital modules supported by the software display analog modules supported by the software display communication modules supported by the software display motion modules supported by the software display controller modules supported by the software display a particular vendor's module profiles that are installed on the system.
2-4
If you want to: display modules that do not fit under the rest of the check box categories.
Select All
Click on this button to display all modules in the list box; all the check boxes in the Show field are checked.
Clear All
Click on this button to clear all check boxes in the Show field. 4. In the Type field, select 1756-M02AE 2 Axis Analog/Encoder Servo. 5. Select OK. The New Module window appears.
Slot Description
2-5
Entry Select the electronic keying level. To Match the vendor, catalog number, and major revision attributes of the physical module and the software configured module Disable the electronic keying protection mode Match the vendor, catalog number, major revision, and minor revision attributes of the physical module and the software configured module Select Compatible module
The following section provides explanations of the Motion Module Properties screens. Use these screens to edit the properties of the module when changes need to be made. You can access the Module Properties screen by highlighting the motion module and right clicking the mouse. Select Properties from the displayed pop-up menu screen as shown in the following figure.
2-6
General Tab
Use this tab to create/view module properties for 1756-M02AE motion module. This dialog provides you with the means to view the type, description, vendor, and the name of the parent module. You can also enter the name and a description for the module. Other fields and buttons on this dialog let you set the slot location of the module, review information for both channels, go to the New Tag dialog to create an axis to associate with one of the channels, select the minor revision number and select an electronic keying option. You can also view the status the controller has about the module but, only when online.
Type
Displays the type and description of the module being created (read only).
Vendor
Displays the vendor of the module being created (read only).
Name
Enter the name of the module.
2-7
The name must be IEC 1131-3 compliant. If you attempt to enter an invalid character or exceed the maximum length, the software beeps and ignores the character.
Description
Enter a description for the module here, up to 128 characters. You can use any printable character in this field. If you exceed the maximum length, the software beeps to warn you, and ignores any extra characters.
Slot
Enter the slot number where the module resides. The spin button contains values that range from 0 to 1 less than the chassis size (e.g., if you have a 4-slot chassis, the spin button will spin from 0 to 3). If you enter a slot number that is out of this range, you will receive an error message when you go to apply your changes. The slot number cannot be changed when online.
Revision
Select the minor revision number of your module. The revision is divided into the major revision and minor revision. The major revision displayed statically is chosen on the Select Module Type dialog.
Electronic Keying
Select one of these keying options for your module during initial module configuration:
Exact Match - all of the parameters described below must match or RSLogix will reject the inserted module. Compatible Module the Module Types, Catalog Number, and Major Revision must match the Minor Revision of the physical module must be equal to or greater than the one specified in the software or RSLogix 5000 will reject the inserted module. Disable Keying - RSLogix 5000 will not employ keying at all.
2-8
When you insert a module into a slot in a ControlLogix chassis, RSLogix 5000 compares the following information for the inserted module to that of the configured slot:
Vendor Product Type Catalog Number Major Revision Minor Revision
This feature prevents the inadvertent insertion of the wrong module in the wrong slot.
Connection Tab
The Connection Tab is used to define controller to module behavior. This is where you select a requested packet interval, choose to inhibit the module, configure the controller so loss of the connection to this module causes a major fault, and view module faults.
The data on this tab comes directly from the controller. This tab displays information about the condition of the connection between the module and the controller.
2-9
ATTENTION
Inhibiting the module causes the connection to the module to be broken and may result in loss of data
!
When you check this box and go online, the icon representing this module in the controller organizer displays the Attention Icon.
If you are: offline online Check this checkbox to: put a place holder for a module you are configuring stop communication to a module If you inhibit the module while you are online and connected to the module, the connection to the module is nicely closed. The module's outputs go to the last configured Program mode state. If you inhibit the module while online but a connection to the module has not been established (perhaps due to an error condition or fault), the module is inhibited. The module status information changes to indicate that the module is 'Inhibited' and not 'Faulted'. If you uninhibit a module (clear the checkbox) while online, and no fault condition occurs, a connection is made to the module and the module is dynamically reconfigured (if you are the owner controller) with the configuration you have created for that module. If you are a listener (have chosen a Listen Only Communications Format), you can not re-configure the module. If you uninhibit a module while online and a fault condition occurs, a connection is not made to the module.
2-10
Module Fault
Displays the fault code returned from the controller (related to the module you are configuring) and the text detailing the Module Fault that has occurred. The following are common categories for errors:
Connection Request Error - The controller is attempting to make a connection to the module and has received an error . The connection was not made. Service Request Error - The controller is attempting to request a service from the module and has received an error. The service was not performed successfully. Module Configuration Invalid - The configuration in the module is invalid. (This error is commonly caused by the Electronic Key Passed fault ). Electronic Keying Mismatch - Electronic Keying is enabled and some part of the keying information differs between the software and the module.
2-11
Channel 0
Represents Channel 0 on the servo module. This field allows you to associate an AXIS_SERVO tag with channel 0. This field transitions to a read-only state while online. Click on the button to the right of this field to open the Axis Properties dialog for the associated axis.
Channel 1
Represents Channel 1 on the servo module. This field allows you to associate an AXIS_SERVO tag with channel 1. This field transitions to a read-only state while online. Click on the button to the right of this field to open the Axis Properties dialog for the associated axis.
2-12
The Module Info Tab displays module and status information about the module. It also allows you to reset a module to its power-up state. The information on this tab is not displayed if you are offline or currently creating a module. Use this tab to determine the identity of the module. The data on this tab comes directly from the module. If you selected a Listen-Only communication format when you created the module, this tab is not available.
2-13
Identification
Displays the modules:
Vendor Product Type Product Code Revision Number Serial Number Product Name
The name displayed in the Product Name field is read from the module. This name displays the series of the module. If the module is a 1756-L1 module, this field displays the catalog number of the memory expansion board (this selection applies to any controller catalog number even if additional memory cards are added: 1756-L1M1, 1756-L1M2).
2-14
analog module
If you selected the wrong module from the module selection tab, this field displays a hexadecimal value. A textual description of this state is only given when the module identity you provide is a match with the actual module.
Configured
This field displays a yes or no value indicating whether the module has been configured by an owner controller connected to it. Once a module has been configured, it stays configured until the module is
2-15
reset or power is cycled, even if the owner drops connection to the module.
Owned
This field displays a yes or no value indicating whether an owner controller is currently connected to the module.
Module Identity
Displays: Match If the module in the physical slot: agrees with what is specified on the General Tab. In order for the Match condition to exist, all of the following must agree: Vendor Module Type (the combination of Product Type and Product Code for a particular Vendor) Major Revision does not agree with what is specified on the General Tab
Mismatch
This field does not take into account the Electronic Keying or Minor Revision selections for the module that were specified on the General Tab.
Refresh
Click on this button to refresh the tab with new data from the module.
Reset Module
Click on this button to return a module to its power-up state by emulating the cycling of power. Resetting a module causes all connections to or through the module to be closed, and this may result in loss of control. IMPORTANT The following modules return an error if a reset is attempted:1756-L1 ControlLogix5550 Programmable Controller; 1336T AC Vector Drive; 1395 Digital DC Drive.
2-16
Backplane Tab
The Backplane tab on the Module Properties window is displayed for informational purposes. You can use this tab to review diagnostic information about the modules communications over the backplane and the chassis in which it is located, clear a fault, and set the transmit retry limit. Information on this tab is displayed only if you are online. If you selected a Listen-Only communication format when you created the module , this tab is not available. The data on this tab comes directly from the module.
ControlBus Status
This box either displays OK or one of the following errors:
Receiver disabled Multicast addresses disabled RA/GA miscompare
To clear the modules backplane fault, click the Clear Fault button .
ControlBus Parameters
This box contains the following fields and button.
2-17
Refresh
Click on the Refresh button to refresh the tab. When you refresh the tab:
if youre using: digital, analog, or motion modules another module then: counters are cleared the tab is refreshed but the counters are not cleared
2-18
You can assign additional modules by repeating the preceding sections. You can assign up to 16 1756-M02AE modules to each Logix5550 controller. Each module uses a maximum of two axes.
Once you have added and configured your motion module and axes, you can run hookup diagnostics and auto tuning. To run diagnostics and tuning, you must download a program and go online. TIP If you have configured Virtual axes or Consumed axes, this step does not need to be performed. Hookup and Tuning only need to be performed for Servo and Position-only axes.
Go to step 3
3. Make sure the keyswitch is in the REM position. 4. From the Communications menu, select Download.
2-19
5. Select Download. 6. Under the I/O Configuration folder, right-click the 1756-M02AE module you want to use.
2-20
8. Next to the Channel field of your axis, select the The Axis Properties window appears.
button.
2-21
2-22
14.
If the axis Moved in the positive direction Moved in the negative direction Then Select Yes Select No
2-23
2-24
19. Slowly rotate the motor axis until the following window appears.
21. Select the Tune Servo tab. The following window appears.
2-25
25.
If: You do not want to change the bandwidth You want to change the bandwidth Then: Go to step 26. 1. In the Bandwidth field, type the position servo bandwidth, which is the unity bandwidth used to calculate gains. 2. Go to step 26.
2-26
2-27
The window shows new values for the position loop, velocity loop, and output compensation. 7.
If You want to change the position loop, velocity, loop, and servo output values You do not want to change the position loop, velocity, and servo output values Then
1. Type the new values in the appropriate fields. 2. Go to step 31.
Go to step 31.
2-28
This window shows new values for maximum velocity, error tolerance, maximum acceleration, and maximum deceleration. 9.
If You want to change the dynamics values You do not want to change the dynamics values Then
3. Type the new values in the appropriate fields. 4. Go to step 33.
Go to step 33.
Chapter
This chapter reviews the necessary steps for configuring the 1756-M08SE motion module. Much of this information is the same as for adding and configuring the 1756-M02AE as discussed in the previous chapter. To configure a 1756-M08SE motion module: 1. In the Controller Organizer, select the I/O Configuration branch.
3-2
3. The Select Module Type screen displays. Select Clear All. Select Motion. The list displays only available motion modules.
4. Select 1756-M08SE. 5. Press the OK button to close the Select Module Type dialog. The Module Properties wizard opens.
Publication 1756-UM006A-EN-P - April 2001
3-3
6. Fill in the required parameters for each page, then click the Next> button. See the section titled 1756-M08SE 8 Axis Motion Module Overview in this chapter for more information on the fields in these screens. 7. When you complete the last page, click the Finish> button. The 1756-M08SE motion module appears in the I/O Configuration branch of the Controller Organizer.
3-4
The 1756-M08SE 8 Axis SERCOS motion module has been added. It uses the standard RSLogix 5000 module properties tabbed dialog box, with the following exceptions:
The General tab references the 1756-M08SE 8 Axis motion module. The SERCOS Interface tab is for configuring SERCOS communication settings for the 1756-M08SE 8 Axis motion module. The SERCOS Interface Info tab is used to monitor the status of the SERCOS communication ring.
For help on the Connection, Module Info or Backplane tabs of this dialog box, refer to the chapter on Naming and Configuring Your 1756-M02AE Module in this manual.
General Tab
Use this tab to create/view module properties for the 1756-M08SE 8 Axis SERCOS motion module.
3-5
Type
Displays the type and description of the module being created (read only).
Vendor
Displays the vendor of the module being created (read only).
Name
Enter the name of the module. The name must be IEC 1131-3 compliant. If you attempt to enter an invalid character or exceed the maximum length, the software beeps and ignores the character.
Description
Enter a description for the module here, up to 128 characters. You can use any printable character in this field. If you exceed the maximum length, the software beeps to warn you, and ignores any extra characters.
Slot
Enter the slot number where the module resides. The spin button contains values that range from 0 to 1 less than the chassis size (e.g., if you have a 4-slot chassis, the spin button spins from 0 to 3). If you enter a slot number that is out of this range, you receive an error message when you apply your changes. The slot number cannot be changed when online.
3-6
Revision
The revision is divided into the major revision and minor revision. The major revision displayed statically is chosen on the Select Module Type dialog. The major revision is used to indicate the revision of the interface to the module. The minor revision is used to indicate the firmware revision. Select the minor revision number of your module.
Electronic Keying
Select one of these keying options for your module during initial module configuration: Exact Match - all of the parameters must match or the inserted module rejects the connection. Compatible Module - the Module Types, Catalog Number, and Major Revision must match. The Minor Revision of the physical module must be equal to or greater than the one specified in the software or the inserted module rejects the connection. Disable Keying Logix5550 does not employ keying at all.
WARNING
Changing the RPI and Electronic Keying selections may cause the connection to the module to be broken and may result in a loss of data. Be extremely cautious when using this option; if used incorrectly, this option can lead to personal injury or death, property damage or economic loss.
3-7
When you insert a module into a slot in a ControlLogix chassis, RSLogix5000 compares the following information for the inserted module to that of the configured slot:
Vendor Product Type Catalog Number Major Revision Minor Revision
This feature prevents the inadvertent insertion of the wrong module in the wrong slot.
3-8
The SERCOS ring consists of the drives and axes connected to the 1756-M08SE motion controller. TIP The settings on this tab are specific to the 1756-M08SE motion controller.
Data Rate
Select the baud rate for the SERCOS ring. (For this release, this value is set to 4 MB and is Read Only.)
Cycle Time
Select the update rate for the SERCOS ring: 1 ms or 2 ms.
Transmit Power
Select the optic transmit power range for the SERCOS ring: High or Low.
3-9
Fault Type
Displays the current fault type, if any, on the SERCOS ring. Values include: No Fault Open Ring Not communicating Not responding Timing error Duplicate node Excess nodes on Ring Invalid data rate Invalid cycle time
Refresh
Click this button to update this page. Note: this information does not refresh automatically.
3-10
Chapter
This chapter describes the fields on each of the dialogs for the Controller Properties.
Controller Properties
Vendor
Displays the name of the controllers manufacturer.
Type
The catalog number and description of the controller. When online, this field includes the catalog number of the memory card (if any).
4-2
Name
The name of the controller. When you create a project, this is the same as the name of the project file. When you change the name of the controller, however, the name of the project file does not change. If you want to keep the two the same, then you must rename the file using Windows Explorer or a similar file management tool.
IMPORTANT
This name must be IEC_1131 compliant. If you enter an invalid character in this field, or if the name you enter exceeds 40 characters, the software ignores the character.
Description
Enter a description for the controller here, up to 128 characters. You can use any printable character in this field. If you exceed the maximum length, the software ignores any extra characters.
Chassis Type
Select a supported chassis type from the pull-down list. Each entry in the list consists of the catalog number of the chassis, as well as a brief description. The chassis type cannot be changed when online.
Slot
Enter the chassis slot number in which the controller resides. The spin button contains values that range from 0 to 1 less than the chassis size (e.g., if you have a 4-slot chassis, the spin button will spin from 0 to 3). If you enter a slot number that is out of this range, you will receive an error message when you go to apply your changes. The slot number cannot be changed when online.
Revision
Displays the major and minor revision of the controller. The minor revision is available only when you are online.
4-3
Change Type
Click on this button to access the Change Processor Type dialog, from which you can change your controller to another controller within the same platform.
IMPORTANT
At this time, RSLogix 5000 does not support changing to a controller from within another platform (e.g., changing from a FlexLogix controller type to a ControlLogix controller type).
4-4
Mode
The type of protocol you will be using. Choose from System or User (default).
Baud Rate
The baud rate assigned to the serial port on the Logix5550. Choose from 110, 300, 600, 1200, 2400, 4800, 9600, and 19200 (default).
Data Bits
The actual number of bits of data per character. Choose from 7 (ASCII only) or 8 (default).
Parity
The parity for the link. Choose from Even, Odd (ASCII only) or None (default).
4-5
Stop Bits
The actual number of stop bits per character. Choose from 2 (ASCII only) or 1 (default).
Control Line
Choose the type of handshaking you wish to use during communications. The choices available to you will vary, depending on the protocol you have selected:
For this mode: User And this protocol: ASCII Choose from: No Handshake (default) Full Duplex Half Duplex No Handshake (default) Full Duplex No Handshake (default) Half Duplex No Handshake (default) Full Duplex Half Duplex
System
Continuous Carrier
Check this box if you wish to use Half Duplex communication with continuous carrier. This checkbox is disabled if you have chosen something other than Half Duplex communication, or if you have chosen Master as your protocol. By default, this option is unchecked when enabled.
4-6
controllers serial port for DF1 Point to Point, DF1 Master, or DF1 Slave. The parameters present on this tab are dependent upon the protocol you select.
IMPORTANT
Note: If you wish to configure your system for ASCII, click on the User Protocol tab.
The parameters present on this tab are dependent upon the protocol you select.
Station Address
Enter the current station link address of the com port to which the DF1 object is now associated. Valid values are from 0 to 254; the default value is 0.
4-7
Error Detection
Click on one of the radio buttons to specify the error detection scheme used for all messages.
BCC - the processor sends and accepts messages that end with a BCC byte. CRC - the processor sends and accepts messages with a 2-byte CRC.
ACK Timeout
Enter the time the object waits for an acknowledgment to a message transmission. Valid values are from 0 to 65535, in 20 ms increments; the default value is 50 ms.
4-8
Polling Mode
Choose a polling mode from the pull-down menu. Choose from:
Message Based - Do not allow the slave to initiate messages. Message Based - Allow the slave to initiate messages. Standard - Multiple message transfers per node scan. Standard - Single message transfer per node scan.
Master Transmit
Choose the master message transmit that designates when to send any DF1 master message. Choose from:
Between Station Polls - The master transmits a message before the next station. In Poll Sequence - The master transmits messages only when the station number is encountered in the poll list.
4-9
4-10
Protocol
Choose the ASCII protocol. In future releases, the Unicode protocol will also be supported.
Buffer Size
Enter the maximum size (in bytes) of the data array that you are planning on sending and receiving. Valid values are from 1 to 65536; the default size is 82. When the controller sends out the data, if it detects an array that is larger than this buffer size, a minor fault occurs and the extra data is truncated. When the controller receives data, if it detects data that is larger than the size of the buffer, the extra characters are dropped.
4-11
1 as $FF, where $FF tells the controller not to use any definable termination characters when using the ARL or ABL instructions. If you want to use only one character to signal the end of a line, use Termination Character 1, and define Termination Character 2 as $FF.
XON/OFF
Check this option to throttle incoming data. For example, when this option is checked and the receive buffer gets to be 80% full, an XOFF (0x13) character is transmitted to tell the sending device to stop sending. When the buffer has been processed so that it is less than 80% full, the XON (0x11) character is sent to tell the device to resume sending. This option is disabled when the Control Line option is configured for Half Duplex.
Echo Mode
Check this option to cause any data received in the ASCII port to be sent right back out to the device that sent it. For example, you could use this option with a dumb terminal that is unable to display what it sends, but can display what is echoed to it. This option is disabled when the Control Line option is configured for Half Duplex.
4-12
Delete Mode
The character received just before the delete character sequence (0x7F) is removed by the serial port driver before it is given to the ladder logic. Choose from:
Ignore - The delete character sequence is treated the same as any other character that is read in. CRT or Printer - The preceding character in the string buffer is removed before being given to the ladder logic. The only difference between CRT and Printer modes is the type of device sending the string to the controller. If Echo mode is disabled, CRT and Printer do exactly the same thing.
4-13
Recent Faults
Displays a description of the last three major faults that have occurred. These faults are stored in reverse chronological order. When offline, this field contains the stored contents of the last online session.
Clear Majors
Click on this button to clear the Major Fault log.
4-14
Recent Faults
Displays a description of the last eight minor faults that have occurred. These faults are stored in reverse chronological order. When offline, this field contains the stored contents of the last online session.
Clear Minors
Click on this button to clear the Minor Fault log.
Fault Bits
Lists the minor fault bits that have a specific fault type assigned to them. If the bit is set, the checkbox is set. When offline, these checkboxes are disabled, but display the contents of the last online session.
4-15
Date
The wall clock date, in the format currently selected in the Regional Settings application in your Windows NT Control Panel. This parameter is read-only. When offline, this parameter is empty.
Time
The wall clock time, in the format currently selected in the Regional Settings application in your Windows NT Control Panel. This parameter is read-only. When offline, this parameter is empty.
Set
Click on this button to bring up the Set Date/Time dialog, from which you can set the date and/or time. This button is disabled when offline.
Status
Indicates the state of the coordinated system time. There are four status fields, with a circular indicator to the left of each. This indicator is blue if the corresponding status condition is true; otherwise, it will be clear. The status conditions are:
Is the master - you checked the Make this controller the master box, and this controller is the CST master. Synchronized with a master - this controller is not the master; its time is being synchronized by a master. Duplicate master detected - you checked the Make this controller the master box, but there is already a CST master. Timer hardware faulted - there is a hardware fault.
4-16
All of the circular indicators are clear when you are offline.
Memory Used
The amount of memory used in the controller. When offline, this parameter is empty.
Memory Unused
The amount of memory available in the controller. When offline, this parameter is empty.
Memory Total
The total amount of memory in the controller (used plus unused). If a memory daughter card is present, this total includes that memory. When offline, this parameter is empty.
4-17
Power-Up Handler
Choose the program the processor executes when it powers up in Run mode after a power-down in Run mode. The list contains all of the unscheduled programs.
4-18
Name
The name of the project file
Path
The drive and directory of the project file.
Created
The creation date and time of the project file, in the format currently selected in the Regional Settings application in your Windows NT Control Panel.
Edited
The date and time that the project file was last edited, in the format currently selected in the Regional Settings application in your Windows NT Control Panel.
Chapter
This chapter describes how to name, configure, and edit your axis properties.
Naming an Axis
Naming an axis adds it to your application. To name an axis: 1. Go to the File pull-down menu, select New Component, and then select Tag.
5-2
You must set up only one consumed tag to get data from the same producing tag in another controller. WARNING Setting up more than one consumed tag results in unpredictable controller to controller behavior.
!
Use this dialog to create new tags. The parameters that appear on this dialog depend upon the type of tag you are creating.
Publication 1756-UM006A-EN-P - April 2001
5-3
You can create base tags and alias tags while the controller is online or offline, as long as the new tag is verified. You can only create consumed tags while the controller is offline.
Common Parameters
The following parameters appear on the New Tag dialog whether you are creating a base tag, alias tag, or consumed tag.
Name
Enter the name of the tag you want to create.
Description
Enter a description of the tag.
Tag Type
Check the type of tag you are creating:
Base - refers to a normal tag (selected by default) Alias- refers to a tag, which references another tag with the same definition. Special parameters appear on the New Tag dialog that allow you to identify to which base tag the alias refers. Consumed (only available when the controller is offline) - refers to a tag that is produced by another controller whose data you want to use in this controller. Special parameters appear on the New Tag dialog that allow you to identify from where the consumed tag is to come.
Data Type
In the Data Type field you can either enter the type of tag you want to create directly or click on the dotted button to go to the Select Data Type dialog. From this dialog you can select the appropriate data type. Message, Axis, CAM, CAM PROFILES, and PID data types require additional configuration; the Configure button becomes enabled for these data types. Axis, Motion Group, and Message data types can only be used in a controller scope. Also, these three data types do not support arrays. If you are creating an alias tag, the data type definition comes from the base tag, so this field is read-only.
5-4
Once you have named your axis in the New Tag window, you must then configure it. You make your configuring options in the Axis Properties screen. These have a series of Tabs that access a specific dialog for configuring the axis. Make the appropriate entries for each of the fields. An asterisk appears on the Tab to indicate changes have been made but not implemented. Press the Apply button at the bottom of each dialog to implement your selections. TIP When you configure your axis, some fields may be unavailable (greyed-out) because of choices you made in the New Tag window.
5-5
1. In the New Tag window, select Configure. The Axis Properties General window appears.
General Tab
Use the General tab to associate a module to the axis and establish the intended use of the axis. When RSLogix 5000 software is online and the controller transitions to hard run, or the servo loop is on (active), then all the attributes on this tab transition to a read only state. When any attribute transitions to a read only state, then any pending attribute changes are reverted.
Axis Configuration
Selects and displays the intended use of the axis:
Feedback Only: if the axis is to be used only to display position information from the feedback interface. This selection minimizes the display of axis properties tabs and parameters. Servo: if the axis is to be used for full servo operation. This selection maximizes the display of axis properties tabs and parameters.
5-6
sub-branch. Selecting <none> terminates the Motion Group association, and moves the axis to the Ungrouped Axes sub-branch of the Motions Groups branch.
Ellipsis () button
Opens the Motion Group Properties dialog box for the Assigned Motion Group, where you can edit the properties of the Assigned Motion Group. If no Motion Group is assigned to this axis, this button is disabled.
Module
Selects and displays the name of the motion module to which the axis is associated. Displays <none> if the axis is not associated with any motion module.
Module Type
This read-only field displays the type of motion module, if any, with which the axis is associated. An axis of the AXIS_SERVO data type can be associated only with 1756-M02AE motion modules. Displays <none> if the axis is not associated with any motion module.
Channel
Selects and displays the 1756-M02AE motion module channel - either 0 or 1 - to which the axis is assigned. Disabled when the axis is not associated with any motion module.
5-7
Entry Select the positioning mode for you module. To enable A maximum linear excursion of one billion encoder counts The rotary unwind option of the axis Select Linear Rotary
3.
If You have already created a motion group for this axis You want to create a new motion group Then Go to step 13. Go to step 4.
4. Press Apply then select the Group tab to access the Axis Properties Group dialog.
5-8
Axes Assigned
This box lists all of the axes associated with the assigned motion group.
Coarse Rate
Selects the periodic rate at which the motion task executes to compute the servo commanded position, velocity, and accelerations to be sent to the 1756-M02AE modules when executing motion instructions. If the coarse rate is too small, the Logix5550 processor may not have time to execute non-motion related ladder logic. As a general rule, one millisecond per axis is needed by the motion task for the Logix5550 processor to have reasonable execution time. As a result, the configuration sets the lower limit on the coarse rate based on the number of axes in the group. See Appendix A in this manual for more information about calculating the Coarse Update rate.
5. Select the New Group button if no groups are defined and you
5-9
5-10
8. From the Unassigned field, select your axis. 9. Select Add. 10. Press Apply to implement the assignment. Press the Group Attributes tab to access the dialog.
5-11
Entry Select the update period for your motion group. For 200 s update rate Select 200 Select Non major fault Major fault
Select the type of fault for group faults. To classify group faults As minor faults As major faults
12. Press Apply to set the your entries and press OK to return to the Axis Properties Group window.
13. In the Assigned Motion Group field, select your motion group. 14. In the Coarse Rate field, type the coarse update rate based on the number of axes in your application. For more information about coarse update rates, refer to Appendix A - Specifications and Performance. 15. Press Apply to implement entries. Press the Units tab to move to
5-12
that dialog.
Units Tab
Use this tab to determine the units you will use to define your motion axis. When RSLogix 5000 software is online and the controller transitions to hard run, or the servo loop is on (i.e., active), then all the attributes on this tab transition to a read only state. When any attribute transitions to a read only state, then any pending attribute changes are reverted. When multiple workstations connect to the same controller using RSLogix 5000 and invoke the Axis Wizard or Axis Properties dialog, the firmware allows only the first workstation to make any changes to axis attributes. The second workstation switches to a Read Only
5-13
mode, indicated in the title bar, so that you may view the changes from that workstation, but not edit them.
Position Units
User-defined engineering units (rather than feedback counts) used for labeling all motion-related values (e.g., position, velocity, etc.) These position units can be different for each axis. Note: Position Units should be chosen for maximum ease of use in your application. For example, linear axes might use position units of Inches, Meters, or mm whereas rotary axes might use units of Revs or Degrees.
5-14
Conversion Tab
Use this tab to view the Positioning Mode and configure the Feedback Resolution for an axis, of the tag types AXIS_SERVO, AXIS_SERVO_DRIVE and AXIS_VIRTUAL. When a parameter transitions to a read-only state, any pending changes to parameter values are lost, and the parameter reverts to the most recently saved parameter value. When multiple workstations connect to the same controller using RSLogix 5000 and invoke the Axis Wizard or Axis Properties dialog, the firmware allows only the first workstation to make any changes to axis attributes. The second workstation switches to a Read Only mode, indicated in the title bar, so that you may view the changes from that workstation, but not edit them.
Positioning Mode
This parameter is not editable for an axis of the data type AXIS_CONSUMED. Instead, this value is set in and taken from a
5-15
producing axis in a networked Logix processor. The values that can be passed are:
Linear - provides a maximum total linear travel of 1 billion feedback counts. With this mode, the unwind feature is disabled and you can limit the linear travel distance traveled by the axis by specifying the positive and negative travel limits for the axis. Rotary - enables the rotary unwind capability of the axis. This feature provides infinite position range by unwinding the axis position whenever the axis moves through a complete unwind distance. The number of encoder counts per unwind of the axis is specified by the Position Unwind parameter.
Conversion Constant
Type the number of feedback counts per position unit. This conversion or K constant allows axis position to be displayed, and motion to be programmed, in the position units set in the Units tab. The conversion constant is used to convert axis position units into feedback counts and vice versa. Note: For axes of the type AXIS_SERVO_DRIVE, the label will indicate the number of counts per motor revolution, as set in the Drive Resolution field of the Drive tab.
Position Unwind
This parameter is not editable for an axis of the data type AXIS_CONSUMED. Instead, this value is set in and taken from a producing axis in a networked Logix processor. For a Rotary axis, this value represents the distance (in feedback counts) used to perform automatic electronic unwind. Electronic unwind allows infinite position range for rotary axes by subtracting the unwind distance from both the actual and command position, every time the axis travels the unwind distance. Note: For axes of the type AXIS_SERVO_DRIVE:
when you save an edited Conversion Constant or a Drive Resolution value, a message box appears, asking you if you want the controller to automatically recalculate certain attribute settings. (Refer to Conversion Constant and Drive Resolution Attributes.) the label will indicate the number of counts per motor revolution, as set in the Drive Resolution field of the Drive tab.
5-16
Servo Tab
For an axis of the tag type AXIS_SERVO, configured for Servo operation in the General tab of this dialog box, use this tab to:
configure an external drive configure the drive fault input select up to two axis attributes whose status can be monitored
When a parameter transitions to a read-only state, any pending changes to parameter values are lost, and the parameter reverts to the most recently saved parameter value. When multiple workstations connect to the same controller using RSLogix 5000 and invoke the Axis Wizard or Axis Properties dialog, the firmware allows only the first workstation to make any changes to axis attributes. The second workstation switches to a Read Only mode, indicated in the title bar, so that you may view the changes from that workstation, but not edit them.
5-17
Loop Configuration Select the configuration of the servo loop. For this release, only Position Servo is available.
5-18
Homing Tab
Use this tab to configure the attributes related to homing an axis of the type AXIS_SERVO or AXIS_SERVO_DRIVE. When a parameter transitions to a read-only state, any pending changes to parameter values are lost, and the parameter reverts to the most recently saved parameter value. When multiple workstations connect to the same controller using RSLogix 5000 and invoke the Axis Wizard or Axis Properties dialog, the firmware allows only the first workstation to make any changes to axis attributes. The second workstation switches to a Read Only mode, indicated in the title bar, so that you may view the changes from that workstation, but not edit them.
5-19
Mode
Select the homing mode:
Active: In this mode, the desired homing sequence is selected by specifying whether a home limit switch and/or the encoder marker is used for this axis. Active homing sequences always use the trapezoidal velocity profile. Passive: In this mode, homing redefines the absolute position of the axis on the occurrence of a home switch or encoder marker event. Passive homing is most commonly used to calibrate uncontrolled axes, although it can also be used with controlled axes to create a custom homing sequence. Passive homing, for a given home sequence, works similar to the corresponding active homing sequence, except that no motion is commanded; the controller just waits for the switch and marker events to occur. Absolute: (AXIS_SERVO_DRIVE only) In this mode, the absolute homing process establishes the true absolute position of the axis by applying the configured Home Position to the reported position of the absolute feedback device. The only valid Home Sequence for an absolute Homing Mode is immediate.
Position
Type the desired absolute position, in position units, for the axis after the specified homing sequence has been completed. In most cases, this position will be set to zero, although any value within the software travel limits can be used. After the homing sequence is complete, the axis is left in this position. If the Positioning Mode (set in the Conversion tab) of the axis is Linear, then the home position should be within the travel limits, if enabled. If the Positioning Mode is Rotary, then the home position should be less than the unwind distance in position units.
Offset
Type the desired offset (if any) in position units the axis is to move, upon completion of the homing sequence, to reach the home position. In most cases, this value will be zero.
Sequence
Select the event that will cause the Home Position to be set:
5-20
Description: Sets the Home Position to the present actual position, without motion. Sets the Home Position when axis motion encounters a home limit switch. Sets the Home Position when axis encounters an encoder marker. Sets the Home Position when axis first encounters a home limit switch, then encounters an encoder marker.
Note: See the section Homing Configurations, below, for a detailed description of each combination of homing mode, sequence and direction.
Limit Switch
If a limit switch is used, indicate the normal state of that switch (i.e., before being engaged by the axis during the homing sequence):
Normally Open Normally Closed
Direction
For active homing sequences, except for the Immediate Sequence type, select the desired homing direction: Direction Forward Uni-directional Description The axis jogs in the positive axial direction until a homing event (switch or marker) is encountered, then continues in the same direction until axis motion stops (after decelerating or moving the Offset distance).
5-21
Description The axis jogs in the positive axial direction until a homing event (switch or marker) is encountered, then reverses direction until motion stops (after decelerating or moving the Offset distance). The axis jogs in the negative axial direction until a homing event (switch or marker) is encountered, then continues in the same direction until axis motion stops (after decelerating or moving the Offset distance). The axis jogs in the negative axial direction until a homing event (switch or marker) is encountered, then reverses direction until motion stops (after decelerating or moving the Offset distance).
Reverse Uni-directional
Reverse Bi-directional
Speed
Type the speed of the jog profile used in the first leg of an active homing sequence. The homing speed specified should be less than the maximum speed and greater than zero.
Return Speed
The speed of the jog profile used in the return leg(s) of an active homing sequence. The home return speed specified should be less than the maximum speed and greater than zero.
5-22
Homing Configurations
The following examples of Active and Passive homing assume that the initial motion, if any, is in a positive axial direction. Click on an individual homing configuration for more information.
Active Homing Configurations Active Immediate Home Active Bi-directional Home with Switch Active Bi-directional Home with Marker Active Bi-directional Home with Switch then Marker Active Uni-directional Home with Switch Active Uni-directional Home with Marker Active Uni-directional Home with Switch then Marker Passive Homing Configurations Passive Immediate Home Passive Home with Switch Passive Home with Marker Passive Home with Switch then Marker
Homing Tab
Use this tab to configure the attributes related to homing the axis. When RSLogix 5000 software is online and the controller transitions to hard run or the servo loop is on (active), then all the attributes on this tab transition to a read only state. When any attribute transitions to a read only state, then any pending attribute changes are reverted.
Home Position
Specify the desired absolute position for the axis after the specified homing sequence has been completed. In most cases, this position is set to zero, although any value within the software travel limits can be used. After the homing sequence is complete, the axis is left at this position. If the positioning mode for the axis is Linear, then the home position should be within the travel limits, if enabled. If the positioning mode is Rotary, then the home position should be less than the unwind distance in position units.
5-23
Mode
Select the homing mode. Choose from:
Active - In this mode, the desired homing sequence is selected by specifying whether a home limit switch and/or the encoder marker is used for this axis. Active homing sequences always use the trapezoidal velocity profile. Passive - In this mode, homing redefines the absolute position of the axis on the next occurrence of the encoder marker. Passive homing is most commonly used to calibrate a Position Only axis type to its encoder marker, although it can be used on Servo axis types as well. Passive homing is identical to active homing to an encoder marker sequence type except that no motion is commanded. That is, the controller simply waits for the marker to occur.
Sequence
When the homing mode is Active, select the homing sequence type to specify whether a home limit switch and/or the encoder marker is to be used. Active homing sequences, with the exception of the Immediate type, use trapezoidal jog velocity profiles to move the axis, while monitoring for the homing event to occur. Choose from:
Immediate - When this sequence is performed, the controller immediately assigns the home position to the current axis position. This homing sequence produces no axis motion. Switch - This sequence is useful for multi-turn rotary and linear applications, where there are multiple encoder markers over full axis travel, or when an encoder marker is not available. When using this sequence, the axis moves in the specified homing direction, at the specified homing speed, until the home limit switch is detected. The axis then decelerates to a stop and moves in the opposite direction at the specified home return speed until the home limit switch is cleared. The home position is assigned to the axis position at the moment the limit switch is cleared, and the axis decelerates to a stop. The axis then moves back to the home position at the specified home return speed. The motions for this sequence can be shown as follows:
The accuracy of this homing sequence depends on the time uncertainty in detecting the home limit switch transitions. The position uncertainty of the home position is the product of the
5-24
maximum time for the control to detect the home limit switch and the specified home return speed.
Marker - This sequence is useful for single-turn rotary and linear encoder applications since these have only one encoder marker for full axis travel. Using this sequence, the axis moves in the specified home direction at the specified homing speed until the marker is detected. The home position is assigned to the corresponding axis position.
The accuracy of this homing sequence depends on the time delay in detecting the marker transition. The position uncertainty of the home position is the product of the maximum delay for the control to detect the marker pulse and the specified home speed. The axis behavior for this sequence can be shown as follows:
Switch-Marker - This is the most precise homing sequence. Using this sequence, the axis moves in the specified home direction, at the specified home speed, until the home limit switch is detected. The axis then decelerates to a stop and moves in the opposite direction at the specified home return speed until the home limit switch is cleared. After clearing the home limit switch, the axis continues in the same direction at the home return speed until the first encoder marker is detected. The home position is assigned to the axis position at the moment the marker is detected, and the axis then decelerates to a stop. The axis then moves back to the home position at the home return speed. The axis behavior for this sequence can be shown as follows:
Homing Direction
Select the homing direction: either Positive or Negative. This determines the initial direction of the homing sequence initiated by a Motion Axis Home (MAH) instruction. Positive indicates a forward direction; Negative indicates a reverse direction.
Homing Speed
The speed of the jog profile used in the first leg of an active homing sequence. The homing speed specified should be less than the maximum speed and greater than zero.
5-25
Select Active
Redefine the current absolute position on the next occurrence of the encoder marker Sequence To Allow the controller to immediately assign the home position to the current axis position Move the axis until it detects the home limit switch
Move the axis until it detects the home limit switch Use the most precise active homing sequence.
Passive
Select the type of active homing sequence to use. Select Immediate home
Move the axis until it detects the encoder marker Limit switch To set the home switch To open To closed Homing direction To use A positive direction A negative direction Homing speed Home return speed
Home to marker only Select Normally open Normally closed Select Positive Negative
Type the initial speed of the jog profile used in an active homing sequence. Type the return speed of the jog profile used in an active homing sequence.
5-26
17. Press Apply to implement entries. Press the Overtravel tab to access its dialog.
Hookup Tab
Use this tab to configure and initiate axis hookup and marker test sequences for an axis of the type AXIS_SERVO. When a parameter transitions to a read-only state, any pending changes to parameter values are lost, and the parameter reverts to the most recently saved parameter value. When multiple workstations connect to the same controller using RSLogix 5000 and invoke the Axis Wizard or Axis Properties dialog, the firmware allows only the first workstation to make any changes to axis attributes. The second workstation switches to a Read Only mode, indicated in the title bar, so that you may view the changes from that workstation, but not edit them.
Test Increment
Specifies the amount of distance traversed by the axis when executing the Output & Feedback test. The default value is set to approximately a quarter of a revolution of the motor in position units.
5-27
Feedback Polarity
The polarity of the encoder feedback, this field is automatically set by executing either the Feedback Test or the Output & Feedback Test:
Positive Negative
Note: When properly configured, this setting insures that axis Actual Position value increases when the axis is moved in the user defined positive direction. This bit can be configured automatically using the MRHD and MAHD motion instructions.
WARNING
!
Output Polarity
Positive Negative
Modifying automatically input polarity values by running the Feedback or Output & Feedback Tests can cause a runaway condition.
The polarity of the servo output to the drive, this field is automatically set by executing the Output & Feedback Test:
Note: When properly configured, this setting and the Feedback Polarity setting insure that, when the axis servo loop is closed, it is closed as a negative feedback system and not an unstable positive feedback system. This bit can be configured automatically using the MRHD and MAHD motion instructions.
WARNING
Modifying automatically input polarity values by running the Feedback or Output & Feedback Tests can cause a runaway condition.
5-28
Test Marker
Runs the Marker test, which ensures that the encoder A, B, and Z channels are connected correctly and phased properly for marker detection. When the test is initiated, you must manually move the axis one revolution for the system to detect the marker. If the marker is not detected, check the encoder wiring and try again.
Test Feedback
Runs the Feedback Test, which checks and, if necessary, reconfigures the Feedback Polarity setting. When the test is initiated, you must manually move the axis one revolution for the system to detect the marker. If the marker is not detected, check the encoder wiring and try again.
5-29
Tune Tab
Use this tab to configure and initiate axis tuning sequence for the axis. When RSLogix 5000 software is online and the controller transitions to hard run, or the servo loop is on (active), then all the attributes on this tab transition to a read only state. When any attribute transitions to a read only state, then any pending attribute changes are reverted.
Tuning Speed
Determines the maximum speed for the tune process. This value should be set to the desired maximum operating speed of the motor (in engineering units) prior to running the tune test.
Tuning Direction
The direction of the tuning motion profile. Negative indicates the reverse direction; positive indicates the forward direction.
5-30
Damping Factor
Specifies the dynamic response of the servo axis. The default is set to 0.8. When gains are tuned using a small damping factor, a step response test performed on the axis may generate uncontrolled oscillation. The gains generated using a larger damping factor would produce a system step response that has no overshoot and is stable, but may be sluggish in response to changes.
Tune
Specifies the gains to be determined by the tune process.
Start Tuning
Click on this button to begin the tuning test. If the tuning process completes successfully, then it determines the selected gains and all the attributes on the Dynamics tab. WARNING
This test may cause axis motion with the controller in program mode.
!
Tune Bandwidth Dialog
Use this dialog to modify the bandwidth determined by the tune process.
Bandwidth
The tune bandwidth is determined by the tune process. The value for the Position Servo Bandwidth represents the unity gain. The unity gain bandwidth is the frequency beyond which the position servo is unable to provide any significant position disturbance correction. Computing gains based on this maximum results in dynamic response in keeping with the current value of the Damping Factor. IMPORTANT Exceeding this value could result in an unstable system.
5-31
Type the value to calculate the maximum position servo bandwidth. Select the values you want to calculate during tuning.
5-32
19. Press Apply to implement entries. Select the Gains tab to enter values for gains.
Dynamics Tab
Use this tab to view or edit the dynamics related parameters for an axis of the type AXIS_SERVO or AXIS_SERVO_DRIVE configured for
5-33
IMPORTANT
edit on this tab by typing your parameter changes and then clicking on OK or Apply to save your edits edit in the Manual Tune dialog: click on the Manual Tune button to open the Manual Tune dialog to this tab and use the spin controls to edit parameter settings. Your changes are saved the moment a spin control changes any parameter value.
Note: The parameters on this tab become read-only and cannot be edited when the controller is online if the controller is set to Hard Run mode, or if a Feedback On condition exists. When RSLogix 5000 is offline, the following parameters can be edited and the program saved to disk using either the Save command or by clicking on the Apply button. You must re-download the edited program to the controller before it can be run.
Maximum Velocity
The steady-state speed of the axis, it is initially set to Tuning Speed by the tuning process. This value is typically set to about 90% of the maximum speed rating of the motor. This provides sufficient head-room for the axis to operate at all times within the speed limitations of the motor. Any change in value, caused by manually changing the spin control, is instantaneously sent to the controller.
Maximum Acceleration
The maximum acceleration rate of the axis, in Position Units/second, it is initially set to about 85% of the measured tuning acceleration rate by the tuning process. If set manually, this value should typically be set to about 85% of the maximum acceleration rate of the axis. This provides sufficient head-room for the axis to operate at all times within the acceleration limits of the drive and motor. Any change in value, caused by manually changing the spin control, is instantaneously sent to the controller.
5-34
Maximum Deceleration
The maximum deceleration rate of the axis, in Position Units/second, it is initially set to about 85% of the measured tuning deceleration rate by the tuning process. If set manually, this value should typically be set to about 85% of the maximum deceleration rate of the axis. This provides sufficient head-room for the axis to operate at all times within the deceleration limits of the drive and motor. Any change in value, caused by manually changing the spin control, is instantaneously sent to the controller.
5-35
Manual Tune...
Click on this button to open the Dynamics tab of the Manual Tune dialog for online editing of the Maximum Velocity, Maximum Acceleration, and Maximum Deceleration parameters. Note: The Manual Tune button is disabled when RSLogix 5000 is in Wizard mode, and when offline edits to the above parameters have not yet been saved or applied.
Gains Tab
for an axis of the type AXIS_SERVO, which has been configured for Servo operations (set in the General tab of this dialog box), with Position Loop Configuration (set in the Servo tab of this dialog box).
5-36
The drive module uses a nested digital servo control loop consisting of a position loop with proportional, integral and feed-forward gains around an optional digitally synthesized inner velocity loop, as described in the following diagram: IMPORTANT The parameters on this tab can be edited in either of two ways:
edit on this tab by typing your parameter changes and then clicking on OK or Apply to save your edits edit in the Manual Tune dialog: click on the Manual Tune button to open the Manual Tune dialog to this tab and use the spin controls to edit parameter settings. Your changes are saved the moment a spin control changes any parameter value.
Note: The parameters on this tab become read-only and cannot be edited when the controller is online if the controller is set to Hard Run mode, or if a Feedback On condition exists. When RSLogix 5000 is offline, the following parameters can be edited and the program saved to disk using either the Save command or by clicking on the Apply button. You must re-download the edited program to the controller before it can be run.
Velocity Feedforward
Velocity Feedforward Gain scales the current Command Velocity by the Velocity Feedforward Gain and adds it as an offset to the Velocity Command. Hence, the Velocity Feedforward Gain allows the following error of the servo system to be reduced to nearly zero when running at a constant speed. This is important in applications such as electronic gearing, position camming, and synchronization applications, where it is necessary that the actual axis position not significantly lag behind the commanded position at any time. The optimal value for Velocity Feedforward Gain is 100%, theoretically. In reality, however, the value may need to be tweaked to accommodate velocity loops with non-infinite loop gain and other application considerations.
Acceleration Feedforward
Acceleration Feedforward Gain scales the current Command Acceleration by the Acceleration Feedforward Gain and adds it as an offset to the Servo Output generated by the servo loop. With this done, the servo loops do not need to generate much of a contribution to the Servo Output, hence the Position and/or Velocity Error values are significantly reduced. Hence, when used in conjunction with the
Publication 1756-UM006A-EN-P - April 2001
5-37
Velocity Feedforward Gain, the Acceleration Feedforward Gain allows the following error of the servo system during the acceleration and deceleration phases of motion to be reduced to nearly zero. This is important in applications such as electronic gearing, position camming, and synchronization applications, where it is necessary that the actual axis position not significantly lag behind the commanded position at any time. The optimal value for Acceleration Feedforward is 100%, theoretically. In reality, however, the value may need to be tweaked to accommodate velocity loops with non-infinite loop gain and other application considerations. Note: Acceleration Feedforward Gain is not applicable for applications employing velocity loop servo drives. Such systems would require the acceleration feedforward functionality to be located in the drive itself.
5-38
5-39
Integrator Hold
If the Integrator Hold parameter is set to:
Enabled, the servo loop temporarily disables any enabled position or velocity integrators while the command position is changing. This feature is used by point-to-point moves to minimize the integrator wind-up during motion. Disabled, all active position or velocity integrators are always enabled.
Manual Tune...
Click on this button to access the Gains tab of the Manual Tune dialog for online editing. Note: The Manual Tune button is disabled when RSLogix 5000 is in Wizard mode, and when you have not yet saved or applied your offline edits to the above parameters.
Publication 1756-UM006A-EN-P - April 2001
5-40
Output Tab
for an axis of the type AXIS_SERVO configured as a Servo drive in the General tab of this dialog.
5-41
IMPORTANT
edit on this tab by typing your parameter changes and then clicking on OK or Apply to save your edits edit in the Manual Tune dialog: click on the Manual Tune button to open the Manual Tune dialog to this tab and use the spin controls to edit parameter settings. Your changes are saved the moment a spin control changes any parameter value.
Note: The parameters on this tab become read-only and cannot be edited when the controller is online if the controller is set to Hard Run mode, or if a Feedback On condition exists. When RSLogix 5000 is offline, the following parameters can be edited and the program saved to disk using either the Save command or by clicking on the Apply button. You must re-download the edited program to the controller before it can be run.
Velocity Scaling
The Velocity Scaling attribute is used to convert the output of the servo loop into equivalent voltage to an external velocity servo drive. This has the effect of normalizing the units of the servo loop gain parameters so that their values are not affected by variations in feedback resolution, drive scaling, or mechanical gear ratios. The Velocity Scaling value is typically established by servos automatic tuning procedure but these values can be calculated, if necessary, using the following guidelines. If the axis is configured for a velocity external servo drive (in the Servo tab of this dialog), the software velocity loop in the servo module is disabled. In this case the Velocity Scaling value can be calculated by the following formula: Velocity Scaling = 100% / (Speed @ 100%) For example, if this axis is using position units of motor revolutions (revs), and the servo drive is scaled such that with an input of 100% (e.g. 10 Volts) the motor goes 5,000 RPM (or 83.3 RPS), the Velocity Scaling attribute value would be calculated as: Velocity Scaling = 100% / (83.3 RPS) = 1.2% / Revs Per Second
5-42
Torque Scaling
The Torque Scaling attribute is used to convert the acceleration of the servo loop into equivalent % rated torque to the motor. This has the effect of normalizing the units of the servo loops gain parameters so that their values are not affected by variations in feedback resolution, drive scaling, motor and load inertia, and mechanical gear ratios. The Torque Scaling value is typically established by the controllers automatic tuning procedure but the value can be manually calculated, if necessary, using the following guidelines: Torque Scaling = 100% Rated Torque / (Acceleration @ 100% Rated Torque) For example, if this axis is using position units of motor revolutions (revs), with 100% rated torque applied to the motor, if the motor accelerates at a rate of 3000 Revs/Sec2, the Torque Scaling attribute value would be calculated as shown below: Torque Scaling = 100% Rated / (3000 RPS2) = 0.0333% Rated/ Revs Per Second2 Note: If the Torque Scaling value does not reflect the true torque to acceleration characteristic of the system, the gains will also not reflect the true performance of the system.
Filter Bandwidth
With Enable Filter Bandwidth selected, this value sets the bandwidth, in Hertz, of the servos low-pass digital output filter. Use this output filter to filter out high frequency variation of the servo module output to the drive. All output from the servo module greater than the Filter Bandwidth setting will be filtered-out, and not sent to the drive. If the Filter Bandwidth value is set to zero, the low-pass output filter is disabled. The lower the Filter Bandwidth value, the greater the attenuation of these high frequency components of the output signal. Because the low-pass filter adds lag to the servo loop, which pushes the system towards instability, decreasing the Filter Bandwidth value
Publication 1756-UM006A-EN-P - April 2001
5-43
usually requires lowering the Position or Velocity Proportional Gain settings to maintain stability. The output filter is particularly useful in high inertia applications where resonance behavior can severely restrict the maximum bandwidth capability of the servo loop.
Manual Tune...
Click on this button to access the Gains tab of the Manual Tune dialog for online editing. Note: The Manual Tune button is disabled when RSLogix 5000 is in Wizard mode, and when you have not yet saved or applied your offline edits to the above parameters.
Limits Tab
5-44
for an axis of the type AXIS_SERVO configured as a Servo drive in the General tab of this dialog.
IMPORTANT
edit on this tab by typing your parameter changes and then clicking on OK or Apply to save your edits edit in the Manual Tune dialog: click on the Manual Tune button to open the Manual Tune dialog to this tab and use the spin controls to edit parameter settings. Your changes are saved the moment a spin control changes any parameter value.
Note: The parameters on this tab become read-only and cannot be edited when the controller is online if the controller is set to Hard Run mode, or if a Feedback On condition exists. When RSLogix 5000 is offline, the following parameters can be edited and the program saved to disk using either the Save command or by clicking on the Apply button. You must re-download the edited program to the controller before it can be run.
Maximum Positive
Type the maximum positive position to be used for software overtravel checking, in position units. Note: The Maximum Positive limit must always be greater than the Maximum Negative limit.
5-45
Maximum Negative
Type the maximum negative position to be used for software overtravel checking, in position units. Note: The Maximum Negative limit must always be less than the Maximum Positive limit.
Output Limit
Provides a method of limiting the maximum servo output voltage of a physical axis to a specified level. The servo output for the axis as a function of position servo error, both with and without servo output limiting, is shown below. The servo output limit may be used as a software current or torque limit if you are using a servo drive in torque loop mode. The percentage of the drives maximum current that the servo controller will ever command is equal to the specified servo output limit. For
Publication 1756-UM006A-EN-P - April 2001
5-46
example, if the drive is capable of 30 Amps of current for a 10 Volt input, setting the servo output limit to 5V limits the maximum drive current to 15 Amps. The servo output limit may also be used if the drive cannot accept the full 10 Volt range of the servo output. In this case, the servo output limit value effectively limits the maximum command sent to the amplifier. For example, if the drive can only accept command signals up to 7.5 Volts, set the servo output limit value to 7.5 volts.
Manual Tune...
Click on this button to open the Dynamics tab of the Manual Tune dialog for online editing of the Maximum Velocity, Maximum Acceleration, and Maximum Deceleration parameters. Note: The Manual Tune button is disabled when RSLogix 5000 is in Wizard mode, and when offline edits to the above parameters have not yet been saved or applied.
Offset Tab
5-47
Use this tab to make offline adjustments to the following Servo Output values:
Friction Compensation Velocity Offset Torque Offset Output Offset
for an axis of the type AXIS_SERVO configured as a Servo drive in the General tab of this dialog.
IMPORTANT
edit on this tab by typing your parameter changes and then clicking on OK or Apply to save your edits edit in the Manual Tune dialog: click on the Manual Tune button to open the Manual Tune dialog to this tab and use the spin controls to edit parameter settings. Your changes are saved the moment a spin control changes any parameter value.
Note: The parameters on this tab become read-only and cannot be edited when the controller is online if the controller is set to Hard Run mode, or if a Feedback On condition exists. When RSLogix 5000 is offline, the following parameters can be edited and the program saved to disk using either the Save command or by clicking on the Apply button. You must re-download the edited program to the controller before it can be run.
Friction Compensation
The percentage of output level added to a positive current Servo Output value, or subtracted from a negative current Servo Output value, for the purpose of moving an axis that is stuck in place due to static friction. It is not unusual for an axis to have enough static friction called sticktion that, even with a significant position error, the axis refuses to budge. Friction Compensation is used to break
5-48
sticktion in the presence of a non-zero position error. This is done by adding, or subtracting, a percentage output level), called Friction Compensation to the Servo Output value. The Friction Compensation value should be just less than the value that would break the sticktion A larger value will cause the axis to dither, i.e. move rapidly back and forth about the commanded position.
Velocity Offset
Provides a dynamic velocity correction to the output of the position servo loop, in position units per second. Because the position servo loop output value is updated synchronously every Coarse Update Period, the Velocity Offset can be tied into custom outer control loop algorithms using Function Block programming.
Torque Offset
Provides a dynamic torque command correction to the output of the velocity servo loop, as a percentage of velocity servo loop output. Because velocity servo loop output is updated synchronously every Coarse Update Period, the Torque Offset can be tied into custom outer control loop algorithms using Function Block programming.
Output Offset
Corrects the problem of axis drift, by adding a fixed voltage value (not to exceed 10 Volts) to the Servo Output value. Input a value to achieve near zero drive velocity when the uncompensated Servo Output value is zero. When interfacing an external Servo Drive especially for velocity servo drives, it is necessary to compensate for the effect of drive offset. Cumulative offsets of the servo modules DAC output and the Servo Drive Input result in a situation where a zero commanded Servo Output value causes the axis to drift. If the drift is excessive, it can play havoc on the Hookup Diagnostic and Tuning procedures, as well as result in a steady-state non-zero position error when the servo loop is closed.
5-49
Manual Tune...
Click on this button to open the Dynamics tab of the Manual Tune dialog for online editing of the Maximum Velocity, Maximum Acceleration, and Maximum Deceleration parameters. Note: The Manual Tune button is disabled when RSLogix 5000 is in Wizard mode, and when offline edits to the above parameters have not yet been saved or applied.
Use this tab to specify the actions that will be taken in response to the following faults:
Drive Fault Feedback Noise Fault Feedback Loss Fault Position Error Fault Soft Overtravel Fault
5-50
When a parameter transitions to a read-only state, any pending changes to parameter values are lost, and the parameter reverts to the most recently saved parameter value. When multiple workstations connect to the same controller using RSLogix 5000 and invoke the Axis Wizard or Axis Properties dialog, the firmware allows only the first workstation to make any changes to axis attributes. The second workstation switches to a Read Only mode, indicated in the title bar, so that you may view the changes from that workstation, but not edit them. Select one of the following fault actions for each fault type:
Shutdown - If a fault action is set to Shutdown, then when the associated fault occurs, axis servo action is immediately disabled, the servo amplifier output is zeroed, and the appropriate drive enable output is deactivated. Furthermore, this fault action opens the OK contact associated with the servo module which can be used to open the E-stop string to the drive power supply. Shutdown is the most severe action to a fault and it is usually reserved for faults that could endanger the machine or the operator if power is not removed as quickly and completely as possible. Disable Drive - If a fault action is set to Disable Drive, then when the associated fault occurs, axis servo action is immediately disabled, the servo amplifier output is zeroed, and the appropriate drive enable output is deactivated. Stop Motion - If a fault action is set to Stop Motion, then when the associated fault occurs, the axis immediately starts decelerating the axis command position to a stop at the configured Maximum Deceleration Rate without disabling servo action or the servo modules Drive Enable output. This is the gentlest stopping mechanism in response to a fault. It is usually used for less severe faults. After the stop command fault action has stopped the axis, no further motion can be generated until the fault is first cleared. Status Only - If a fault action is set to Status Only, then when the associated fault occurs, no action is taken. The application program must handle any motion faults. In general, this setting should only be used in applications where the standard fault actions are not appropriate.
5-51
WARNING
!
Drive Fault Feedback Noise
Selecting the wrong fault action for your application can cause a dangerous condition. Keep clear of moving machinery.
Specifies the fault action to be taken when a drive fault condition is detected, for an axis with the Drive Fault Input enabled (in the Servo tab of this dialog) that is configured as Servo (in the General tab of this dialog). The available actions for this fault are Shutdown and Disable Drive.
Specifies the fault action to be taken when excessive feedback noise is detected. The available actions for this fault are Shutdown, Disable Drive, Stop Motion and Status Only.
Feedback Loss
Specifies the fault action to be taken when feedback loss condition is detected. The available actions for this fault are Shutdown, Disable Drive, Stop Motion and Status Only.
Position Error
Specifies the fault action to be taken when position error exceeds the position tolerance set for the axis, for an axis configured as Servo (in the General tab of this dialog). The available actions for this fault are Shutdown, Disable Drive, Stop Motion and Status Only.
Soft Overtravel
Specifies the fault action to be taken when a software overtravel error occurs, for an axis with Soft Travel Limits enabled and configured (in the Limits tab of this dialog) that is configured as Servo (in the General tab of this dialog). The available actions for this fault are Shutdown, Disable Drive, Stop Motion and Status Only.
5-52
Tag Tab
Use this tab to modify the name and description of the axis. When you are online, all of the parameters on this tab transition to a read-only state, and cannot be modified. If you go online before you save your changes, all pending changes revert to their previously-saved state.
Name
Displays the name of the current tag. You can rename this tag, if you wish.
Description
Displays the description of the current tag, if any is available. You can edit this description, if you wish.
Tag Type
Indicates the type of the current tag. This type may be:
5-53
Data Type
Displays the data type associated with the current tag.
Scope
Displays the scope of the current tag. The scope is either controller scope, or program scope, based on one of the existing programs in the controller.
Style
Displays the default style in which to display the value of the tag. Note that style is only applicable to an atomic tag; a structure tag does not have a display style.
Base Tag
If this tag is an alias, this field displays the name of the underlying tag on which this alias was based. The base tag actually defines the memory where the data element is stored.
Manual Tune
Click on this button to open the Dynamics tab of the Manual Tune dialog for online editing of the Maximum Velocity, Maximum Acceleration, and Maximum Deceleration parameters. Note: The Manual Tune button is disabled when RSLogix 5000 is in Wizard mode, and when offline edits to the above parameters have not yet been saved or applied.
5-54
You can assign additional axes by repeating the preceding sections. To name and assign another axis, refer to the Naming an Axis section. You can assign up to 16 1756-M02AE modules to each Logix5550 controller. Each module uses a maximum of two axes.
To write a motion application program, you can insert motion instructions directly into the ladder diagram application program. The motion instruction set consists of five groups of motion instructions:
Motion state instructions Motion move instructions Motion group instructions Motion event instructions Motion configuration instructions
For more information about these instructions, refer to the Logix5550 Controller Motion Instruction Set Reference Manual publication 1756-6.4.3.
5-55
The following figure shows several rungs of a motion control application program.
Rung 0: Enables the Feed and Cut axes when you press the servo_on button. Rung 1: Jogs the Feed axis in the positive direction when you press the jog_plus button.
Rung 2: Jogs the Feed axis in the reverse direction when you press the jog_minus button.
Rung 3: Stops the Feed axis when you release with the jog_plus button or the jog_minus button.
For more information about instructions and creating application programs, refer to the Logix5550 Controller Instruction Set Reference Manual, publication 1756-RM003 and the Logix5550 Motion Instruction Reference Set Manual, publication 1756-RM007.
5-56
Chapter
To configure a 1394C-SJT05-D, 1394C-SJT10-D or 1394C-SJT22-D drive module: 1. In the Controller Organizer, in the I/O Configuration branch, select a 1756-M08SE motion module. 2. In the File menu, select New Component then Module.
3. In the Select Module Type dialog, select the desired drive module: 1394C-SJT05-D, 1394C-SJT10-D or 1394C-SJT22-D
6-2
4. Press the OK button to close the Select Module Type dialog. The Module Properties wizard opens. 5. Fill in the required parameters for each page, then click the Next> button.
6. When you complete the last page, click the Finish> button. A new drive module displays beneath the selected 1756-M08SE motion module.
6-3
The 1756-M08SE 8 Axis Servo Link motion module can be connected to any of three drives:
1394C-SJT05-D 5 KW digital servo drive 1394C-SJT10-D 10 KW digital servo drive 1394C-SJT22-D 22 KW digital servo drive.
Each drive can be associated with up to 4 axes of the AXIS_SERVO_DRIVE tag type. The 1756-M08SE 8 Axis Servo Link module can support up to 8 axes (using varying combinations of from 2 to 8 drives). The module for a 1394C-SJT05/10/22-D drive has 5 tabs:
General tab Connection tab Axes Association Power tab Module Info tab.
6-4
General Tab
Use this tab to enter the module properties for a 1394C-SJT05-D 5 KW, 1394C-SJT10-D 10 KW or 1394C-SJT22-D 22 KW digital servo drive module.
IMPORTANT
To create any one of the 1394C-SJT modules, the parent module must be a 1756-M08SE 8 Axis Servo Link module.
6-5
Type
Displays the module type of the module being created: 1394C-SJT05-D 5 KW, 1394C-SJT10-D 10 KW, or 1394C-SJT22-D 22 KW digital servo drive module (read only).
Vendor
Displays the vendor of the module being created (read only).
Name
Enter the name of the module. The name must be IEC 1131-3 compliant. If you attempt to enter an invalid character or exceed the maximum length, the software beeps and ignores the character.
Description
Enter a description for the module here, up to 128 characters. You can use any printable character in this field. If you exceed the maximum length, the software beeps to warn you, and ignores any extra characters.
Base Node
Type or select the Base Node number of the drive module. This node number is determined by multiplying the node number from the modules rotary switch (1 to 9) by a factor of ten. Thus, valid Base Node values are 10, 20, 30, 40, 50, 60, 70, 80 or 90.
Revision
Select the minor revision number of your module. The revision is divided into the major revision and minor revision. The major revision displayed statically is chosen on the Select Module Type dialog. The major revision is used to indicate the revision of the interface to the module. The minor revision is used to indicate the firmware revision.
6-6
Electronic Keying
Select one of these keying options for your module during initial module configuration:
Exact Match - all of the parameters described below must match or the inserted module will reject the connection. Compatible Module
the Module Types, Catalog Number, and Major Revision must match the Minor Revision of the physical module must be equal to or greater than the one specified in the software or the inserted module will reject the connection
Disable Keying Logix5550 will not employ keying at all.
WARNING
!
Vendor
Changing the RPI and Electronic Keying selections may cause the connection to the module to be broken and may result in a loss of data. Be extremely cautious when using this option; if used incorrectly, this option can lead to personal injury or death, property damage or economic loss.
When you insert a module into a slot in a ControlLogix chassis, RSLogix 5000 compares the following information for the inserted module to that of the configured slot:
This feature prevents the inadvertent insertion of the wrong module in the wrong slot.
6-7
Connection Tab
Use this tab to define controller to drive module behavior.
TIP
The data on this tab comes directly from the controller. This tab displays information about the condition of the connection between the module and the controller.
6-8
WARNING
Inhibiting the module causes the connection to the module to be broken and may result in loss of data.
!
When you check this box and go online, the icon representing this module in the controller organizer displays the Attention Icon. If you are: offline online Check this checkbox to: put a place holder for a module you are configuring stop communication to a module. If you inhibit the module while you are online and connected to the module, the connection to the module is nicely closed. The module's outputs will go to the last configured Program mode state.If you inhibit the module while online but a connection to the module has not been established (perhaps due to an error condition or fault), the module is inhibited. The module status information will change to indicate that the module is 'Inhibited' and not 'Faulted'.If you uninhibit a module (clear the checkbox) while online, and no fault condition occurs, a connection is made to the module and the module is dynamically reconfigured (if you are the owner controller) with the configuration you have created for that module. If you are a listener (have chosen a Listen Only Communications Format), you can not re-configure the module. If you uninhibit a module while online and a fault condition occurs, a connection is not made to the module.
6-9
Module Fault
Displays the fault code returned from the controller (related to the module you are configuring) and the text detailing the Module Fault that has occurred. The following are common categories for errors:
Connection Request Error - The controller is attempting to make a connection to the module and has received an error. The connection was not made. Service Request Error - The controller is attempting to request a service from the module and has received an error. The service was not performed successfully. Module Configuration Invalid - The configuration in the module is invalid. (This error is commonly caused by the Electronic Key Passed fault). Electronic Keying Mismatch - Electronic Keying is enabled and some part of the keying information differs between the.
6-10
Node X0
Represents Axis 0 on the 1756-M08SE SERCOS module. The node number is the sum of the Base Node set in the General page of this dialog box (X0) and the axis number (1). This field allows you to associate an AXIS_SERVO_DRIVE tag with Axis 0. This field transitions to a read only state while online. Click on the Ellipses () button to the right of this field to open the Axis properties dialog box for the associated axis.
Node X1
Represents Axis 1 on the 1756-M08SE SERCOS module. The node number is the sum of the Base Node set in the General page of this dialog box (X0) and the axis number (1). This field allows you to associate an AXIS_SERVO_DRIVE tag with Axis 1. This field transitions to a read only state while online. Click on the Ellipses () button to the right of this field to open the Axis properties dialog box for the associated axis.
Node X2
Represents Axis 2 on the 1756-M08SE SERCOS module The node number is the sum of the Base Node set in the General page of this dialog box (X0) and the axis number (2). This field allows you to associate an AXIS_SERVO_DRIVE tag with Axis 2. This field transitions
Publication 1756-UM006A-EN-P - April 2001
6-11
to a read only state while online. Click on the Ellipses () button to the right of this field to open the Axis properties dialog box for the associated axis.
Node X3
Represents Axis 3 on the 1756-M08SE SERCOS module The node number is the sum of the Base Node set in the General page of this dialog box (X0) and the axis number (3). This field allows you to associate an AXIS_SERVO_DRIVE tag with Axis 3. This field transitions to a read only state while online. Click on the Ellipses () button to the right of this field to open the Axis properties dialog box for the associated axis.
Power Tab
Use this tab to select a bus regulator for your 1394C-SJT05-D, 1394C-SJT10-D or 1394C-SJT22-D drive module.
Bus Regulator ID
Select the catalog number that describes bus regulator device used by the 1394C-SJT05-D, 1394C-SJT10-D or 1394C-SJT22-D drive module.
6-12
Depending upon the Drive Module you have selected, one or more of the following are available: Bus Regulator ID 1394-SR10A 1394-SR9A 1394-SR9AF 1394-SR36A 1394-SR36AF <none> Internal Custom Description 1400 Watt Resistor, for 5 and 10 kW modules 300 Watt External Shunt, No Fan, for 22 kW modules 900 Watt External Shunt, No Fan, for 22 kW modules 1800 Watt External Shunt, No Fan, for 22 kW modules 3600 Watt External Shunt, No Fan, for 22 kW modules No bus regulator The bus regulator is internal to the drive and need not be specified A bus regulator not listed above
6-13
TIP
The data on this tab comes directly from the module. If you selected a Listen-Only communication format when you created the module, this tab is not available.
Identification
Displays the modules:
Vendor Product Type Product Code Revision Serial Number
Product Name
The name displayed in the Product Name field is read from the module. This name displays the series of the module.
6-14
(16#xxxx) unknown
If you selected the wrong module from the module selection tab, this field displays a hexadecimal value. A textual description of this state is only given when the module identity you provide is a match with the actual module.
Configured
Displays a yes or no value indicating whether the module has been configured by an owner controller connected to it. Once a module has been configured, it stays configured until the module is reset or power is cycled, even if the owner drops connection to the module. This information does not apply to adapters.
Owned
Displays a yes or no value indicating whether an owner controller is currently connected to the module. This information does not apply to adapters.
6-15
Module Identity
Displays: Match
If the module in the physical slot: agrees with what is specified on the General Tab. In order for the Match condition to exist, all of the following must agree: Vendor Module Type (the combination of Product Type and Product Code for a particular Vendor) Major Revision does not agree with what is specified on the General Tab
Mismatch
This field does not take into account the Electronic Keying or Minor Revision selections for the module that were specified on the General Tab.
Refresh
Click on this button to refresh the tab with the new data from the module.
Reset Module
Click on this button to return a module to its power-up state by emulating the cycling of power. WARNING Resetting a module causes all connections to or through the module to be closed; this may result in loss of control.
6-16
Chapter
Motion Instructions
This chapter describes the 32 motion instructions for RSLogix 5000 programming software. The motion instructions for the RSLogix 5000 programming software consist of five main categories:
Motion state instructions to control or change the operating state of an axis. Motion move instructions to control all aspects of axis position. Motion group instructions to control a group of axes. Motion event instructions control the arming and disarming of special event checking functions. Motion configuration instructions to tune an axis and to run diagnostic tests for the system.
Refer to The Logix5550 Controller Motion Instruction Set Reference Manual, publication 1756-RM007 Appendix E - Instruction Timing
Motion state instructions directly control or change the operating state of an axis. The motion state instructions are:
Description Enables the servo drive and activates the axis servo loop Disables the servo drive and deactivates the axis servo loop
7-2
Motion Instructions
MASD
Forces an axis into the shutdown operating state Once the axis is in the shutdown state, the controller will block any instructions that initiate axis motion. Changes an axis from an existing shutdown operating state to an axis ready operating state If all of the axes of a servo module are removed from the shutdown state as a result of this instruction, the OK relay contacts for the module will close. Enables the servo drive and sets the servo output voltage of an axis Disables the servo drive and sets the servo output voltage to the output offset voltage Clears all motion faults
Message
MASR
Message
MDO MDF
Message Message
MAFR
Message
For more information about motion state instructions, refer to the Motion State Instructions chapter of the Logix5550 Controller Motion Instruction Set Reference Manual, publication 1756-RM007. For more information about instruction timing, refer to Appendix E - Instruction Timing.
Motion move instructions control all aspects of axis position. The motion move instructions are:
Instruction Motion Axis Stop Motion Axis Home Motion Axis Jog Motion Axis Move Motion Axis Gear Motion Change Dynamics
Description Initiates a controlled stop of any motion process on an axis Homes an axis Initiates a jog motion profile for an axis Initiates a move profile for an axis Enables electronic gearing between two axes Changes the speed, acceleration rate, or deceleration rate of a move profile or jog profile in progress Changes the command or actual position of an axis
Type of Timing Immediate Process Message Process Immediate Process Immediate Process Immediate Process Immediate
MRP
Message
Motion Instructions
7-3
MCCP MAPC
Calculates a Cam Profile based on an array of cam points. Performs electronic camming between any two axes designated in the specified Cam Profile. Performs electronic camming as a function of time designated in the specified Cam Profile.
MATC
For more information about motion state instructions, refer to the Motion Move Instructions chapter of Logix5550 Controller Motion Instruction Set Reference Manual, publication 1756-RM007. For more information about instruction timing, refer to Appendix E - Instruction Timing.
Motion group instructions initiate action on all axes in a group. The motion group instructions are:
Instruction Motion Group Stop Motion Group Programmed Stop Motion Group Shutdown Motion Group Shutdown Reset Motion Group Strobe Position
Description Initiates a stop of motion on a group of axes Initiates a stop of all motion on all the axes in a group using the method that you set for each axis. Forces all the axes in a group into the shutdown operating state Transitions a group of axes from the shutdown operating state to the axis ready operating state Latches the current command and actual positions of all the axes in a group
MGSD MGSR
MGSP
Immediate
For more information about motion state instructions, refer to the Motion Group Instructions chapter of Logix5550 Controller Motion Instruction Set Reference Manual, publication 1756-RM007. For more information about instruction timing, refer to Appendix E - Instruction Timing.
Motion event instructions control the arming and disarming of special event checking functions, such as registration and watch position.
7-4
Motion Instructions
MDOC
For more information about motion state instructions, refer to the Motion Event Instructions chapter of Logix5550 Controller Motion Instruction Set Reference Manual, publication 1756-RM007. For more information about instruction timing, refer to Appendix E - Instruction Timing.
Motion configuration instructions allow you to tune an axis and to run diagnostic tests for your control system. These tests include:
A motor/encoder hookup test An encoder hookup test A marker test
MRAT
Message Process
Motion Instructions
7-5
MAHD
Applies the results of a previously executed MRHD instruction The MAHD instruction generates a new set of encoder and servo polarities based on the observed direction of motion during the MRHD instruction. Commands the servo module to run one of three diagnostic tests on an axis
Message
MRHD
Message Process
For more information about motion state instructions, refer to the Motion Configuration Instructions chapter of Logix5550 Controller Motion Instruction Set Reference Manual, publication 1756-RM007. For more information about instruction timing, refer to Appendix E - Instruction Timing.
7-6
Motion Instructions
Chapter
Troubleshooting
This chapter describes how to troubleshoot your ControlLogix motion control system.
The module has passed internal diagnostics, but it is not communicating axis data over the backplane.
Axis data is being exchanged with the module. The module is in the normal operating state. A major recoverable failure has occurred. A communication fault, timer fault, or NVS update is in progress. The OK contact has opened.
Check the servo fault word for the source of the error. Clear the fault condition using the motion instructions. Resume normal operation. If the flashing persists, reconfigure the module. Reboot the module. If the solid red persists, replace the module.
8-2
Troubleshooting
Off
The axis is in the normal servo loop inactive state. The axis is in the normal servo loop active state. The axis servo loop error tolerance has been exceeded.
None, if you are not using this axis. If you are using this axis, make sure you configured the module and associated an axis tag with the module. None. You can change the servo axis state by executing motion instructions. None. You can change the servo axis state by executing motion instructions. Correct the source of the problem. Clear the servo fault using a fault reset instruction. Resume normal operation. Correct the source of the problem by checking the encoder and power connections. Clear the servo fault using the MAFR instruction. Resume normal operation.
None, if you are not using the axis or have configured it as a position-only axis. Otherwise, make sure you have configured the module, associated an axis tag with the module, and configured the axis as a servo axis.
Troubleshooting
8-3
If the DRIVE LED displays Flashing green light Steady green light Flashing red light
The axis drive is in the normal disabled state. The axis drive is in the normal enabled state. The axis drive output is in the Shutdown state.
None. You can change the servo axis state by executing a motion instruction. None. You can change the servo axis state by executing a motion instruction. Check for faults that may have generated this state. Execute the shutdown reset motion instruction. Resume normal operation. Check the drive status. Clear the drive fault condition at the drive. Execute a fault reset motion instruction. Resume normal operation. Check the configuration for the Drive Fault. If configured to be normally open and there is no voltage, this is the normal condition. If configured to be normally closed and there is 24V applied, this is the normal condition.
If the CP LED displays: Off Solid red light Flashing red light Alternating Red/Green light Flashing green light Solid green light
Then the module status is: The module is not operating. In Phase 0: looking for a closed ring. In Phase 1: looking for active nodes. In Phase 2: configuring nodes for communication. In Phase 3: configuring device specific parameters In Phase 4: configured and active.
8-4
Troubleshooting
The module has passed internal diagnostics, but has not established active communications. Data is being exchanged. The module is in the normal operating state. A major recoverable failure has occurred. An NVS update is in progress.
Apply chassis power. Verify the module is completely inserted into the chassis and backplane. None, if you have not configured the module.
None. The module is ready for action. If an NVS update is in progress, complete the NVS update. If an NVS update is not in progress: Reboot
Reboot the module. If the solid red persists, replace the module.
If the SERCOS Ring LED displays: Solid green light Flashing red light
The ring, drive, and axes are configured and are actively communicating through to the nodes on the ring. The module has detected a setup or configuration fault with the ring.
None.
Check your system setup and configuration as follows:. Ensure drive and axes addresses are correct. Eliminate duplicate drive or axes addresses on ring. Remove excess axes from ring. Make sure application program has selected the proper Ring Cycle Period and Baud Rate.
Troubleshooting
8-5
The module has detected a hardware or installation fault with the ring.
Off
Check your system hardware and installation as follows: Make sure all cables are properly installed. Make sure cable is of the correct type and length. Make sure application program has configured the modules ring transmit level to High when using specified cables. Make sure the drives transmit levels are set appropriately. Inspect cables for degradation. Inspect drives for any faults and correct them. Check your system and installation as follows: Make sure all cables are properly installed Inspect cable for degradation and breakage. Inspect drives for faults. Not a problem if the system has not been configured. If you are having trouble configuring the ring, drive, and axes: Make sure that the application program is setup properly for the equipment in use.
8-6
Troubleshooting
Appendix
This appendix shows specifications and performance guidelines for the motion modules.
Number of axes per chassis Motion commands Number of axes per module Servo loop Type Gain resolution Absolute position range Rate Module location Module keying Power dissipation Backplane current Encoder input Type Mode Rate Electrical interface Voltage range On state Off state Input impedance Registration inputs Type 24V input voltage Maximum Minimum on Maximum off 5V input voltage Maximum Minimum on Maximum off Input impedance 24V input 5V input Response time (position latched)
Configurable 32 2 axes maximum Nested PI digital position and velocity servo 32-bit floating point 1,000,000,000 encoder counts 5 kHz 1756 ControlLogix chassis Electronic 5.5W maximum 5V dc @ 700 mA 24V dc @ 2.5 mA Incremental AB quadrature with marker 4X quadrature 4 MHz counts per second maximum Optically isolated 5V differential 3.4V to 5.0V 0V to 1.8V 531 Ohms differential Optically isolated, current sourcing input +24V dc nominal 26.4V 18.5V 3.5V +5V dc nominal 5.5V 3.7V 1.5V 1.2 kOhms 9.5 kOhms 1s
A-2
All other inputs Type Input voltage Maximum Minimum on Maximum off Input impedance Servo output Type Isolation Voltage range Voltage resolution Load Maximum offset Gain error All other outputs Type Operating voltage Maximum Operating current RTB keying Field wiring arm RTB screw torque (cage clamp) Conductors Wire size Category Screwdriver blade width for RTB Environmental conditions Operating temperature Storage temperature Relative humidity Agency certification (when product or packaging is marked)
Optically isolated, current sinking input +24V dc nominal 26.4V 17.0V 8.5V 7.5 kOhms Analog voltage 200 kOhms 10V 16 bits 5.6 kOhms resistive minimum 25 mV 4% Solid-state isolated relay contacts +24V dc nominal 26.4V 75 mA User-defined 36-position RTB (1756-TBCH or -TBS6H)1 5lb-in. (0.5 Nm) maximum 22 gauge (3.1 mm2) minimum to copper1 3/64 inch (1.2 mm) insulation maximum 12,3 1/8 inch (3.2 mm) maximum
installation manual.
3 Refer to Industrial Automation Wiring and Grounding Guidelines, publication number 1770-4.1.
A-3
To calculate the coarse update period for the number axes in your application, you can use the following formula:
....
The result of the above calculation must be divided by 1000 rounded up to the nearest milliseconds. You can use the sample calculation worksheet in this section to determine your coarse update period. To determine the values for your equation, refer to the following table. The coarse update period can have a significant bearing on the quality of motion control for a given application. If an application requires commanded acceleration or deceleration times that are comparable to the coarse update period, significant velocity and position overshoot can occur as the axis attempts to follow the command profile. The amount of velocity overshoot can be calculated as the product of the acceleration or deceleration rate and the coarse update period. As a general rule of thumb the acceleration and deceleration times for a motion application should be at least 10 times the coarse update period to avoid significant velocity or position overshoot. For example, an application that requires an axis to accelerate and decelerate to full speed in 100 milliseconds is best handled by choosing a coarse update period of 10 milliseconds or shorter. Be sure to check what the minimum coarse update period is for the associated controller before selecting the coarse update period. The minimum coarse update period can be determined based on the number of axes and the worst case motion activity according to the execution time tables provided.
A-4
The following table shows execution times for common motion actions.
State/Action ( = per axis) Typical Execution Time (in s) 190 205 175 900* 40 310 435 210 340 290 105 125 110 495 550 295 380 260 320
Motion Task Overhead Servo Axis Virtual Axis Consumed Axis * Servo On Trap Move SCurve Move Trap Jog SCurve Jog Gearing (Actual)
Clutch
Gearing (Command)
Clutch
Position Camming (Actual,linear) Position Camming (Actual,cubic) Position Camming (Command,linear) Position Camming (Command,cubic) Time Camming (linear) Time Camming (cubic)
* The task time of a consumed axis can be lowered to approximately 650 s by using a consumer coarse update period that is an integer multiple of the producer coarse update period. The value of 900 s reported above is the worst case (producer/consumer update ratio = 2/3). Using 2/4 would yield ~ 650s.
A-5
Enter baseline task time = Motion Task Overhead + (# of Servo Axes * Servo Axis ) + (# of Virtual Axes * Virtual Axis ) + (# of Consumed Axes * Consumed Axis )
2. For each axis in your application, use the following table to determine the action value for each axis.
Actions If you are using an action, enter its execution time from the Action Timing table. If you are not using an action, enter zero (0).
2 3 4 5 6 7 8 9 10 11 12
Servo on Trapezoidal move S-curve move Trapezoidal jog S-curve jog Actual gear Command gear Actual PCAM Command PCAM TCAM Total Axis Action Value (Add lines 2 through 11). Place total here.
s s s s s s s s s s s
3. Calculate the Total Axes Action Value by adding all of the Total Axis Action Values (line 12) for all axes in the group. 4. The Recommended Coarse Update Period is calculated by: (Baseline Task Time(line 1) + Total of Axes Action Values(line12) ) * 2 / 1000 then round up to the milliseconds to get your Recommended Coarse Update Period.
A-6
Sample Calculation
You have the following situation:
You have a system consisting of 2 modules, 3 Servo axes, and 1 virtual axis. You are turning the servo on and performing a trapezoidal move for axis1. You are turning the servo on and doing an S-Curve jog for axis2. Axis3 is a virtual axis and you are doing a command gear for on it. You are turning the servo on and doing a cubic command position cam for axis4.
Enter baseline task time = Motion Task Overhead + (3 * Servo Axis) + (1 * Virtual Axis).
980 s
2. For each axis in your application, use the following tables to determine the action value for each axis. Axis 1:
Actions If you are using an action, enter its execution time from the Action Timing table. If you are not using an action, enter zero (0).
2 3 4 5 6 7 8 9 10 11 12
Servo on Trapezoidal move S-curve move Trapezoidal jog S-curve jog Actual gear Command gear Actual PCAM Command PCAM TCAM Total Axis Action Value (Add lines 2 through 11).
40 s 310 s
0 s 0 s 0 s 0 s 0 s 0 s 0 s 0 s
350 s
A-7
Axis 2:
Actions If you are using an action, enter its execution time from the Action Timing table. If you are not using an action, enter zero (0).
2 3 4 5 6 7 8 9 10 11 12
Servo on Trapezoidal move S-curve move Trapezoidal jog S-curve jog Actual gear Command gear Actual PCAM Command PCAM TCAM Total Axis Action Value (Add lines 2 through 11).
40 s 0 s
0 s 0 s 340 s 0 s 0 s 0 s 0 s 0 s
380 s
Axis 3:
Actions If you are using an action, enter its execution time from the Action Timing table. If you are not using an action, enter zero (0).
2 3 4 5 6 7 8 9 10 11 12
Servo on Trapezoidal move S-curve move Trapezoidal jog S-curve jog Actual gear Command gear Actual PCAM Command PCAM TCAM Total Axis Action Value (Add lines 2 through 11).
0 s 0 s
0 s 0 s 0 s 0 s 125 s 0 s 0 s 0 s
125 s
A-8
Axes 4:
Actions If you are using an action, enter its execution time from the Action Timing table. If you are not using an action, enter zero (0).
2 3 4 5 6 7 8 9 10 11 12
Servo on Trapezoidal move S-curve move Trapezoidal jog S-curve jog Actual gear Command gear Actual PCAM Command PCAM TCAM Total Axis Action Value (Add lines 2 through 11).
40 s 0 s
0 s 0 s 0 s 0 s 0 s 0 s 380 s 0 s
420 s
125 s
420 s
2255 s
4510 s
5 ms
The impact on the coarse update period is primarily dependent on three factors:
total number of output cam array entries total number of output compensation array entries number of outputs compensation array entries with non-zero latch/unlatch time delay values
A-9
The following formulas ballpark additional coarse update time required for each unique Output Cam execution target being used. In the following formulas:
A = number of Output Cam array elements B = number of Output Compensation array elements C = number of Output Compensation array elements with Latch/ Unlatch non-zero delay values
A-10
Appendix
This appendix shows the loop interconnect diagrams for common motion configurations.
The control block diagrams in this section use the following terms for motion attributes.
Diagram term Acc FF Gain Vel FF Gain Pos P Gain Pos I Gain Vel P Gain Vel I Gain Output Filter BW Output Scaling Friction Comp Output Limit Output Offset Position Error Position Integrator Error Velocity Error Velocity Integrator Error Velocity Feedback Velocity Command Servo Output Level Registration Position Watch Position Motion attribute name (as used in the GSV and SSV instructions) AccelerationFeedforwardGain VelocityFeedforwardGain PositionProportionalGain PositionIntegralGain VelocityProportionalGain VelocityIntegralGain OutputFilterBandwidth OutputScaling FrictionCompensation OutputLimit OutputOffset PositionError PositionIntegratorError VelocityError VelocityIntegratorError VelocityFeedback VelocityCommand ServoOutputLevel RegistrationPosition WatchPosition
B-2
d2/dt
Command Acceleration
Acc FF Gain Output Filter BW Velocity Command Pos P Gain Friction Comp.
Command Velocity d/dt Coarse Command Position (Relative) Fine Command Position
Position Error
Vel P Gain
Output Scaling
16 Bit DAC
Error Accumulator
Vel I Gain
Optical Encoder
Watch Position Coarse Actual Position (Relative) Watch Event d/dt Encoder Polarity Servo Motor
Position Accumulator
Marker Input
Marker Latch
Regist. Latch
Registration Input
Home Input
B-3
d2/dt
Command Acceleration
Command Velocity d/dt Coarse Command Position (Relative) Fine Command Position
Position Error
Pos P Gain
Output Scaling
16 Bit DAC
Error Accumulator
Pos I Gain
Velocity Feedback
Optical Encoder
Watch Position Coarse Actual Position (Relative) Watch Event d/dt Encoder Polarity Servo Motor
Position Accumulator
Marker Input
Marker Latch
Regist. Latch
Registration Input
Home Input
B-4
2 +OUT-0 4 -OUT-0 6 +ENABLE-0 8 -ENABLE-0 10 DRVFLT-0 12 CHASSIS 14 IN_COM 16 HOME-0 18 REG24V-0 20 REG5V-0 22 +OK 24 CHASSIS 26 +CHA-0 28 -CHA-0 30 +CHB-0 32 -CHB-0 34 +CHZ-0 36 -CHZ-0
1 +OUT-1 3 -OUT-1 5 +ENABLE-1 7 -ENABLE-1 9 DRVFLT-1 11 CHASSIS 13 IN_COM 15 HOME-1 17 REG24V-1 19 REG5V-1 21 -OK 23 CHASSIS 25 +CHA-1 27 -CHA-1 29 +CHB-1 31 -CHB-1 33 +CHZ-1 35 -CHZ-1
Belden 9501
To servo drive
Belden 9502
To servo drive
Belden 9501
Belden 9501
Belden 9503
To encoder
Belden 9501
This is a general wiring example illustrating Axis 1 wiring only. Other configurations are possible with Axis 0 wiring identical to Axis 1.
B-5
J1 to 50-pin Terminal Block (Kit P/N 9109-1391) 24 VDC 24 VDC Field Power Supply J1-5 J1-26 J1-24 J1-6 24VDC 24VDC READY+ 24VCOM
24 VCOM
From 1756-M02AE
P/N 9109-1369-003
+ENABLE From 1756-M02AE -ENABLE Belden 9502 DRVFLT IN_COM J1-7 AOUT+ J1-8 AOUTJ1-9 BOUT+ J1-10 BOUTJ1-11 IOUT+ J1-12 IOUTJ1-20 ENABLE J1-25 READYInterface Cable J1
+CHA -CHA From 1756-M02AE +CHB Belden 9503 -CHB +CHZ -CHZ
This is a general wiring example only. Other configurations are possible. For more information, refer to the Ultra 100 Series Drive Installation Manual, publication number 1398-5.2.
B-6
J1 to 50-pin Terminal Block (Kit P/N 9109-1391) J1-5 24VDC J1-24 READY+ J1-6 or 13 24VCOM
From 1756-M02AE
P/N 9109-1369-003
+ENABLE From 1756-M02AE -ENABLE Belden 9502 DRVFLT IN_COM J1-7 AOUT+ J1-8 AOUTJ1-9 BOUT+ J1-10 BOUTJ1-11 IOUT+ J1-12 IOUTJ1-20 ENABLE J1-25 READYInterface Cable J1
+CHA -CHA From 1756-M02AE +CHB Belden 9503 -CHB +CHZ -CHZ
This is a general wiring example only. Other configurations are possible. For more information, refer to the Ultra 200 Series Drive Installation Manual, publication number 1398-5.0.
B-7
5.0 in.
49 50
BRAKE + BRAKE -
TAN 28GA
21
DRAIN
RESET
5 6
24VDC 24VCOM
22 23 26 24 20 25 13
GREEN 28GA BLUE 28GA VIOLET 28GA GRAY 28GA WHITE 28GA BLACK 28G DRAIN
7 8 9 10 11 12
B-8
1756-M02AE
WHT BLK RED BLK GRN BLK OK RED OK+ BLK OKTo fault string
1394CCAExx
+5V DC +5 COM
RED BLK
ENC. PWR -1
ENA/DR OK 1
1394CCAExx
Axis 1
AQB1
The wiring diagram illustrates Axis 1 wiring only. Other configurations are possible. The 1394CCAE xx cable is wired to connect to torque command reference input pins. An external +5V power supply is required to power the encoder driver circuit of the 1394 servo drive. Because this connection is shared by all four axis encoder driver circuits, only one connection is needed to the +5V field supply. The xx in the cable number is the length of the cable. Options are 5, 10, 25, and 50 feet.
B-9
7
3.0 in.
1 6
M02AE - OK
12
CHANNEL A HIGH CHANNEL A LOW CHANNEL B HIGH CHANNEL B LOW CHANNEL Z HIGH CHANNEL Z LOW
VREF+ TREF+ VREFTREF-
4 10 5 11 6 12 1 2 7 8
BLUE 22GA WHT/BLU 22GA DRAIN VIOLET 22GA WHT/VIO 22GA GRAY 22GA WHT/GRY 22GA DRAIN RED 22GA BLACK 22GA DRAIN
B-10
24 VDC Field Power Supply + 24 Volt Registration Sensor Supply REG24V rom 1756-M02AE Belden 9501 IN_COM Output Common
5V Registration Sensor
5 VDC Field Power Supply + 5 Volt Registration Sensor Supply REG5V From 1756-M02AE Belden 9501 IN_COM Output Common
B-11
B-12
CR1
Appendix
This appendix shows the structures for the AXIS, MOTION_GROUP, MOTION_INSTRUCTION, CAM, and CAM_PROFILE data tags.
The AXIS structure contains status and configuration information for your motion axis. You can directly access this information in your application program. For example, if you want to use the AccelStatus attribute for Axis_X, you would use Axis_X.AccelStatus to gain access to the attribute.
Variable .AccelStatus
Description You can use this bit to determine if the axis has been commanded to accelerate. If neither this bit nor the .DecelStatus bit is set, the axis is running at the steady-state velocity or is at rest. You can use this bit to determine the status of asynchronous communication. When the controller detects that one of the servo module parameters failed to update because of an asynchronous communication failure, this bit sets. When you reestablish the connection, the bit clears. You can use this bit to determine the status of synchronous communication. When the controller detects that the servo module has missed several position updates in a row because of a synchronous communication failure, this bit sets. When you reestablish the connection, the bit clears. You can use this bit to determine the status of a homing sequence. During power-up or reconnection, the controller clears this bit. The Motion Axis Home (MAH) instruction sets this bit when a homing sequence completes successfully. After this bit sets, If the axis enters the shutdown state, the controller clears this bit. You can use this bit to determine if the axis has been commanded to decelerate. If neither this bit nor the .AccelStatus bit is set, the axis is running at the steady-state velocity or is at rest. You can use this bit to determine the status of the drive enable output. If this bit is set, you have activated the drive enable output for your axis. This bit is clear if you have deactivated the drive enable output for your axis. You can use this bit to determine the status of the external drive. If this bit is set, the external drive detected a fault. This bit clears when the controller executes a Motion Axis Fault Reset (MAFR) instruction. You can use this bit to determine the status of the encoder channel A. This bit sets if both of the differential signals are at the same level or if the servo module or encoder loses encoder power or common. The bit clears when the controller executes a Motion Axis Fault Reset (MAFR) instruction.
.ACAsyncConnFault
BOOL
.ACSyncConnFault
BOOL
.AxisHomedStatus
BOOL
.DecelStatus
BOOL
.DriveEnableStatus
BOOL
.DriveFault
BOOL
.EncCHALossFault
BOOL
C-2
Variable .EncCHBLossFault
Description You can use this bit to determine the status of the encoder channel B. This bit sets if both of the differential signals are at the same level or if the servo module or encoder loses encoder power or common. The bit clears when the controller executes a Motion Axis Fault Reset (MAFR) instruction. You can use this bit to determine the status of the encoder channel Z. This bit sets if both of the differential signals are at the same level or if the servo module or encoder loses encoder power or common. The bit clears when the controller executes a Motion Axis Fault Reset (MAFR) instruction. You can use this bit to determine the status of encoder channels A and B. If the servo module detects simultaneous transitions of channels A and B, this bit sets. This bit is clear after the controller executes a Motion Axis Fault Reset (MAFR) instruction. The servo event bits for your servo loop. Bit .WatchEvArmStatus .WatchEvStatus .RegEvArmStatus .RegEvStatus .HomeEvArmStatus .HomeEvStatus Number 00 01 02 03 04 05 Data type BOOL BOOL BOOL BOOL BOOL BOOL Description watch event armed watch event registration event armed registration event home event armed home event
.EncCHZLossFault
BOOL
.EncNsFault
BOOL
.EventStatus
DINT
Bits 06 through 31 are reserved. .GearingStatus BOOL You can use this bit to determine if electronic gearing is enabled. If this bit is set, the axis is currently gearing to another axis. This bit is clear when the gearing operation stops or when another motion operation supersedes the gearing operation. You can use this bit to clutch to a new gear speed. This bit is set when the axis is clutching to a new gear speed. When the clutch ramp completes, the slave is locked to the master according to the gear ratio. You can use this bit to determine the status of the servo module. If this bit is set, the servo module detected a hardware problem that typically requires the replacement of the servo module. You can use this bit to determine the status of a homing event. If this bit is set, a Motion Axis Home (MAH) instruction has armed a home event. This bit clears when a home event occurs. You can use this bit to determine the status of a homing event. If this bit is set, a home event has occurred. This bit clears when another Motion Axis Home (MAH) instruction executes. You can use this bit to determine if a homing profile is in progress. If this bit is set, a homing profile is currently in progress. This bit is clear when the homing operation completes or when another motion operation supersedes the homing operation. You can use this bit to determine if a jog profile is in progress. If this bit is set, a jog profile is currently in progress. This bit is clear when the jog completes or when another motion operation supersedes the jog operation. The motion fault bits for your axis. Bit .ACAsyncConnFault .ACSyncConnFault Number 00 01 Data type BOOL BOOL
.GearingLockStatus
BOOL
.Hardfault
BOOL
.JogStatus
BOOL
.MotionFault
DINT
C-3
Variable .MotionStatus
Description The motion status bits for your axis. Bit .AccelStatus .DecelStatus .MoveStatus .JogStatus .GearingStatus .HomingStatus .StoppingStatus .AxisHomedStatus .PositionCamStatus .TimeCamStatus .PositionCamPendingStatus .TimeCamPendingStatus .GearingLockStatus .PositionCamLockStatus .MasterOffsetMoveStatus .OutputCamStatus .OutputCamPendingStatus .OutputCamLockStatus .OutputCamTransitionStatus
*
Data type BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL DINT DINT DINT DINT
.MoveStatus
BOOL
You can use this bit to determine if a move profile is in progress. If this bit is set, a move profile is currently in progress. This bit is clear when the move completes or when another motion operation supersedes the move operation. You can use this bit to determine the status of axis travel. If this bit is set, the axis has moved or has attempted to move beyond the MaximumNegativeOvertravel value. This bit is clear when the axis moves within the MaximumNegativeOvertravel values You can use this bit to determine the status of servo loop output. If the magnitude of the servo loop output reaches or exceeds the OutputLimit value, this bit sets. This bit is clear when the magnitude of the servo loop output is within the OutputLimit value. You can use this bit to determine the start status of the current Position Cam Profile. This bit is set when the master axis satisfies the starting condition of the currently active Position Cam Profile. The starting condition is established by the Start Control and the Start Position parameters of the MAPC instruction. This bit is cleared when the current position cam profile completes or is superseded by another motion operation. You can use this bit to see if a position cam motion profile is currently waiting for the completion of an executing cam profile. This bit is set when a Position Cam motion profile is waiting the completion of an executing cam profile. It is initiated by executing an MAPC instruction with Pending execution selected. As soon as the current position cam profile completes, the pending cam profile is started, and the bit is cleared. This bit is also cleared when the position cam profile completes, or is superseded by some other motion operation.
.NOtrvlFault
BOOL
.OutLmtStatus
BOOL
.PositionCamLockStatus
BOOL
.PositionCamPendingStatus
BOOL
C-4
Variable .PositionCamStatus
Description You can use this bit to determine whether or not a Position Cam profile is currently in progress. This bit is set when a Position Cam motion profile is currently in progress. The Position Cam Status bit is cleared as soon as the position cam completes or is superseded by some other motion operation. You can use this bit to determine the status of axis position error. If this bit is set, the servo module has detected that axis position error exceeds the PositionErrorTolerance value. This bit is clear when the controller executes a Motion Axis Fault Reset (MAFR) instruction. You can use this bit to determine the status of the axis position error. If this bit is set, the magnitude of the axis position error is less than or equal to the PositionLockTolerance value. This bit is clear when the magnitude of the axis position error is greater than the PositionLockTolernce value. You can use this bit to determine the status of axis travel. If this bit is set, the axis has moved or has attempted to move beyond the MaximumPositiveOvertravel value. This bit is clear when the axis moves within the MaximumPositiveOvertravel values You can use this bit to determine the status of a registration event. If this bit is set, the execution of a Motion Arm Registration (MAR) instruction has armed a registration event. This bit clears when a registration event occurs or the controller executes a Motion Disarm Registration (MDR) instruction. You can use this bit to determine the status of a registration event. If this bit is set, a registration event has occurred. This bit clears when the controller executes another Motion Arm Registration (MAR) instruction or a Motion Disarm Registration (MDR) instruction. You can use this bit to determine if servo action is enabled for your axis. If this bit is set, servo action is currently enabled. This bit is clear when servo action is disabled. The servo fault bits for your servo loop. Bit .POtrvlFault .NOtrvlFault .PosErrorFault .EncCHALossFault .EncCHBLossFault .EncCHZLossFault .EncNsFault .DriveFault .SyncConnFault .Hardfault Number 00 01 02 03 04 05 06 07 08 09 Data type BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL
.PosErrorFault
BOOL
.PosLockStatus
BOOL
.POtrvlFault
BOOL
.RegEvArmStatus
BOOL
.RegEvStatus
BOOL
.ServoActStatus .ServoFault
BOOL DINT
C-5
Variable .ServoStatus
Description The status bits for your servo loop. Bit .ServoActStatus .DriveEnableStatus .OutLmtStatus .PosLockStatus .TuneStatus .TestStatus .ShutdownStatus Number 00 01 02 03 13 14 15 Data type BOOL BOOL BOOL BOOL BOOL BOOL BOOL
Bits 04 through 12 and bits 16 through 31 are reserved. .ShutdownStatus BOOL You can use this bit to determine if your axis is in the shutdown state. If this bit is set, the axis is in the shutdown state. This bit is clear when the axis transitions from the shutdown state to another state. You can use the Stopping Status bit attribute to see if there is a stopping process currently in progress. This bit is set when a stopping process is in progress. The bit is cleared as soon as the stopping process is complete. The stopping process is used to stop an axis (initiated by an MAS, MGS, MGPS, Stop Motion fault action, or mode change). You can use this bit to determine the status of synchronous communication. When the servo module detects that it has missed several position updates in a row because of a synchronous communication failure, this bit sets. When you reestablish the connection, the bit clears. You can use this bit to determine the status of diagnostic tests. If this bit is set, a diagnostic test operation is in progress for the servo module. You can use the Time Cam Pending Status bit to see if a Time Cam motion profile is waiting for an executing cam profile to finish. This bit is set when a Time Cam motion profile is currently waiting for the currently executing cam profile to complete. This is initiated by executing an MATC instruction with Pending execution selected. The Time Cam Pending bit is cleared as soon as the current time cam profile completes, initiating the start of the pending cam profile. This bit is also cleared if the time cam profile completes, or is superseded by some other motion operation. You can use the Time Cam Status bit to see if a Time Cam motion profile is currently being executed. This bit is set when a Time Cam motion profile is currently in progress. The Time Cam Status bit is cleared as soon as the Time Cam is complete or superseded by another motion operation. You can use this bit to determine the status of axis tuning. If this bit is set, an auto tuning operation is in progress for the servo module.
.StoppingStatus
BOOL
.SyncConnFault
BOOL
.TestStatus .TimeCamPendingStatus
BOOL BOOL
.TimeCamStatus
BOOL
.TuneStatus
BOOL
C-6
Variable .UpdateStatus
Description You can use these bits to determine the configuration parameters for your axis. If a bit is set, you configured the axis to update the associated attribute. For example, if the position error update bit is set, you configured your axis to update the PositionError attribute. Bit 00 01 02 03 04 05 06 Meaning position error update position integrator error update velocity error update velocity integrator error update velocity command update velocity feedback update servo output level update
Bits 07 through 31 are reserved. .WatchEvArmStatus BOOL You can use this bit to determine the status of the watch event. If this bit is set, the execution of a Motion Arm Watch (MAW) instruction has armed a watch event. This bit clears when a watch event occurs or the controller executes a Motion Disarm Watch (MDW) instruction. You can use this bit to determine the status of a watch event. If this bit is set, a watch event has occurred. This bit clears when the controller executes another Motion Arm Watch (MAW) instruction or a Motion Disarm Watch (MDW) instruction.
.WatchEvStatus
BOOL
C-7
Variable .FricCompStatus .MaxNTrvlStatus .MaxPTrvlStatus .OutFiltBWStatus .OutLimitStatus .OutOffsetStatus .OutScaleStatus .PosErrorFaultActStatus .PosErrorTolStatus .PosIGainStatus .PosLockTolStatus .PosPGainStatus .PosUnwindStatus .POtrvlFactActStatus .VelFfGainStatus .VelIGainStatus .VelPGainStatus
Data Type BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL
Description The status of an update to the FrictionCompensation attribute. The status of an update to the MaximumNegativeTravel attribute. The status of an update to the MaximumPositiveTravel attribute. The status of an update to the OutputFilterBandwidth attribute. The status of an update to the OutputLimit attribute. The status of an update to the OutputOffset attribute. The status of an update to the OutputScaling attribute. The status of an update to the PositionErrorFaultAction attribute. The status of an update to the PositionErrorTolerance attribute. The status of an update to the PositionIntegralGain attribute. The status of an update to the PositionLockTolerance attribute. The status of an update to the PositionProportionalGain attribute. The status of an update to the PositionUnwind attribute. The status of an update to the SoftOvertravelFaultAction attribute. The status of an update to the VelocityFeedforwardGain attribute. The status of an update to the VelocityIntegralGain attribute. The status of an update to the VelocityProportionalGain attribute.
The MOTION_GROUP structure contains status and configuration information for your motion group. You can directly access this information in your motion control program. For example, if you want to use the DriveFault attribute for Motion_Group, you would use Motion_Group.DriveFault to gain access to the attribute. The bits in the MOTION_GROUP structure are set when any axis in the group experiences the conditions required to set the bit. For example, if one axis in a group of ten axes developed the conditions to set the .POtrvlFault bit, the controller would set the .POtrvlFault bit in the MOTION_GROUP structure.
Variable .ACAsyncConnFault
Data Type
Description You can use this bit to determine the status of asynchronous communication. When the controller detects that one of the servo module parameters failed to update because of an asynchronous communication failure, this bit sets. When you reestablish the connection, the bit clears. You can use this bit to determine the status of synchronous communication. When the controller detects that the servo module has missed several position updates in a row because of a synchronous communication failure, this bit sets. When you reestablish the connection, the bit clears.
BOOL
.ACSyncConnFault
BOOL
C-8
Variable .DriveFault
Data Type
Description You can use this bit to determine the status of the external drive. If this bit is set, the external drive detected a fault. This bit clears when the controller executes a Motion Axis Fault Reset (MAFR) instruction. You can use this bit to determine the status of the encoder channel A. This bit sets if both of the differential signals are at the same level or if the servo module or encoder loses encoder power or common. The bit clears when the controller executes a Motion Axis Fault Reset (MAFR) instruction. You can use this bit to determine the status of the encoder channel B. This bit sets if both of the differential signals are at the same level or if the servo module or encoder loses encoder power or common. The bit clears when the controller executes a Motion Axis Fault Reset (MAFR) instruction. You can use this bit to determine the status of the encoder channel Z. This bit sets if both of the differential signals are at the same level or if the servo module or encoder loses encoder power or common. The bit clears when the controller executes a Motion Axis Fault Reset (MAFR) instruction. You can use this bit to determine the status of encoder channels A and B. If the servo module detects simultaneous transitions of channels A and B, this bit sets. This bit is clear after the controller executes a Motion Axis Fault Reset (MAFR) instruction. The fault bits for your motion group. Bit GroupOverlapFault Number 00 Data type BOOL
BOOL
.EncCHALossFault
BOOL
.EncCHBLossFault
BOOL
.EncCHZLossFault
BOOL
.EncNsFault
BOOL
.GroupFault
DINT
Bits 01 through 31 are reserved. .GroupOverlapFault BOOL You can use this bit to determine the status of motion processing. This bit indicates that the motion processing in the controller does not have enough time to complete, and therefore requires an increased coarse update rate to function properly. If this bit is set, the controller requested motion processing, but it has not completed its previous two requests. You can reset this bit via direct access or by downloading to the controller. The status bits for your motion group. Bit .InhibitStatus .GroupSynced .GroupSynced BOOL Number 00 01 Data type BOOL BOOL
.GroupStatus
DINT
Bits 02 through 31 are reserved. You can use this bit to determine the status of the group connection to the controller. This bit is set the first time all the axes in a group are connected and synchronized to the controller. This bit remains set until you download a new program, clear the controller memory, or powercycle the controller. You can use this bit to determine the status of the servo module. If this bit is set, the servo module detected a hardware problem that typically requires the replacement of the servo module. Not used by the controller. The motion fault bits for your axis. Bit .ACAsyncConnFault .ACSyncConnFault Number 00 01 Data type BOOL BOOL
.Hardfault
BOOL
.InhibitStatus .MotionFault
BOOL DINT
C-9
Variable .NOtrvlFault
Data Type
Description You can use this bit to determine the status of axis travel. If this bit is set, the axis has moved or has attempted to move beyond the MaximumNegativeOvertravel value. This bit is clear when the axis moves within the MaximumNegativeOvertravel values You can use this bit to determine the status of axis position error. If this bit is set, the servo module has detected that axis position error exceeds the PositionErrorTolerance value. This bit is clear when the controller executes a Motion Axis Fault Reset (MAFR) instruction. You can use this bit to determine the status of axis travel. If this bit is set, the axis has moved or has attempted to move beyond the MaximumPositiveOvertravel value. This bit is clear when the axis moves within the MaximumPositiveOvertravel values The servo fault bits for your servo loop. Bit .POtrvlFault .NOtrvlFault .PosErrorFault .EncCHALossFault .EncCHBLossFault .EncCHZLossFault .EncNsFault .DriveFault .SyncConnFault .Hardfault Number 00 01 02 03 04 05 06 07 08 09 Data type BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL
BOOL
.PosErrorFault
BOOL
.POtrvlFault
BOOL
.ServoFault
DINT
Bits 10 through 31 are reserved. .SyncConnFault BOOL You can use this bit to determine the status of synchronous communication. When the servo module detects that it has missed several position updates in a row because of a synchronous communication failure, this bit sets. When you reestablish the connection, the bit clears.
The controller uses the MOTION_INSTRUCTION tag (structure) to store status information during the execution of motion instructions.
C-10
Every motion instruction has a motion control parameter that requires a MOTION_INSTRUCTION tag for this purpose.
WARNING
!
bit number EN
Tags used for the motion control attribute of instructions should only be used once. Re-use of the motion control attribute in other instructions can cause unintended operation of the control variables.
message
SEGMENT
execution
C-11
Mnemonic: Data Type: .EN .DN .ER .IP .PC BOOL BOOL BOOL BOOL BOOL
Description: The enable bit indicates that the instruction is enabled ( the rung-in and rung-out condition is true). The done bit indicates that all calculations and messaging (if any) are complete. The error bit indicates when the instruction is used illegally. The in process bit indicates that a process is being executed. The process complete bit indicates that the operation is complete. The .DN bit sets after an instruction has completed execution. The .PC bit sets when the initiated process has completed. The .ACCEL bit indicates that the velocity has increased for the individual instruction that it is tied to i.e jog, move, gearing The .DECEL bit indicates that the velocity has decreased for the individual instruction that it is tied to i.e jog, move, gearing. The error value contains the error code associated with a motion function. See page 1-8. The message status value indicates the status condition of any message associated with the motion function. See page 1-10. The execution status value keeps track of the execution state of a function. Many motion functions have several steps and this value tracks these steps. See page 1-10. A segment is the distance from one point up to but, not including the next point. A .SEGMENT gives the relative position by segment number as the Cam is executing.
.ACCEL
BOOL
.DECEL
BOOL
.ERR .STATUS
INT SINT
.STATE
SINT
.SEGMENT
DINT
C-12
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Servo On State Error Servo Off State Error Drive On State Error Shutdown State Error Illegal Axis Type Overtravel Condition Master Axis Conflict Axis Not Configured Servo Message Failure Parameter Out Of Range Tune Process Error Test Process Error Home In Process Error Axis Mode Not Rotary Axis Type Unused Group Not Synchronized Axis In Faulted State Group In Faulted State Axis In Motion Illegal Dynamic Change Illegal AC Mode Op
25 26 27 28 29 30 31 32 33
Illegal Instruction Illegal Cam Length Illegal Cam Profile Length Illegal Cam Type Illegal Cam Order Cam Profile Being Calculated Cam Profile Being Used Cam Profile Not Calculated Position Cam Not Enabled
C-13
Error Code: Error Message 34 Registration in Progress 35 36 37 Illegal Execution Target Illegal Output Cam Illegal Output Compensation
Description: A MAH instruction is trying to start while a registration is already running. Either the Logix controller or the Output Cam module does not support the specified Output Cam, axis, input or output. Either the size of the Output Cam array is not supported or the value of one of its members is out of range. Either the size of the Output Compensation array is not supported or the value of one of its members is out of range.
CAM Structure
The Cam data type consists of slave and master point pairs as well as an interpolation type. Since there is no association with a specific axis position or time, the point values are unit-less. The interpolation type
C-14
can be specified for each segment as either linear or cubic. The format of the cam array element is shown in the following table.
Mnemonic: Data Type: Description: MASTER SLAVE Segment Type REAL REAL DINT The x value of the point. The y value of the point. The type of interpolation. Value: Description 0 linear. 1 cubic.
CAM_PROFILE Structure
The CAM_PROFILE data type is an array of coefficients representing a calculated cam profile that can be used as input to a time cam or position cam instruction. The only element available to the user is Status which is defined in the following table.
Mnemonic: Data Type: Description: Status DINT The status parameter is used to indicate that the Cam Profile array element has been calculated. If execution of a camming instruction is attempted using an uncalculated element in a Cam Profile, the instruction produces an error. Value: Description 0 Cam profile element has not been calculated. 1 Cam profile element is being calculated. 2 Cam profile element has been calculated. n Cam profile element has been calculated and is currently being used by (n-2) MAPC and MATC instructions.
Appendix
This appendix describes the motion attributes, their data types, and their access rules. The Logix5550 controller stores motion status and configuration information in the AXIS and MOTION_GROUP objects. To directly access this information, you can select the object (AXIS or MOTION_GROUP) and select the attribute. You can also use the GSV and SSV instructions to access these objects. See Input/Output Instructions in the Logix5550 Controller Instruction Set Reference Manual, publication 1756-6.4.1 for more information about the GSV and SSV instructions.
To use the motion instance variables, choose AXIS from the object list of the GSV and SSV instructions. When an attribute is marked with an asterisk (*), it means that the attribute is located in both the ControlLogix controller and in the motion module. When you use an SSV instruction to write one of these values, the controller will automatically update the copy in the module. However, this process is not immediate. To be sure that the new value has been updated in the module, use an interlock mechanism using the boolean bits in the Servo Configuration Update Status Bits of the AXIS structure. For example, if you perform an SSV instruction on the PositionLockTolerance, the PositionLockTolStatus of the Axis tag will be set until an update to the module is successful. Therefore, the logic following the SSV could wait on this bit resetting before continuing in the program.
Description The value used to provide the torque command output to generate the command acceleration. The actual position of your axis. The actual velocity of your axis.
The internal resolution limit of the actual velocity is 1 encoder count per coarse update.
AverageVelocity
1
REAL
GSV
D-2
Description The timebase of the average velocity of your axis. The state of the axis configuration. The type of axis that you are using. Value: Meaning: 0 unused axis 1 position-only axis 2 servo axis 3 consumed axis 4 virtual axis The command position of your axis. The command velocity of your axis.
The internal resolution limit on the command velocity is 0.00001 encoder counts per coarse update.
CommandPosition CommandVelocity
REAL REAL
GSV GSV
ConversionConstant DampingFactor
REAL REAL
The conversion factor used to convert from your units to feedback counts. The value used in calculating the maximum position servo bandwidth during the execution of the Motion Run Axis Tuning (MRAT) instruction. The operation performed when a drive fault occurs. Value: Meaning: 0 shutdown the axis 1 disable the drive 2 stop the commanded motion 3 change the status bit only The inertia value for the axis as calculated from the measurements the controller made during the last Motion Run Axis Tuning (MRAT) instruction. The operation performed when an encoder loss fault occurs. Value: Meaning: 0 shutdown the axis 1 disable the drive 2 stop the commanded motion 3 change the status bit only The operation performed when an encoder noise fault occurs. Value: Meaning: 0 shutdown the axis 1 disable the drive 2 stop the commanded motion 3 change the status bit only The fixed output level used to compensate for static friction. The instance number of the motion group that contains your axis. The homing mode for your axis. Value: Meaning: 0 passive homing 1 active homing (default) The homing position of your axis.
* DriveFaultAction
SINT
EffectiveInertia
REAL
GSV
* EncoderLossFaultAction
SINT
GSV SSV
* EncoderNoiseFaultAction
SINT
GSV SSV
HomePosition
REAL
GSV SSV
D-3
Description The homing return speed of your axis. The homing sequence type for your axis. Value: Meaning: 0 immediate homing 1 switch homing 2 marker homing 3 switch-marker homing (default) The homing speed of your axis. The instance number of the axis. The I/O map instance of the servo module.
This attribute can only be set if you did not assign the axis to a group or if you assigned it to a group in the group inhibit mode.
MaximumAcceleration
REAL
GSV SSV
MaximumDeceleration
REAL
GSV SSV
ModuleChannel
SINT
MotionConfigurationBits
DINT
GSV SSV
The motion configuration bits for your axis. Bit: Meaning: 0 home direction reverse 1 home switch normally closed 2 home marker edge negative The motion fault bits for your axis. Bit: Bit Name: Meaning: 0 ACAsyncConnFault asynchronous connection fault 1 ACSyncConnFault synchronous connection fault
MotionFaultBits
DINT
AXIS structure
D-4
Variable MotionStatusBits
Description The motion status bits for your axis. Bit: Bit Name: 0 AccelStatus 1 DecelStatus 2 MoveStatus progress 3 JogStatus 4 GearingStatus axis 5 HomingStatus progress 6 StoppingStatus 7 AxisHomedStatus 8 9 10 11 12 13 Meaning: velocity increase velocity decrease move motion profile in jog motion profile in progress axis is gearing to another home motion profile in
stopping process in progress absolute position ref established PositionCamStatus Pcam in progress TimeCamStatus Tcam in progress PositionCamPendingStatusPcam profile waiting for another to end TimeCamPendingStatus Tcam profile waiting for another to end GearingLockedStatus clutching to a new gear speed PositionCamLockStatus master axis meets Pcam condition
GSV SSV GSV SSV GSV SSV GSV SSV GSV SSV
The amount of motion that is necessary to initiate the Motion Run Hookup Diagnostic (MRHD) test. The bandwidth of the servo low-pass digital output filter. The value of the maximum servo output voltage of your axis. The value used to offset the effects of the cumulative offsets of the servo module DAC output and the servo drive input. The value used to convert the output of the servo loop into the equivalent voltage to the drive.
For a velocity servo drive, the output scaling is: 10 Volts -----------------------------------------------------------------------------------------------------Speedat 10 Volts ConversionCons tan t For a torque servo drive, the output scaling is: 10 Volts ------------------------------------------------------------------------------------------------------------------------Accelerationat 10 Volts ConversionCons tan t
PositionError
REAL
GSV
* PositionErrorFaultAction
SINT
GSV SSV
The operation performed when a position error fault occurs. Value: Meaning: 0 shutdown the axis 1 disable the drive 2 stop the commanded motion 3 change the status bit only
D-5
Description The amount of position error that the servo tolerates before issuing a position error fault. The value used to achieve accurate axis positioning despite disturbances such as static friction and gravity. The sum of the position error for an axis.
You can use this value to drive the motor to where the actual position equals the command position.
GSV SSV GSV SSV GSV SSV GSV SSV GSV SSV
The amount of position error that the servo module tolerates when giving a true position locked status indication. The value the controller multiples with the position error to correct for the position error. The unity gain bandwidth that the controller uses to calculate the gains for a Motion Apply Axis Tuning (MAAT) instruction. The value used to perform the automatic unwind of the rotary axis. The type of stop to perform on your axis. Value: Meaning: 0 fast stop 1 fast shutdown 2 hard shutdown The registration position for your axis.
You can use the following equation to determine the maximum registration position error based on your axis speed: PositionUnits ( PositionUnits ) - = Accuracy MaximumSpeed ----------------------------------------------------------------------------------------------------- Seconds 0.000001 Seconds
RegistrationPosition
REAL
GSV
* ServoConfigurationBits
DINT
GSV SSV
The servo configuration bits for your servo loop. Bit: Meaning: 0 rotary axis 1 external velocity servo drive 2 encoder polarity negative 3 servo polarity negative 4 soft overtravel checking 5 position error checking 6 encoder loss fault checking 7 encoder noise fault checking 8 drive fault checking 9 drive fault normally closed
D-6
Variable ServoConfigurationUpdateBits
Description The servo configuration status bits for your servo loop. Bit: Bit Name: Meaning: 0 AxisTypeStatus axis type 1 PosUnwndStatus position unwind 2 MaxPTrvlStatus maximum positive travel 3 MaxNTrvlStatus maximum negative travel 4 PosErrorTolStatus position error tolerance 5 PosLockTolStatus position lock tolerance 6 PosPGainStatus position proportional gain 7 PosIGainStatus position integral gain 8 VelFfGainStatus velocity feedforward gain 9 AccFfGainStatus acceleration feedforward gain 10 VelPGainStatus velocity proportional gain 11 VelIGainStatus velocity integral gain 12 OutFiltBwStatus output filter bandwidth 13 OutScaleStatus output scaling 14 OutLimitStatus output limit 15 OutOffsetStatus output offset 16 FricCompStatus friction compensation 17 POtrvlFaultActStatus soft overtravel fault action 18 PosErrorFaultActStatus position error fault action 19 EncLossFaultActStatus encoder loss fault action 20 EncNsFaultActStatus encoder noise fault action 21 DriveFaultActStatus drive fault action 22 ServoConfigBitsStatus update to Servo config bits The servo event bits for your servo loop. Bit: Bit Name: Meaning: 0 WatchEvArmStatus watch event armed 1 WatchEvStatus watch event 2 RegEvArmStatus registration event armed 3 RegEvStatus registration event 4 HomeEvArmStatus home event armed 5 HomeEvStatus home event The servo fault bits for your servo loop. Bit: Bit Name: Meaning: 0 POtrvlFault positive overtravel fault 1 NOtrvlFault negative overtravel fault 2 PosErrorFault position error fault 3 EncCHALossFault encoder channel A loss fault 4 EncCHBLossFault encoder channel B loss fault 5 EncCHZLossFault encoder channel Z loss fault 6 EncNsFault encoder noise fault 7 DriveFault drive fault 8 SyncConnFault synchronous connection fault 9 HardFault servo hardware fault The output voltage level for your axis servo loop.
ServoEventBits
DINT
AXIS structure
ServoFaultBits
DINT
AXIS structure
ServoOutputLevel
REAL
GSV
D-7
Variable ServoStatusBits
Description The status bits for your servo loop. Bit: Bit Name: 0 ServoActStatus 1 DriveEnableStatus 2 OutLmtStatus 3 PosLockStatus 5 HomeSwitchStatus 13 TuneStatus 14 TestStatus 15 ShutdownStatus Meaning: servo action drive enable output limit position lock state of home input switch tuning process test diagnostic axis shutdown
ServoStatusUpdateBits
DINT
GSV SSV
The servo status update bits for your axis. Bit: Meaning: 0 position error update 1 position integrator error update 2 velocity error update 3 velocity integrator error update 4 velocity command update 5 velocity feedback update 6 servo output level update The operation performed when a soft overtravel fault occurs. Value: Meaning: 0 shutdown the axis 1 disable the drive 2 stop the commanded motion 3 change the status bit only The actual position of your axis when new commanded motion starts for the axis. You can use this value to correct for any motion occurring between the detection of an event and the action initiated by the event. The command position of your axis when new commanded motion starts for the axis. You can use this value to correct for any motion occurring between the detection of an event and the action initiated by the event. The actual position of an axis when the Motion Group Strobe Position (MGSP) instruction executes. The command position of an axis when the Motion Group Strobe Position (MGSP) instruction executes. The direction of axis travel during the Motion Run Hookup Diagnostic (MRHD) instruction as seen by the servo module. Value: Meaning: 0 negative (reverse) direction 1 positive (forward) direction The status of the last Motion Run Hookup Diagnostic (MRHD) instruction. Value: Meaning: 0 test process successful 1 test in progress 2 test process aborted by the user 3 test exceeded 2-second time-out 4 test process failed due to servo fault 5 insufficient test increment
* SoftOvertravelFaultAction
SINT
GSV SSV
StartActualPosition
REAL
GSV
StartCommandPosition
REAL
GSV
TestStatus
UINT16
GSV
D-8
Description The acceleration value measured during the last Motion Run Axis Tuning (MRAT) instruction. The acceleration time in seconds measured during the last Motion Run Axis Tuning (MRAT) instruction. The deceleration value measured during the last Motion Run Axis Tuning (MRAT) instruction. The deceleration time in seconds measured during the last Motion Run Axis Tuning (MRAT) instruction. The axis rise time in seconds measured during the last Motion Run Axis Tuning (MRAT) instruction.
This value only applies to axes that you configure to work with an external velocity servo drive.
TuneSpeedScaling
REAL
GSV
The axis drive scaling factor measured during the last Motion Run Axis Tuning (MRAT) instruction.
This value only applies to axes that you configure to work with an external velocity servo drive.
TuneStatus
UINT16
GSV
The status of the last Motion Run Axis Tuning (MRAT) instruction. Value: Meaning: 0 tune process successful 1 tuning in progress 2 tune process aborted by user 3 tune exceeded 2-second time-out 4 tune process failed due to servo fault 5 axis reached tuning travel limit 6 axis polarity set incorrectly 7 tune speed is too small to make measurements The bandwidth of the drive as calculated from the measurements made during the last Motion Run Axis Tuning (MRAT) instruction. The tuning configuration bits for your axis. Bit: Meaning: 0 tuning direction (0=forward, 1=reverse) 1 tune position error integrator 2 tune velocity error integrator 3 tune velocity feedforward 4 acceleration feedforward 5 tune velocity low-pass filter The maximum speed reached by the Motion Run Axis Tuning (MRAT) instruction. The travel limit used by the Motion Run Axis Tuning (MRAT) instruction to limit the action of the axis during tuning. The current velocity reference to the velocity servo loop for an axis. The difference between the commanded and actual velocity of a servo axis.
You can use this value to drive the motor to where the velocity feedback equals the velocity command.
TuneVelocityBandwidth TuningConfigurationBits
REAL DINT
VelocityFeedback
REAL
GSV
D-9
Description The value used to provide the velocity command output to generate the command velocity. The value that the controller multiplies with the VelocityIntegratorError value to correct the velocity error. The sum of the velocity error for a specified axis.
You can use this value to drive the motor to where the velocity feedback equals the velocity command.
* VelocityProportionalGain WatchPosition
REAL REAL
The value that the controller multiplies with the VelocityError to correct the velocity error. The watch position of your axis.
D-10
Appendix
Instruction Timing
This appendix describes motion instruction timing types. Motion instructions use three types of timing sequences
Timing type Immediate Message Process Description The instruction completes in one scan. The instruction completes over several scans because the instruction sends messages to the servo module. The instruction could take an indefinite amount of time to complete.
Immediate type motion instructions execute to completion in one scan. If the controller detects an error during the execution of these instructions, the error status bit sets and the operation ends. Examples of immediate type instructions include the:
Motion Change Dynamics (MCD) instruction Motion Group Strobe Position (MGSP) instruction
Immediate instructions work as follows: 1. When the rung that contains the motion instruction becomes true, the controller:
Sets the enable (EN) bit. Clears the done (DN) bit. Clears the error (ER) bit.
E-2
Instruction Timing
4. The next time the rung becomes false after either the .DN or .ER bit sets, the controller clears the .EN bit. 5. The controller can execute the instruction again when the rung becomes true.
.EN
.DN
.ER Scan rung true Scan rung true Scan Scan rung false rung true
Message type motion instructions send one or more messages to the servo module. Examples of message type instructions include the:
Motion Direct Drive On (MDO) instruction Motion Redefine Position (MRP) instruction
Message type instructions work as follows: 1. When the rung that contains the motion instruction becomes true, the controller:
Sets the enable (EN) bit. Clears the done (DN) bit. Clears the error (ER) bit.
2. The controller begins to execute the instruction by setting up a message request to the servo module. The remainder of the instruction executes in parallel to the program scan. 3. The controller checks if the servo module is ready to receive a new message. 4. The controller places the results of the check in the message status word of the control structure.
Publication 1756-UM006A-EN-P - April 2001
Instruction Timing
E-3
5. When the module is ready, the controller constructs and transmits the message to the module. This process may repeat several times if the instruction requires multiple messages. 6.
If the controller Does not detect an error when the instruction executes Detects an error when the instruction executes Then The controller sets the .DN bit. The controller sets the .ER bit and stores an error code in the control structure.
7. The next time the rung becomes false after either the .DN or .ER bit sets, the controller clears the .EN bit. 8. When the rung becomes true, the controller can execute the instruction again.
.EN
.DN
.ER Scan rung true Scan rung false Execution complete Scan Scan rung false rung true
Process type motion instructions initiate motion processes that can take an indefinite amount of time to complete. Examples of process type instructions include the:
Motion Arm Watch Position (MAW) instruction Motion Axis Move (MAM) instruction
E-4
Instruction Timing
Process type instructions work as follows: 1. When the rung that contains the motion instruction becomes true, the controller:
Sets the enable (.EN) bit. Clears the done (.DN) bit. Clears the error (.ER) bit. Clears the process complete (.PC) bit.
The controller detects another instance of the motion instruction The motion process reaches the point where the instruction can be executed again
Sets the .DN bit. For some process type instructions, like MAM, this will occur on the first scan. For others, like MAH, the .DN bit will not be set until the entire homing process is complete.
Sets the .DN bit. Sets the .PC bit. Clears the .IP bit.
One of the following occurs during the motion process: The motion process completes Another instance of the instruction executes Another instruction stops the motion process A motion fault stops the motion process
4. Once the initiation of the motion process completes, the program scan can continue. The remainder of the instruction and the control process continue in parallel with the program scan.
Instruction Timing
E-5
5. The next time the rung becomes false after either the .DN bit or the .ER bit sets, the controller clears the .EN bit. 6. When the rung becomes true, the instruction can execute again.
.EN
.DN
.ER
.IP
.PC Scan rung true Scan rung false Execution complete Process Scan rung false complete
E-6
Instruction Timing
Appendix
Fault Handling
Example A Motion Axis Move (MAM) instruction with a parameter out of range
Minor/ Major
Understanding Errors
Executing a motion instruction within an application program can generate errors. The MOTION_INSTRUCTION tag has a field that contains the error code. For more information on error codes for individual instructions, refer to the motion instruction chapters in the Logix5550 Controller Instruction Set Reference Manual.
Several faults can occur that are not caused by motion instructions. For example, a loss of encoder feedback or actual position exceeding an overtravel limit will cause faults. The motion faults are considered Type 11 faults with error codes from 1 to 32. For more information about motion error codes, refer to Handling Controller Faults in the Logix5550 Controller User Manual. TIP You can configure a fault as either minor (non major) or major by using the Axis Wizard-Group window.
F-2
Fault Handling
For more information about handling faults, see Handling Controller Faults in the Logix5550 Controller User Manual, publication 1756-6.5.12.
Index
Pinouts B-9 Wiring Diagram B-9 1394C-SJT05/10/22-D Digital Servo Drive Overview 6-3 1398-CFLAExx Cable Diagram B-7 Pinouts B-7 1756-M02AE servo module 1-1 Adding to a program 2-1, 5-1 Additional modules and axes 2-18 Auto tuning 2-18 Block diagrams Torque servo drive B-2 Velocity servo drive B-3 Coarse update rate calculations A-3 Configuring a motion axis 2-1 Features 1-2 Hookup diagnostics 2-18 Loop and interconnect diagrams B-1 Specifications A-1 Troubleshooting 8-1 Wiring diagrams 1394 drive B-8 24V registration sensor B-10 5V registration sensor B-10 Home limit switch B-11 OK contacts B-11 Servo module RTB B-4 Ultra 100 drive B-5 Ultra 200 drive B-6 1756-M08SE 3-1 Adding the module 3-1 configuring module 3-1 General Tab Description 3-5 Electronic Keying 3-6 Compatible Module 3-6 Disable Keying 3-6 Exact Match 3-6 Name 3-5 Revision 3-6 Slot 3-5 Type 3-5 Vendor 3-5 Motion Module Overview 3-4 Properties SERCOS Interface Info Tab 3-8 SERCOS Interface Info Tab Fault Type 3-9 Refresh 3-9
Publication 1756-UM006A-EN-P - April 2001
Symbols
.ERR C-12 .SEGMENT C-13 .STATE C-13 .STATUS C-13
Numerics
1394C Drive module Associated Axes Tab 6-10 New Axis button 6-11 Node X0 6-10 Node X1 6-10 Node X2 6-10 Node X3 6-11 Connection Tab 6-7 Inhibit Module checkbox 6-8 Major Fault on Controller if Connection Fails checkbox 6-9 Module Fault 6-9 Connection Request Error 6-9 Electronic Keying Mismatch 6-9 Module Configuration Invalid 6-9 Service Request Error 6-9 Requested packet Interval 6-7 General Tab 6-4 Base Node 6-5 Description 6-5 Electronic Keying 6-6 Compatible Module 6-6 Disable Keying 6-6 Exact Match 6-6 Name 6-5 Revision 6-5 Type 6-5 Vendor 6-5 Module Info tab 6-12 (16#xxxx) unknown 6-14 Configured 6-14 Internal State Status 6-14 Major/Minor Fault Status 6-13 Module Identity 6-15 Owned 6-14 Product Name 6-13 Refresh 6-15 Reset Module 6-15 Power Tab 6-11 Bus Regulator ID 6-11 1394-CFLAExx Cable
I-2
Ring Comm. Phase 3-9 SERCOS Interface Tab Cycle Time 3-8 Data Rate 3-8 Transmit Power 3-8 1756-M08SE Properties General Tab 3-4 SERCOS Interface Tab 3-7 1756-M08SE SERCOS interface module 1-1
A
Adding the 1756-M02AE Module 2-1 New Module 2-3 Adding to a program A motion module 2-15-55 Assigning an axis 5-4 alias tag 5-2 Application program Developing 1-4, ??2-1, 5-54?? Downloading 2-19 Example 5-55 Assigning Additional Motion Axes 5-54 Assigning in an application program Additional modules 2-18 Auto tuning Starting 2-25 Tune bandwidth window 2-25 AXIS control structure C-1 Axis Properties General Tab 5-5 Homing Tab 5-22 Tune Bandwidth Dialog 5-30 Tune Tab 5-29 Units Tab 5-12 Axis Properties window 2-20 Gains 2-27 Hookup 2-21, 2-23 Tune servo 2-24
consumed tag 5-2 Control structures C-1 AXIS C-1 MOTION_GROUP C-7 MOTION_INSTRUCTION C-9 ControlLogix motion control 1-1 Components 1-2 Features 1-2 Course update rate calculations A-3 Action timing A-3 Calculation worksheet A-5 Sample calculation A-6
D
Diagrams Block B-1 Wiring B-4 Downloading a program 2-18, 2-19 DRIVE LED indicator 8-2
E
Editing Your Motion Module Settings 2-5 Entering Tag Information 5-2 Error codes C-12 Errors F-1 Execution status C-13
F
Fault handling F-1 Errors F-1 Minor/major faults F-1 Motion faults F-1 Faults F-1 Types 1-5 FDBK LED indicator 8-2
G
GSV instruction D-1 Reading status and configuration parameters 1-5
B
base tag 5-2 Block diagrams for a 1756-M02AE module B-1 With a torque servo drive B-2 With a velocity servo drive B-3
I
Immediate instruction timing E-1
C
Configuring a 1394C-SJT05/10/22-D Digital Servo Drive 6-1 Configuring a motion axis 5-4
Publication 1756-UM006A-EN-P - April 2001
L
Logix5550 controller 1-1 Features 1-2
I-3
M
Major faults F-1 Marker test Starting 2-23 Message instruction timing E-2 Message status C-13 Minor faults F-1 Module Properties Backplane Tab 2-16 Connection Tab 2-8 General Tab 2-6 Module Info Tab 2-12 Module Properties window 2-20 Motion attributes D-1 Changing configuration parameters 1-5 Motion instance variables D-1 Understanding status and configuration parameters 1-5 Motion configuration instructions 7-4 Motion Apply Axis Tuning (MAAT) 7-4 Motion Apply Hookup Diagnostic (MAHD) 7-5 Motion Run Axis Tuning (MRAT) 7-4 Motion Run Hookup Diagnostic (MRHD) 7-5 Motion event instructions 7-3 Motion Arm Output Cam (MAOC) 7-4 Motion Arm Registration (MAR) 7-4 Motion Arm Watch Position (MAW) 7-4 Motion Disarm Output Cam (MDOC) 7-4 Motion Disarm Registration (MDR) 7-4 Motion Disarm Watch Position (MDW) 7-4 Motion group instructions 7-3 Motion Group Programmed Stop (MGPS) 7-3 Motion Group Shutdown (MGSD) 7-3 Motion Group Shutdown Reset (MGSR) 7-3 Motion Group Stop (MGS) 7-3 Motion Group Strobe Position (MGSP) 7-3 Motion instance variables D-1 Motion instructions 7-1 Motion Apply Axis Tuning (MAAT) 7-4 Motion Apply Hookup Diagnostic (MAHD) 7-5 Motion Arm Output Cam (MAOC) 7-4 Motion Arm Registration (MAR) 7-4 Motion Arm Watch Position (MAW) 7-4 Motion Axis Fault Reset (MAFR) 7-2 Motion Axis Gear (MAG) 7-2 Motion Axis Home (MAH) 7-2 Motion Axis Jog (MAJ) 7-2 Motion Axis Move (MAM) 7-2 Motion Axis Position Cam (MAPC) 7-3 Motion Axis Shutdown (MASD) 7-2
Motion Axis Shutdown Reset (MASR) 7-2 Motion Axis Stop (MAS) 7-2 Motion Axis Time Cam (MATC) 7-3 Motion Calculate Cam Profile (MCCP) 7-3 Motion Change Dynamics (MCD) 7-2 Motion configuration instructions 7-4 Motion Direct Drive Off (MDF) 7-2 Motion Direct Drive On (MDO) 7-2 Motion Disarm Output Cam (MDOC) 7-4 Motion Disarm Registration (MDR) 7-4 Motion Disarm Watch Position (MDW) 7-4 Motion event instructions 7-3 Motion group instructions 7-3 Motion Group Programmed Stop (MGPS) 7-3 Motion Group Shutdown (MGSD) 7-3 Motion Group Shutdown Reset (MGSR) 7-3 Motion Group Stop (MGS) 7-3 Motion Group Strobe Position (MGSP) 7-3 Motion move instructions 7-2 Motion Redefine Position (MRP) 7-2 Motion Run Axis Tuning (MRAT) 7-4 Motion Run Hookup Diagnostic (MRHD) 7-5 Motion Servo Off (MSF) 7-1 Motion Servo On (MSO) 7-1 Motion state instructions 7-1 Timing E-1 Immediate E-1 Message E-2 Process E-3 Motion move instructions 7-2 Motion Axis Gear (MAG) 7-2 Motion Axis Home (MAH) 7-2 Motion Axis Jog (MAJ) 7-2 Motion Axis Move (MAM) 7-2 Motion Axis Stop (MAS) 7-2 Motion Axis Time Cam (MATC) 7-3 Motion Calculate Cam Profile (MCCP) 7-3 Motion Change Dynamics (MCD) 7-2 Motion Redefine Position (MAPC) 7-3 Motion Redefine Position (MRP) 7-2 Motion state instructions 7-1 Motion Axis Fault Reset (MAFR) 7-2 Motion Axis Shutdown (MASD) 7-2 Motion Axis Shutdown Reset (MASR) 7-2 Motion Direct Drive Off (MDF) 7-2 Motion Direct Drive On (MDO) 7-2 Motion Servo Off (MSF) 7-1 Motion Servo On (MSO) 7-1 MOTION_GROUP control structure C-7
I-4
MOTION_INSTRUCTION control structure C-9 Understanding 1-4 Motor/encoder test Starting 2-21
S
Select Module Type window 2-2 Servo Configuration Update Status Bits attributes C-6 Specifications A-1 SSV instruction D-1 Changing configuration parameters 1-5 structures CAM C-13 CAM_PROFILE C-14 support On the Web P-3
N
Naming & Configuring Motion Axes 5-1 Naming an Axis 5-1 New Module window 2-4 New Tag window MOTION_GROUP 5-8
O
OK LED indicator 8-1 Output Cam Timing A-8 1756-L50 Controller A-9
T
Tags New Tag window MOTION_GROUP 5-8 Troubleshooting 8-1 DRIVE LED indicator 8-2 FDBK LED indicator 8-2 OK LED indicator 8-1
P
Performance guidelines A-1 Process instruction timing E-3 product support, local telephone number P-3 Profile Segment C-13 Proportional (Velocity) Gain 5-38
W
Windows Axis properties 2-20 Module properties 2-20 New module 2-4 New tag 5-8 Select module type 2-2 Tune bandwidth 2-25 Wiring diagrams B-4 1394 drive B-8 24V registration sensor B-10 5V registration sensor B-10 Home limit switch B-11 OK contacts B-11 Servo module RTB B-4 Ultra 100 drive B-5 Ultra 200 drive B-6 World Wide Web site P-3
R
Rockwell Automation support Technical product assistance P-3 RSLogix 5000 programming software 1-1 Application program Developing 5-54 Example 5-55 Control structures C-1 Downloading an application program 2-18, 2-19 Fault handling F-1 Features 1-3 GSV/SSV instructions D-1 Instruction timing E-1 Motion attributes D-1 Motion instructions 7-1 Running Hookup Diagnostics and Auto Tuning 5-54
Back Cover
PN 957293-35
2000 Rockwell International Corporation. Printed in the U.S.A.