The text of a manual · part 21 of 30
SERCOS and Analog Motion Configuration and Startup User Manual, pages 201 to 210
Pages 201 to 210 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-M16SE/A
Page 201
Motion axis attributes
Appendix B
Attribute
Axis Type
Data Type
Access
Description
Controlled By Transform Status
AXIS_CONSUMED AXIS_GENERIC AXIS_SERVO AXIS_SERVO_DRIVE AXIS_VIRTUAL
BOOL
Tag
If the bit is: • ON, A transform is moving the axis.
Conversion Constant
AXIS_CONSUMED AXIS_GENERIC AXIS_SERVO AXIS_SERVO_DRIVE AXIS_VIRTUAL
REAL
GSV SSV
Counts / Position Unit Range = 0.1 - 1e12 Axis_Servo Default = 8000 Axis_Servo_Drive Default = 2000000 To allow axis position to be displayed and motion to be programmed in the position units specified by the Position Unit string attribute, a Conversion Constant must be established for each axis. The Conversion Constant, sometimes known as the K constant, allows the Axis Object to convert the axis position units into feedback counts and vice versa. Specifically, K is the number of feedback counts per Position Unit. The 1756-M02AE encoder based servo module uses 4X encoder feedback decoding (both edges of channel A and B are counted). The count direction is determined from the direction of the edge and the state of the opposite channel. Channel A leads channel B for increasing count. This is the most commonly used decode mode with incremental encoders, since it provides the highest resolution. For example, suppose this servo axis utilizes a 1000 line encoder in a motor coupled directly to a 5 pitch lead screw (5 turns per inch). With a user defined Position Unit of Inches, the conversion constant is calculated as shown below: K = 1000 Lines/Rev * 4 Counts/Line * 5 Revs/Inch = 20,000 Counts/Inch. ATTENTION: If ‘Conversion Constant’ is changed, it invalidates the attributes that can be set with ‘Position Unit’ conversions in ‘Description’ column. To be valid, the ‘Conversion Constant’ must be set to the desired value before setting (including defaulting) any of the affected attributes.
Coordinated Motion Status
AXIS_CONSUMED AXIS_GENERIC AXIS_SERVO AXIS_SERVO_DRIVE AXIS_VIRTUAL
DINT
GSV Tag
Set if any coordinated motion profile is currently active upon the axis. It is cleared as soon as Coordinated Motion is complete or stopped.
Damping Factor
AXIS_SERVO AXIS_SERVO_DRIVE
REAL
GSV SSV
The Damping Factor attribute value is used in calculating the maximum Position Servo Bandwidth (see below) during execution of the MRAT (Motion Run Axis Tune) instruction. In general, the Damping Factor attribute controls the dynamic response of the servo axis. When gains are tuned using a small damping factor (like 0.7), a step response test performed on the axis would demonstrate under-damped behavior with velocity overshoot. A gain set generated using a larger damping factor, like 1.0, produces a system step response that has no overshoot, but has a significantly lower servo bandwidth. The default value for the Damping Factor of 0.8 should work fine for most applications.
• OFF, A transform isn’t moving the axis.
Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018
201
Page 202
Appendix B
Motion axis attributes
Attribute
Axis Type
Data Type
Access
Description
DC Bus Voltage
AXIS_SERVO_DRIVE
DINT
GSV Tag
Important: To use this attribute, choose it as one of the attributes for Real Time Axis Information for the axis. Otherwise, the right value does not appear as the axis runs. See Axis Info Select 1. Volts This parameter is the present voltage on the DC Bus of the drive.
Decel Status
AXIS_CONSUMED AXIS_GENERIC AXIS_SERVO AXIS_SERVO_DRIVE AXIS_VIRTUAL
BOOL
Tag
Set if the axis is currently being commanded to decelerate. Use the Accel Status bit and the Decel Status bit to see if the axis is accelerating or decelerating. If both bits are off, then the axis is moving at a steady speed or is at rest.
Direct Drive Ramp Rate AXIS_SERVO
REAL
GSV SSV
Volts/Second The Direct Drive Ramp Rate attribute contains a slew rate for changing the output voltage when the Direct Drive On (MDO) instruction is executed. A Direct Drive Ramp Rate of 0, disables the output ramp rate limiter, allowing the Direct Drive On voltage to be applied directly.
Directional Scaling Ratio
AXIS_SERVO
REAL
GSV SSV
In some cases, the speed or velocity scaling of the external drive actuator may be directionally dependent. This non-linearity can be substantial in hydraulic applications. To compensate for this behavior, the Directional Scaling Ratio attribute can be applied to the Velocity Scaling based on the sign of the Servo Output. Specifically, the Velocity Scaling value is scaled by the Directional Scaling Ratio when the sign of the Servo Output is positive. Thus, the Directional Scaling Ratio is the ratio of the Velocity Scaling in the positive direction (positive servo output) to the Velocity Scaling in the negative direction (negative servo output). The value for the Directional Scaling ratio can be empirically determined by running the auto-tune procedure in the positive direction and then in the negative direction and calculating the ratio of the resulting Velocity/Torque Scaling values.
Drive Axis ID
AXIS_SERVO_DRIVE
INT
GSV
Product Code of Drive Amplifier The Drive ID attribute contains the ASA Product Code of the drive amplifier associated with the axis. If the Product Code does not match that of the actual drive amplifier, an error is generated during the configuration process.
Drive Capacity
AXIS_SERVO_DRIVE
REAL
GSV Tag
Important: To use this attribute, choose it as one of the attributes for Real Time Axis Information for the axis. Otherwise, the right value is not seen as the axis runs. See Axis Info Select 1. The present utilization of drive capacity as a percent of rated capacity.
Drive Control Voltage Fault
AXIS_SERVO_DRIVE
BOOL
Tag
Set when the power supply voltages associated with the drive circuitry fall outside of acceptable limits.
Drive Cooling Fault
AXIS_SERVO_DRIVE
BOOL
Tag
Set when the ambient temperature surrounding the drive’s control circuitry temperature exceeds the drive ambient shut-down temperature.
202
Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018
Page 203
Motion axis attributes
Appendix B
Attribute
Axis Type
Data Type
Access
Description
Drive Enable Input Fault
AXIS_SERVO_DRIVE
BOOL
Tag
This fault would be declared if one of two possible conditions occur: 1) If an attempt is made to enable the axis (typically via MSO or MAH instruction) while the Drive Enable Input is inactive. 2) If the Drive Enable Input transitions from active to inactive while the axis is enabled. This fault can only occur when the Drive Enable Input Fault Handling bit is set in the Fault Configuration Bits attribute. If the Drive Enable Input Fault Action is set for Stop Command and the axis is stopped as a result of a Drive Enable Input Fault, the faulted axis cannot be moved until the fault is cleared. Any attempt to move the axis in the faulted state using a motion instruction results in an instruction error. If the Drive Enable Fault Action setting is Status Only or Stop Command and an attempt is made to enable the axis (typically via MSO or MAH instruction) while the Drive Enable Input is active, the axis enables in the faulted state indicating a Drive Enable Input Fault. When the Drive Enable Fault Action setting is Stop Command, instructions that enable the axis and initiate motion (MAH, MRAT, MAHD) abort the motion process leaving the instruction with the IP and PC bits clear. This fault condition is latched and requires execution of an explicit MAFR (Motion Axis Fault Reset) or MASR (Motion Axis Shutdown Reset) instruction to clear. Attempting to clear the fault while the drive enable input is still inactive and the drive is enabled does not work. However, the drive enable input fault may be cleared with the drive enable input inactive if the drive is disabled. If the Drive Enable Input Checking bit is clear, then the state of the Drive Enable Input is irrelevant. So, no fault would be declared in any of the above conditions.
Drive Enable Input Fault Action
AXIS_SERVO_DRIVE
SINT
GSV SSV
Drive Enable Status
AXIS_CONSUMED AXIS_GENERIC AXIS_SERVO AXIS_SERVO_DRIVE AXIS_VIRTUAL
BOOL
Tag
AXIS_SERVO If this bit is: • ON, The Drive Enable output of the axis is on. • OFF, The Drive Enable output of the axis is off. AXIS_SERVO_DRIVE If this bit is: • ON, The drive’s power structure is active. • OFF, The drive’s power structure is not active. AXIS_VIRTUAL • Bit is OFF.
Drive Fault
AXIS_SERVO
BOOL
Tag
If this bit is set, then the external servo drive detected a fault and communicated the existence of this fault to the servo module via the Drive Fault input. This fault condition is latched and requires execution of an explicit MAFR (Motion Axis Fault Reset) or MASR (Motion Axis Shutdown Reset) instruction to clear.
Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018
203
Page 204
Appendix B
Motion axis attributes
Attribute
Axis Type
Data Type
Access
Description
Drive Fault
AXIS_SERVO_DRIVE
DINT
Tag
Allows access to all drive fault bits in one 32-bit word. This tag is the same as the Drive Fault Bits attribute.
Should any of these faults give the controller a major fault? • YES - Set the General Fault Type of the motion group = Major Fault. • NO - Write code to handle these faults. Drive Fault Action
AXIS_SERVO
SINT
GSV SSV
This controller attribute is also replicated in the motion module.
204
Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018
Page 205
Motion axis attributes
Appendix B
Attribute
Axis Type
Data Type
Access
Description
Drive Fault Bits
AXIS_SERVO_DRIVE
DINT
GSV
Allows access to all drive fault bits in one 32-bit word. This attribute is the same as the Drive Fault tag.
Should any of these faults to give the controller a major fault? • YES, Set the General Fault Type of the motion group = Major Fault. • NO, Write code to handle these faults. Drive Fault Input Status AXIS_SERVO
BOOL
Tag
Digital output from the drive that shows if there is a fault. If this bit is: • ON, The drive faulted. • OFF, The drive does not have a fault.
Drive Hard Fault
AXIS_SERVO_DRIVE
BOOL
Tag
Set when the drive detects a serious hardware fault.
Drive Model Time Constant
AXIS_SERVO AXIS_SERVO_DRIVE
REAL
GSV SSV
Seconds The value for the Drive Model Time Constant represents the lumped model time constant for the drive’s current loop used by the MRAT instruction to calculate the Maximum Velocity and Position Servo Bandwidth values. The Drive Model Time Constant is the sum of the drive’s current loop time constant, the feedback sample period, and the time constant associated with the velocity feedback filter. This value is set to a default value when configuring the axis.
Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018
205
Page 206
Appendix B
Motion axis attributes
Attribute
Axis Type
Data Type
Access
Description
Drive Overcurrent Fault AXIS_SERVO_DRIVE
BOOL
Tag
Set when drive output current exceeds the predefined operating limits for the drive.
Drive Overtemp Fault
AXIS_SERVO_DRIVE
BOOL
Tag
Set when the drive’s temperature exceeds the drive shutdown temperature.
Drive Overvoltage Fault AXIS_SERVO_DRIVE
BOOL
Tag
Set when drive DC bus voltage exceeds the predefined operating limits for the bus.
Drive Polarity
DINT
GSV SSV
0 = Custom Polarity 1 = Positive Polarity 2 = Negative Polarity Custom Polarity Custom Polarity is used to enable custom polarity configurations using the various polarity parameters defined by the SERCOS Interface standard. Positive/Negative Polarity Positive and Negative Polarity bit attribute determines the overall polarity of the servo loop of the drive. The advanced polarity parameters are automatically set based on whether the Drive Polarity is configured as Positive or Negative. Proper wiring guarantees that the servo loop is closed with negative feedback. However, there is no such guarantee that the servo drive has the same sense of forward direction as the user for a given application. Negative Polarity inverts the polarity of the command position and actual position data of the servo drive. Thus, selecting Positive or Negative Drive Polarity makes it possible to configure the positive direction sense of the drive to agree with that of the user. This attribute is configured automatically using the MRHD and MAHD motion instructions. See the Logix Motion Instruction Specification for more information on these hookup diagnostic instructions.
206
AXIS_SERVO_DRIVE
Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018
Page 207
Motion axis attributes
Appendix B
Attribute
Axis Type
Data Type
Access
Description
Drive Resolution
AXIS_SERVO_DRIVE
DINT
GSV
Drive Counts / Drive Unit The Drive Resolution attribute determines how many Drive Counts there are in a Drive Unit. Drive Units may be configured as Revs, Inches, or Millimeters depending on the drive application. Furthermore, the configured Drive Unit may apply to a motor or auxiliary feedback device. All position, velocity, and acceleration data to the drive is scaled from the user’s Position Units to Drive Units based on the Drive Resolution and Conversion Constant. The ratio of the Conversion Constant to Drive Resolution determines the number of Position Units in a Drive Unit. Conversion Constant / Drive Resolution = Drive Units (rev, inch, or mm) / Position Unit Conversely, all position, velocity, and acceleration data from the drive is scaled from the user’s Position Units to Drive Units based on the Drive Resolution and Conversion Constant. The ratio of Drive Resolution and the Conversion Constant determines the number of Position Units in a Drive Unit. Drive Resolution / Conversion Constant = Position Units / Drive Unit (rev, inch, or mm) In general, the Drive Resolution value may be left at its default value of 200000 Drive Counts per Drive Unit, independent of the resolution of the feedback device(s) used by the drive. This is because the drive has its own set of scale factors that it uses to relate feedback counts to drive counts. Drive Travel Range Limit Because the drive’s position parameters are ultimately limited to signed 32-bit representation per the SERCOS standard, the Drive Resolution parameter impacts the drive’s travel range. The equation for determining the maximum travel range based on Drive Resolution is: Drive Travel Range Limit = +/- 2,147,483,647 / Drive Resolution. Based on a default value of 200,000 Drive Counts per Drive Unit, the drive’s range limit is 10,737 Drive Units. While it is relatively rare for this travel range limitation to present a problem, it is a simple matter to lower the Drive Resolution to increase the travel range. The downside of doing so is that the position data is then passed with lower resolution that could affect the smoothness of motion. Fractional Unwind In some cases, however, the user may also want to specifically configure Drive Resolution value to handle fractional unwind applications or multi-turn absolute applications requiring cyclic compensation. In these cases, where the Unwind value for a rotary application does not result in an integer value, the Rotational Position Scaling attribute may be modified to a value that is integer divisible by the Unwind value. These examples demonstrate how the Drive Resolution value may be used with the Conversion Constant to handle various applications.
Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018
207
Page 208
Appendix B
Motion axis attributes
Attribute
Axis Type
Drive Resolution (continued)
208
Data Type
Access
Description Rotary Gear-Head WITHOUT Aux Feedback Device Based on a rotary motor selection, Drive Resolution would be expressed as Drive Counts per Motor Rev and be applied to the Rotational Position Resolution IDN. Set the Conversion Constant to Drive Counts per user-defined Position Unit. If it is a 3:1 gearbox, and the user's Position Unit is Revs of the gear output shaft, the Conversion Constant is 200,000/3, which is irrational! But, in this case, simply set the Drive Resolution to 300,000 Drive Counts/Motor Rev and the Conversion Constant could then be set to 100,000 Drive Counts/Output Shaft Rev. This system would work with this configuration without any loss of mechanical precision, that is, a move of 1 output shaft revolution would move the output shaft 1 revolution. Linear Ball-Screw WITHOUT Aux Feedback Device Based on a rotary motor selection, Drive Resolution would be expressed as Drive Counts per Motor Rev and be applied to the Rotational Position Resolution IDN. Set the Conversion Constant to Drive Counts per user-defined Position Unit. If it is a 5mm pitch ball-screw, and the user's Position Unit is mm, set the Conversion Constant to 200,000/5 or 40,000 Drive Counts per mm based on the default Drive Resolution value of 200,000 Drive Counts/Motor Rev. If the pitch is irrational, the method for addressing this is the same as described in Rotary Gear-Head WITHOUT Aux Feedback Device. Rotary Gear-Head WITH Aux Feedback Device Based on a rotary motor feedback selection, Drive Resolution would be expressed as Drive Counts per Aux Rev and be applied to the Rotational Position Resolution IDN. Now that position is based on the auxiliary feedback device according to the Servo Loop Configuration, the Data Reference bit of the various Scaling Types should be Load Referenced rather than Motor Referenced. The motor feedback would be rotary and resolution expressed in cycles per motor rev. The aux feedback device is also rotary and its resolution expressed in cycles per aux rev. The Aux Feedback Ratio would be set to the number of aux feedback revs per motor rev and internally applied to IDNs 121 and 122 for the purpose of relating position servo loop counts to velocity servo loop counts in a dual servo loop configuration. The Aux Feedback Ratio attribute is also used in range limit and default value calculations during configuration based on the selected motor’s specifications. If the application uses a 3:1 gearbox, and the user's Position Unit is Revs of the gearbox output shaft, the Conversion Constant is still rational, since our scaling is Load Referenced! Set the Conversion Constant to 200,000 Drive Counts/Output Shaft Rev based on the default Drive Resolution value of 200,000 Drive Counts/Aux Rev. The system would work in this configuration without any loss of mechanical precision, that is, a move of 1 output shaft revolution would move the output shaft 1 revolution.
Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018
Page 209
Motion axis attributes
Attribute Drive Resolution (continued)
Appendix B
Axis Type
Data Type
Access
Description Linear Ball-Screw/Ball-Screw Combination WITH Aux Feedback Device Based on a linear aux feedback selection, Drive Resolution would be expressed as Drive Counts per Linear Unit, say Millimeters (Metric bit selection), and be applied to the Linear Position Data Scaling IDNs. Now that position is based on the auxiliary feedback device according to the Servo Loop Configuration, the Data Reference bit of the various Scaling Types should again be Load Referenced rather than Motor Referenced. The motor feedback would be rotary and resolution expressed in cycles per motor rev. The aux feedback device is now linear and its resolution expressed in cycles per, say, mm. The Aux Feedback Ratio would be set to the number of aux feedback units (mm) per motor rev and internally applied to IDN 123 to relate position servo loop counts to velocity servo loop counts in a dual servo loop configuration. The Aux Feedback Ratio attribute is also used in range limit and default value calculations during configuration based on the selected motor’s specifications. If the application uses a 3:1 gearbox and a 5 mm pitch ball-screw, and your Position Unit is cm, the Conversion Constant is again rational, since we are Load Referenced! You set the Conversion Constant to 20,000 Drive Counts/cm based on the default Drive Resolution value of 200000 Drive Counts/mm. This system would work in this configuration without any loss of mechanical precision, that is, a move of 10 cm would move the actuator 10 cm.
Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018
209
Page 210
Appendix B
Motion axis attributes
Attribute
Axis Type
Data Type
Access
Description
Drive Scaling Bits
AXIS_SERVO_DRIVE
DINT
GSV
The Drive Scaling Bits attribute configuration is derived directly from the Drive Units attribute. Bits 0 = Scaling type 0 – standard 1 – custom 1 = Scaling unit 0 – rotary 1 – linear 2 = Linear scaling unit 0 – metric 1 – english 3 = Data Reference 0 – motor 1 – load Scaling Type The Scaling Type bit attribute is used to enable custom scaling using the position, velocity, acceleration, and torque scaling parameters defined by the SERCOS Interface standard. When the bit is clear (default), these scaling parameters are all set based on the preferred Rockwell Automation SERCOS drive scaling factors. Currently, there is no Logix support for custom scaling. Scaling Unit The Scaling Unit attribute is used to determine whether the controller scales position, velocity, and acceleration attributes based on rotary or linear scaling parameters and their associated Drive Units are defined by the SERCOS Interface standard. When the bit is clear (default), the corresponding bits in the SERCOS Position Data Scaling, Velocity Data Scaling, and Acceleration Data Scaling parameters are also cleared, which instructs the drive to use the rotary scaling parameters. When the bit is set, the corresponding bits in the SERCOS Position Data Scaling, Velocity Data Scaling, and Acceleration Data Scaling parameters are also set, which instructs the drive to use the linear scaling parameters. Linear Scaling Unit When the Scaling Unit is set to linear, the Linear Scaling bit attribute is used to determine whether the controller scales position, velocity, and acceleration attributes based on Metric or English Drive Units as defined by the SERCOS Interface standard. When the bit is clear (default), the corresponding bits in the SERCOS Position Data Scaling, Velocity Data Scaling, and Acceleration Data Scaling parameters are also cleared, which instructs the drive to use the Metric scaling parameters. When the bit is set, the corresponding bits in the SERCOS Position Data Scaling, Velocity Data Scaling, and Acceleration Data Scaling parameters are also set, which instructs the drive to scale in English units. The Linear Scaling Unit bit does not apply if the Scaling Unit is set to rotary. When interfacing to Rockwell SERCOS drive products, the Standard Drive Units based on the Scaling Unit and Linear Scaling Unit bit selections are shown in this table:
Data Reference The Data Reference bit determines which side of the mechanical transmission to reference position, velocity, acceleration, and torque data. If motor is selected, then position, velocity, acceleration, and torque data is referenced to the motor side of the transmission. If load is selected, then position, velocity, acceleration, and torque data is referenced to the load-side of the transmission. This is only applicable when using an auxiliary feedback device. 210
Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018