The text of a manual · part 12 of 30
SERCOS and Analog Motion Configuration and Startup User Manual, pages 111 to 120
Pages 111 to 120 of 297
The original document is the PDF (13 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Allen-Bradley 1756-M08SE
Page 111
Chapter 5
Home an axis
Introduction for Home an Axis
Homing puts the equipment at a starting point for operation. This starting point is called the home position. Typically, equipment is homed when it is reset for operation. Three types of homing are: •
Active homing
•
Passive homing
•
Absolute homing
Active homing When the axis Homing Mode is configured as Active, the physical axis is first activated for servo operation. The Home operation does not cancel other motion, but errors, Err=22. Home an axis using the configured Home Sequence, which may be Immediate, Switch, Marker, Switch-Marker, or Torque-Level homing. The Home Sequences result in the axis being jogged in the configured Home Direction. Using bidirectional homing, after the position is re-defined based on detection of the home event, the axis is automatically moved to the configured Home Position. Important:
When unidirectional active homing is performed on a rotary axis and the Home Offset value is less than the deceleration distance when the home event is detected, it adds one or more revolutions to the move distance.
Passive homing When the axis Homing Mode is configured as Passive, the MAH instruction redefines the actual position of a physical axis on the next occurrence of the encoder marker, providing that Sequence is set to Marker. Immediate, Switch, SwitchMarker and Torque Level homing is also allowed. Passive homing is most commonly used to calibrate Feedback Only axes to their markers, but can also be used on Servo axes. Passive homing is identical to active homing to an encoder marker except that the Home command does not command any axis motion. Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018
111
Page 112
Chapter 5
Home an axis
After initiating passive homing, the axis must be moved past the encoder marker for the homing sequence to complete properly. For closed-loop Servo axes, this may be accomplished with a MAM or MAJ instruction. For physical Feedback Only axes, motion cannot be commanded directly by the motion controller, and must be accomplished through other means. Absolute homing If the motion axis hardware supports an absolute feedback device, consider using the Absolute Homing Mode. The only Home Sequence for an absolute Homing Mode is Immediate. In this case, 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. Before execution of the absolute homing process via the MAH instruction, the axis must be in the Axis Ready state with the servo loop disabled. To successfully execute a MAH instruction on an axis configured for Active homing mode, the targeted axis must be configured as a Servo Axis Type. To successfully execute an MAH instruction, the targeted axis must be configured as a Servo or Feedback Only axis. If any of these conditions are not met, the instruction errors. Important:
When the MAH instruction is initially executed, the In process (.IP) bit is set and the Process Complete (.PC) bit is cleared. The MAH instruction execution may take multiple scans to execute because it requires transmission of multiple messages to the motion module. Thus, the Done (.DN) bit is not set until after these messages are successfully transmitted. The .IP bit is cleared and the .PC bit is only set if the final axis position = the Home position.
This is a transitional instruction: •
In relay ladder, toggle the rung from cleared to set each time the instruction should execute.
•
In structured text, condition the instruction so that it only executes on a transition.
See also Motion Axis Attributes on page 179
Guidelines for homing
This table provides homing guidelines and descriptions.
Guideline
Description
To move an axis to the home position, use Active homing.
Active homing turns on the servo loop and moves the axis to the home position. Active homing also: • Errors if there is any other motion on the axis. Does not stop other motion. • Uses a trapezoidal profile.
112
Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018
Page 113
Home an axis
Chapter 5
Guideline
Description
For a Feedback-only device, use Passive homing.
Passive homing does not move the axis. • Use passive homing to calibrate a Feedback-only axis to its marker. • If using passive homing on a servo axis, turn on the servo loop and use a move instruction to move the axis.
If using an absolute feedback device, consider Absolute homing.
If the motion axis hardware supports an absolute feedback device, Absolute Homing Mode may be used. The only valid Home Sequence for Absolute Homing Mode is Immediate. In this case, 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. Before execution of the absolute homing process via the MAH instruction, the axis must be in the Axis Ready state with the servo loop disabled.
For single-turn equipment, consider homing to a marker.
The marker homing sequence is useful for single-turn rotary and linear encoder applications because these applications have only one encoder marker for full axis travel.
For multi-turn equipment, home to a switch or switch These homing sequences use a home limit switch to define the home position. and marker. • Requires a home limit switch if the axis moves multiple revolutions when it runs. Otherwise the controller cannot tell which marker pulse to use. • For the most precise homing, use the switch and marker. If the equipment cannot back up, use unidirectional homing.
With unidirectional homing, the axis does not reverse direction to move to the Home Position. To help insure that the Home operation is complete, consider using an offset. If these are not done, the axis position is still correct and accurate. • Use a Home Offset that is in the same direction as the Home Direction. • Use a Home Offset that is greater than the deceleration distance. • If the Home Offset is less than the deceleration distance:
Choose a starting direction for the homing sequence.
•
The axis simply slows to a stop. The axis does not reverse direction to move to the Home Position. In this case, the MAH instruction does not set the PC bit.
•
On a rotary axis, the controller adds 1 or more revolutions to the move distance. This makes sure that the move to the Home Position is unidirectional.
Which direction should the homing sequence start in? • Positive direction: Choose a Forward direction. • Negative direction: Choose a Negative direction.
Examples
This table provides active homing examples:
Active homing examples Sequence
Description
Active immediate home
This sequence sets the axis position to the Home Position without moving the axis. If the axis is not enabled, this sequence enables it. The feedback is working, therefore enabled.
Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018
113
Page 114
Chapter 5
Home an axis
Sequence
Description
Active home to switch in forward bidirectional
The switch homing sequence is useful for multi-turn rotary and linear applications. Ensure that the home switch is encountered in the direction of the home. If the axis is ON the home limit switch, the axis can be past the switch, but not on the switch.
These steps occur during the sequence. 1. The axis moves in the Home Direction at the Home Speed to the home limit switch and decelerates to a stop (using the configured Maximum Deceleration Rate). The axis does not stop immediately. 2. If the axis stopped at the Home Limit Switch, at position 2, when the sequence starts the axis would be at the home position. The axis reverses direction and moves at the Home Return Speed until it clears the home limit switch and then stops. 3. The axis moves back to the home limit switch or moves to the Offset position. The axis moves at the Home Return Speed. If the axis is a Rotary Axis, it moves on the shortest path to the Home Position (no more than ½ revolution). If the axis is past the home limit switch at the start of the homing sequence, the axis reverses direction and starts the return leg of the homing sequence. Again, the axis decelerates to a stop. Use a Home Return Speed that is slower than the Home Speed to increase the homing accuracy. The accuracy of this sequence depends on the return speed and the delay to detect the transition of the home limit switch. Uncertainty = Home Return Speed x delay to detect the home limit switch. Example: Suppose the Home Return Speed is 0.1 in./s and it takes 10 ms to detect the home limit switch. Uncertainty = 0.1 in./s x 0.01 s = 0.001 in. The mechanical uncertainty of the home limit switch also affects the homing accuracy.
114
Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018
Page 115
Home an axis
Chapter 5
Sequence
Description
Active home to marker in forward bidirectional
The marker homing sequence is useful for single-turn rotary and linear encoder applications because these applications have only one encoder marker for full axis travel.
These steps occur during the sequence. 1. The axis moves in the Home Direction at the Home Speed to the marker and decelerates to a stop. 2. The axis moves back to the marker or moves to the Offset position. The axis moves at the Home Return Speed. If the axis is a Rotary Axis, it moves along the shortest path to the Home Position (no more than ½ revolution). The accuracy of this homing sequence depends on the homing speed and the delay to detect the marker transition. Uncertainty = Home Speed x delay to detect the marker. Example: Suppose the Home Speed is 1 in./s and it takes 1 µs to detect the marker. Uncertainty = 1 In./s x 0.000001 s = 0.000001 in. Active home to switch and marker in forward bidirectional
This is the most precise active homing sequence available.
These steps occur during the sequence. 1. The axis moves in the Home Direction at the Home Speed to the home limit switch and decelerates to a stop. 2. The axis reverses direction and moves at the Home Return Speed until the axis clears the home limit switch. 3. The axis keeps moving at the Home Return Speed until it gets to the marker. 4. The axis moves back to the marker or moves to the Offset position. The axis moves at the Home Return Speed. If the axis is a Rotary Axis, it moves along the shortest path to the Home Position (no more than ½ revolution). If the axis is ON the home limit switch at the start of the homing sequence, the axis reverses direction and starts the return leg of the homing sequence. Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018
115
Page 116
Chapter 5
Home an axis
Sequence
Description
Active home to switch in forward unidirectional
This active homing sequence is useful when an encoder marker is not available and unidirectional motion is required or proximity switch is being used. These steps occur during the sequence: 1. The axis moves in the Home Direction at the Home Speed to the home limit switch. 2. A decel position is calculated using the Home Offset and the decel distance. The axis keeps moving to the decel position and then decelerates to a stop. 3. The axis moves to the Home Offset position if the axis is in the same direction as the Home Direction.
Active home to marker in forward unidirectional
•
When the position mode is linear, the axis decelerates to a stop. May not be at the home position but are correctly referenced to the home position.
•
When the position mode is Rotary, the rotary turns as many times that it needs to decelerate and finish at the home position.
This active homing sequence is useful for single-turn rotary and linear encoder applications when unidirectional motion is required. These steps occur during the sequence. 1. The axis moves in the Home Direction at the Home Speed to the marker. 2. If the axis is linear, it decelerates to a stop, unless the home offset is greater than the distance required to decelerate; then the home offset is applied. If the axis is rotary, it adds as many revolutions as necessary so it decelerates and stops at the home position. The axis moves to the Home Offset position if it is in the same direction as the Home Direction.
Active home to switch and marker in forward unidirectional
This active homing sequence is useful for multi-turn rotary applications when unidirectional motion is required. These steps occur during the sequence. 1. The axis moves in the Home Direction at the Home Speed to the home limit switch. 2. The axis keeps moving at the Home Speed until it gets to the marker. 3. If the axis is linear, it decelerates to a stop, unless the home offset is greater than the distance required to decelerate; then the home offset is applied. If the axis is rotary, it adds as many revolutions as necessary so it decelerates and stops at the home position.
116
Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018
Page 117
Home an axis
Chapter 5
Sequence
Description
Active Home to Torque
The Home to Torque Level sequence is a type of homing used when a hard stop is used as the home position, as in a linear actuator. The occurrence of the hard stop is detected by the drive when the output torque to the motor reaches or exceeds the torque level specified by the user. Since the home to torque level sequence relies on the mechanical end of travel for operation, Unidirectional homing is not possible. Only Forward Bidirectional and Reverse Bidirectional are allowed. In Torque Level homing, the torque event is the trigger. The motion planner decelerates the axis to a stop and reverses direction. The torque event is usually some type of hard stop. Because of this, the physical axis cannot move, but the position command is changing. This causes the Position error to increase. If the distance required to decelerate is greater than the Position error Tolerance, an Excessive Position error exception can occur, possibly canceling the home operation. A delay filter is implemented in the drive to reduce any false/nuisance triggers when there is a spike in the torque feedback upon enabling or jogging the motor under load. Torque Level homing is very similar to Home Switch homing, with the exception that the torque level is used instead of the home switch input. This graphic depicts the Position/Velocity for Torque Level Homing.
Torque Level-Marker homing is very similar to Home Switch-Marker homing, with the exception that the torque level is used instead of the home switch input. This graphic depicts the Position/Velocity for Torque Level-Marker Homing.
Passive homing examples
This table provides passive homing examples.
Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018
117
Page 118
Chapter 5
Home an axis
Sequence
Description
Passive Immediate Home
This is the simplest passive homing sequence type. When this sequence is performed, the controller immediately assigns the Home Position to the current axis actual position. This homing sequence produces no axis motion.
Passive Home with Switch
This passive homing sequence is useful when an encoder marker is not available or a proximity switch is being used. When this sequence is performed in the Passive Homing Mode, an external agent moves the axis until the home switch is detected. The position is preset to the Home position plus Offset Value at the moment when the switch is hit. Set the Offset value to 0 if no Home Offset offset is wanted.
Passive Home with Marker
This passive homing sequence is useful for single-turn rotary and linear encoder applications. When this sequence is performed in the Passive Homing Mode, an external agent moves the axis until the marker is detected. The position is preset to the Home position plus Offset Value at the moment when the switch is hit. Set the Offset value to 0 if no Home Offset offset is wanted.
Passive Home with Switch then Marker
This passive homing sequence is useful for multi-turn rotary applications. When this sequence is performed in the Passive Homing Mode, an external agent moves the axis until the home switch and then the first encoder marker is detected. The position is preset to the Home position plus Offset Value at the moment when the switch is hit. Set the Offset value to 0 if no Home Offset offset is wanted.
Homed Status
The Homed Status bit is set by the MAH instruction upon successful completion of the configured homing sequence. This bit indicates that an absolute machine reference position was established. When this bit is set, operations that require a machine reference, such as Software Overtravel checking, can be meaningfully enabled. For CIP Drive axis data types, the Homed Status bit clears under this condition: •
MRP instruction
For non-CIP Drive axis data types, the Homed Status bit is cleared under these conditions:
Feedback Integrity
118
•
Download
•
Control power cycle
•
Re-connection to Motion Module
•
Feedback Loss Fault
•
Shutdown
When set, this bit indicates that the feedback device is accurately reflecting axis position. The bit is set at power-up assuming that the feedback device passes any power-up self test required. If during operation, a feedback exception occurs that could impact the fidelity of axis position, the bit immediately clears. The bit remains clear until a fault reset is executed by the drive or the drive is power cycled. The Feedback Integrity bit behavior applies to absolute and incremental feedback device operation. Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018
Page 119
Appendix A
Axis properties
Introduction for Axis Properties
This appendix describes the properties of an axis. For a description of the Axis_CIP_Drive properties, see Integrated Motion on the Ethernet/IP Network Configuration and Startup, publication MOTION-UM003.
General tab – AXIS_SERVO
This General dialog box shows an AXIS_SERVO data type.
Item
Description
Axis Configuration
Selects and displays the intended use of the axis.
Motion Group
Feedback Only
If the axis is used only to display position information from the feedback interface. This selection minimizes the display of axis properties tabs and parameters. The tabs Servo, Tune, Dynamics, Gains, Output, Limits, and Offset do not appear.
Servo
If the axis is used for full servo operation. This selection maximizes the display of axis properties tabs and parameters.
Selects and displays the Motion Group to which the axis is associated. An axis assigned to a Motion Group appears in the Motion Groups branch of the Controller Organizer, under the selected Motion Group sub-branch. Selecting <none> terminates the Motion Group association, and moves the axis to the Ungrouped Axes sub-folder of the Motion Groups branch.
The Associated Module selection (selected on the General tab) determines available catalog numbers. 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
Displays a module icon and the name of the SERCOS drive to which the axis is associated. Displays <none> if the axis is not associated with any drive. If the associated drive is a Kinetix Safety drive, a portion of the module icon is red to signify its safety significance.
Channel
Selects and displays the 1756-M02AE motion module channel, 0 or 1, to which the axis is assigned. Disabled when the axis is not associated with any motion module.
Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018
119
Page 120
Appendix A
Axis properties
This dialog box shows the General tab for an AXIS_SERVO DRIVE data type.
General tab AXIS_SERVO_DRIVE
Item
Description
Axis Configuration
Selects and displays the intended use of the axis. Feedback Only
If the axis is used only to display position information from the feedback interface. This selection minimizes the display of axis properties tabs and parameters. The tabs Tune, Dynamics, Gains, Output, Limits, and Offset do not appear.
Servo
If the axis is used for full servo operation. This selection maximizes the display of axis properties tabs and parameters.
Motion Group
Selects and displays the Motion Group to which the axis is associated. An axis assigned to a Motion Group appears in the Motion Groups folder of the Controller Organizer, under the selected Motion Group sub-branch. Selecting <none> terminates the Motion Group association, and moves the axis to the Ungrouped Axes sub-folder of the Motion Groups folder.
Module
Selects and displays the name of the SERCOS drive to which the axis is associated. Displays <none> if the axis is not associated with any drive.
Module Type
Displays a module icon and the name of the SERCOS drive to which the axis is associated. Displays <none> if the axis is not associated with any drive. If the associated drive is a Kinetix Safety drive, a portion of the module icon is red to signify its safety significance. A sample of the module icon (from the I/O configuration folder in Logix Designer application) for: • Kinetix 6000 Advanced Safety Drive (S1) • Kinetix 6000 Enhanced Safe Torque-Off Drive (S0)
Node
120
Displays the base node of the associated SERCOS drive. Unavailable when the axis is not associated with any drive.
Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018