The text of a manual · part 10 of 30
SERCOS and Analog Motion Configuration and Startup User Manual, pages 91 to 100
Pages 91 to 100 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 91
Program
Chapter 4
Profile
ACC/DEC
Motor
Priority of Control
S-curve
2X Slower
Best
Jerk
Jerk Programming in Units/Sec3
Unique program considerations
Acc/Dec
Velocity
Position
To specify the jerk in 'Units/sec3' instead of '% of time', adjust the jerk value to get the programmed value:
If programming a move using the ‘% of Time units’, Logix Designer application computes an: Accel Jerk = a2/v where a = the programmed Accel Rate and v = programmed Speed. Therefore, the higher the programmed speed, the lower the computed Jerk. The system has a Jerk priority planner. In other words, Jerk has a higher priority than acceleration and velocity. Therefore, the programmed Jerk is always present. If a move is velocity-limited, the move does not reach the programmed acceleration and/or velocity. Once the velocity limit for the length of the move is reached, as the velocity increases, the move requires more time to complete. ‘Decel Jerk’ is computed similarly to the Accel Jerk described above. The only difference is that instead of a2/v, Decel Jerk = d2/v, where d = the programmed Decel Rate.
Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018
91
Page 92
Chapter 4
Program
Example:
Example #1 Start Speed = 8.0 in/sec Desired Speed = 5.0 in/sec Desired Decel Rate = 2.0 in/sec2 Desired Decel Jerk = 1.0 in/sec3 Temporary Speed = (Desired Decel Rate)2 / Desired jerk value in Units/Sec3= 2.02 / 1.0 = = 4.0 in/sec k = (8.0 - 5.0) / max(5.0, 4.0) = 3.0 / 5.0 = = 0.6 Because k < 1, enter the desired Decel jerk directly in the faceplate Instruction faceplate Decel jerk in Units/Sec3 = 1.0 in/sec3
Example:
Example #2 Start Speed = 13.0 in/sec Desired Speed = 5.0 in/sec Desired Decel Rate = 2.0 in/sec2 Desired Decel Jerk = 1.0 in/sec3 Temporary Speed = (Desired Decel Rate)2 / Desired jerk value in Units/Sec3= 2.02 / 1.0 = = 4.0 in/sec k = (13.0 - 5.0) / max(5.0, 4.0) = 8.0 / 5.0 = = 1.6 Because k > 1, must calculate the Decel jerk to use on the instruction faceplate as: Instruction faceplate Decel jerk in Units/Sec3 = = 1.0 in/sec3 * 1.6 = = 1.6 in/sec3
What is the revision?
Profile operand
•
15 or earlier – % of Time is fixed at 100.
•
16 or later – % of Time defaults to 100% of time on projects converted from earlier versions. For new projects, enter the Jerk value.
The profile operand has two profile types: •
Trapezoidal velocity profile
•
S-Curve velocity profile
See also Choose a profile on page 85
Trapezoidal velocity profile
92
The trapezoidal velocity profile is the most commonly used profile because it provides the most flexibility in programming subsequent motion and the fastest acceleration and deceleration times. The change in velocity per unit time is specified by acceleration and deceleration. Jerk is not a factor for trapezoidal
Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018
Page 93
Program
Chapter 4 profiles. Therefore, it is considered infinite and is shown as a vertical line in the following graph.
S-Curve velocity profile
S-Curve velocity profiles are most often used when the stress on the mechanical system and load needs to be minimized. The acceleration and deceleration time is balanced against the machine stress using two additional parameters, acceleration jerk and deceleration jerk. Depending on the Jerk settings, the acceleration profile can be set to: •
Almost pure trapezoidal (fastest and highest stress).
•
S-Curve (slowest, lowest stress).
The typical acceleration profile is a trade-off between stress and speed. The Jerk is specified by the user (in Units/sec3 or as a percentage of maximum), or it is calculated from the percentage of time. (Percentage of time is equal to the percentage of ramp time in the acceleration/deceleration profile):
Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018
93
Page 94
Chapter 4
Program
Backward compatibility
The Jerk of 100% of time produces triangular acceleration and deceleration profiles. Very small Jerk rates that are less than 5% of time, produce acceleration and deceleration profiles close to trapezoidal ones. Important:
Trapezoidal Velocity Profile 3
Higher values of the % of Time result in lower values of Jerk Rate Limits and, therefore, slower profiles. See table for reference.
S-shaped Velocity Profile with 1< = Jerk <100% of Time4
S-shaped Velocity Profile with Jerk = 100% of Time5
Accel/Decel Jerk in Units/sec3
∞
Accel/Decel Jerk in % of Maximum
NA
0 - 100%
NA
Accel/Decel Jerk in % of Time
0%
1 - 100%
100%
Calculations are performed when an Axis Move, Change Dynamics, or an MCS Stop of StopType = Move or Jog is initiated.
The example labeled Trapezoidal Accel/Decel Time uses a rectangular acceleration profile. 4 The example labeled Programmable S-Curve Accel/Decel Time, Acceleration Jerk = 60% of Time uses a trapezoidal acceleration profile. 5 The example labeled S-Curve Accel/Decel Time, Backward Compatibility Setting: Acceleration Jerk = 100% of Time uses a triangular acceleration profile. 3
94
Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018
Page 95
Program
Chapter 4
Programmable S-Curve Accel/Decel Time Acceleration Jerk = 60% of Time
S-Curve Accel/Decel Time, Backward Compatibility Setting: Acceleration Jerk = 100% of Time
Enter basic logic
The controller gives a set of motion control instructions for the axes. •
Uses the instructions in the same way as other Logix 5000 instructions. Program motion control in these programming languages.
Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018
95
Page 96
Chapter 4
Program
•
Ladder diagram (LD)
•
Structured text (ST)
•
Sequential function chart (SFC)
•
Each motion instruction works on one or more axes.
•
Each motion instruction needs a motion control tag. The tag uses a MOTION_INSTRUCTION data type. The tag stores the instruction status information.
ATTENTION: Use the tag for the motion control operand of motion instruction only once. Unintended operation of the control variables may happen if reusing the same motion control tag in other instructions.
Example: Motion control program
This example of ladder logic homes, jogs, and moves an axis.
If Initialize_Pushbutton = on and the axis = off (My_Axis_X.ServoActionStatus = off) then The MSO instruction turns on the axis.
If Home_Pushbutton = on and the axis has not been homed (My_Axis_X.AxisHomedStatus = off) then The MAH instruction homes the axis.
96
Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018
Page 97
Program
Chapter 4
If Jog_Pushbutton = on and the axis = on (My_Axis_X.ServoActionStatus = on) then The MAJ instruction jogs the axis forward at 8 units/s.
If Jog_Pushbutton = off then The MAS instruction stops the axis at 100 units/s2 Make sure that Change Decel is Yes. Otherwise, the axis decelerates at its maximum speed.
If Move_Command = on and the axis = on (My_Axis_X.ServoActionStatus = on) then The MAM instruction moves the axis. The axis moves to the position of 10 units at 1 unit/s.
Download a program and run the logic
Use these instructions to download a program to the controller. To download a program to a controller: 1. With the keyswitch, place the controller in Program or Remote Program mode. 2. From the Communications menu, select Download. 3. Confirm to complete the download procedure. Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018
97
Page 98
Chapter 4
Program
4. Select Download. 5. Once the download is complete, place the controller in Run/Test mode. The status and compiler messages appear in the status bar. See also Test an axis with Motion Direct Commands on page 75 Troubleshoot axis motion on page 100
Choose a motion instruction Use this table to choose an instruction and verify its availability as a Motion Direct Command.
To
And
Use This Instruction
Motion Direct Command
Change the state of an axis
Enable the drive and activate the axis servo loop.
MSO Motion Servo On
Yes
Disable the drive and deactivate the axis servo loop.
MSF Motion Servo Off
Yes
Force an axis into the shutdown state and block any instructions that initiate axis motion.
MASD Motion Axis Shutdown
Yes
Reset the axis from the shutdown state.
MASR Motion Axis Shutdown Reset
Yes
Enable the drive and set the servo output voltage of an axis.
MDO Motion Direct Drive On
Yes
Disable the drive and set the servo output voltage to the output offset voltage.
MDF Motion Direct Drive Off
Yes
Clear all motion faults for an axis.
MAFR Motion Axis Fault Reset
Yes
Stop any motion process on an axis.
MAS Motion Axis Stop
Yes
Home an axis.
MAH Motion Axis Home
Yes
Jog an axis.
MAJ Motion Axis Jog
Yes
Move an axis to a position.
MAM Motion Axis Move
Yes
Start electronic gearing between 2 axes.
MAG Motion Axis Gear
Yes
Control axis position
98
Change the speed, acceleration, or deceleration of a move MCD or a jog that is in progress. Motion Change Dynamics
Yes
Define a Master/Slave relationship between two motion axes and select the type of move instructions.
No
MDAC Master Driven Axis Control
Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018
Page 99
Program
To
Chapter 4
And
Use This Instruction
Motion Direct Command
Change the command or actual position of an axis.
MRP Motion Redefine Position
Yes
Calculate a Cam Profile based on an array of cam points.
MCCP Motion Calculate Cam Profile
No
Start electronic camming between 2 axes.
MAPC Motion Axis Position Cam
No
Start electronic camming as a function of time.
MATC Motion Axis Time Cam
No
Calculate the slave value, slope, and derivative of the slope for a cam profile and master value.
MCSV Motion Calculate Slave Values
No
Stop motion of all axes.
MGS Motion Group Stop
Yes
Force all axes into the shutdown state.
MGSD Motion Group Shutdown
Yes
Transition all axes to the ready state.
MGSR Motion Group Shutdown Reset
Yes
Latch the current command and actual position of all axes.
MGSP Motion Group Strobe Position
Yes
Arm and disarm special event checking Arm the watch-position event checking for an axis. functions such as registration and watch position Disarm the watch-position event checking for an axis.
MAW Motion Arm Watch Position
Yes
MDW Motion Disarm Watch Position
Yes
Initiate action on all axes
Arm the servo-module registration-event checking for an MAR axis. Motion Arm Registration
Yes
Disarm the servo-module registration-event checking for an axis.
MDR Motion Disarm Registration
Yes
Arm an output cam for an axis and output.
MAOC Motion Arm Output Cam
No
Disarm one or all output cams connected to an axis.
MDOC Motion Disarm Output Cam
No
MAAT Motion Apply Axis Tuning
No
MRAT Motion Run Axis Tuning
No
Tune an axis and run diagnostic tests for Uses the results of an MRAT instruction to calculate and the control system. These tests include: update the servo gains and dynamic limits of an axis. • Motor/encoder hookup test Run a tuning motion profile for an axis. • Encoder hookup test • Marker test
Control multi-axis coordinated motion
Use the results of an MRHD instruction to set encoder and MAHD servo polarities. Motion Apply Hookup Diagnostic
No
Run one of the diagnostic tests on an axis.
MRHD Motion Run Hookup Diagnostic
No
Start a linear coordinated move for the axes of coordinate MCLM system. Motion Coordinated Linear Move
No
Start a circular move for the axes of coordinate system.
MCCM Motion Coordinated Circular Move
No
Change in path dynamics for the active motion on a coordinate system.
MCCD Motion Coordinated Change Dynamics
No
Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018
99
Page 100
Chapter 4
Program
To
And
Use This Instruction
Motion Direct Command
Stop the axes of a coordinate system or cancel a transform.
MCS Motion Coordinated Stop
No
Shutdown the axes of a coordinate system.
MCSD Motion Coordinated Shutdown
No
Start a transform that links two coordinate systems together. This is like bi-directional gearing.
MCT Motion Coordinated Transform 6
No
Calculate the position of one coordinate system with respect to another coordinate system.
MCTP Motion Calculate Transform Position7
No
Transition the axes of a coordinate system to the ready state and clear the axis faults.
MCSR Motion Coordinated Shutdown Reset
No
Define a Master/Slave relationship between a Master Axis MDCC and a Coordinate System. Master Driven Coordinated Control
No
Sample projects
The Rockwell Automation sample project's default location is: c:\Users\Public\Public Documents\Studio 5000\Sample\ENU\v<current_release>\Rockwell Automation A PDF file named Vendor Sample Projects explains how to work with the sample projects. Free sample code is available at http://samplecode.rockwellautomation.com/. The Vendor Sample Projects.pdf default location is: c:\Users\Public\Public Documents\Studio 5000\Sample\ENU\v<current_release>\Third Party Products
Troubleshoot axis motion
Troubleshooting information is provided for situations that may occur while running an axis.
Why does my axis accelerate when I stop it?
While an axis is accelerating, you try to stop it. The axis keeps accelerating for a short time before it starts to decelerate.
Example
You start a Motion Axis Jog (MAJ) instruction. Before the axis gets to its target speed, you start a Motion Axis Stop (MAS) instruction. The axis continues to speed up and then eventually slows to a stop.
6 7
100
Use this instruction only with 1756-L6x controllers. Use this instruction only with 1756-L6x controllers.
Rockwell Automation Publication MOTION-UM001H-EN-P - November 2018