Topic: DMD0414 AXPOSSCRV - Axis Move to Position Using S-Curve |
|
Note: this instruction can only be used with a BRX CPU !
The Axis Move to Position Using S-Curve (AXPOSSCRV) instruction is used to move an Axis from its current position to a specified target position using the Axis' configured parameters and the specified Jerk parameter which will yield an S-Curve velocity profile.
Axis Device selects which Axis this instruction will use - remember that Axis 0 is a virtual Axis meaning it will not generate pulses to physical outputs on the PLC.
Input Leg selects how the move to position operation will be initiated:
Target Type specifies the target position value and whether that value is an absolute location or a location relative to the Axis' current position:
Enable the Zero Current Position Before Initial Move option to have the Axis set its Current Position value to zero before the move operation is executed.
Position Value is the target position the Axis will move to. The can be any constant value or any numeric location.
The Target Description to the right shows a graphic that represents the type of positioning operation that will be performed by this instruction based on the current selections and parameters in the instruction.
Linear vs Rotary specifies which type of action the series of output pulses will produce:
Whereas the Axis' Acceleration and Deceleration values specify how quickly the Axis is allowed to reach the Axis' maximum velocity, the Jerk (pulses / sec3) parameter specifies how quickly the Axis is allowed to achieve maximum Acceleration and maximum Deceleration on its way to reaching its maximum velocity. This can be any positive constant greater than 0 or any numeric location with a value in that range
Enable the Supersede Default Axis Properties option to have the Axis use the following parameters when performing the move operation instead of the current Axis configuration values. Note: this does NOT change these values in the Axis configuration, these parameters are only used during this one positioning operation. Use the Set Axis Properties (AXSETPROP) instruction to make global runtime changes to an Axis' configuration.
The On Success and On Error parameters specify what action to perform when this instruction completes. You do not have to use the same type of selection for both On Success and On Error.
If the Set Bit selection is used for either On Success or On Error, the specified BIT location will be SET OFF when the instruction is first enabled and will remain OFF until the instruction completes. Once complete, the appropriate Success or Error bit location will be set ON. The specified Bit location is enabled with a SET (Latch) operation (not an OUT operation) meaning that it will remain ON even if this instruction's input logic goes OFF.
If the JMP to Stage selection is used for either On Success or On Error the target Stage must be in the same Program code-block as this instruction, you cannot specify a target Stage that exists in a different Program code-block. When the operation finishes, the target Stage will be enabled the same way as a standalone Jump to Stage (JMP) instruction would do it. The JMP to Stage option will only be selectable if this instruction is placed in a Program code-block.
On Success selects which of the following actions to perform if the operation is successful:
On Error selects which of
the following actions to perform if the operation is unsuccessful:
If either the On Success or On Error selections are set to JMP to Stage, Automatically create the SG box for any NEW stage number will be enabled which will automatically create any target stage that does not already exist.
|
|
Status Display
The red triangle in the upper left corner of the status display indicates this is a Fully Asynchronous instruction.
Execution Mode shows the current mode of the Axis (see a list of the possible execution mode values).
CurrentPosition / TargetPosition / CurrentVelocity / CurRateOfChange are the current values of these numeric fields from Axis' associated structure.
AtVelocity / MasterEnable / Active / Suspend / Fault / EnableOutput are the current state of these Bit values from that Axis' associated structure.
A detailed description of the Numeric and Bit fields is available in AXCONFIG - Axis Configuration.
|
|
See Also
AXSETPROP - Axis Set Properties
AXRSTFAULT - Reset Axis Limit Fault
AXSCRIPT - Run a Sequence of Axis Commands AXHOME - Axis Perform Home Search
AXPOSTRAP - Axis Move to Position Using Trapezoid
AXPOSSCRV - Axis Move to Position Using S-Curve
AXVEL - Axis Set Velocity Mode
AXGEAR - Axis Electronic Gearing
AXFOLLOW - Axis Position Following with Offset
AXCAM - Axis Electronic Camming
|
|
Related Topics
|
|
Example
|
|