Topic: DMD0398 AXPOSTRAP - Axis Move to Position Using Trapezoid |
|
Note: this instruction can only be used with a BRX CPU !
The Axis Move to Position Using Trapezoid (AXPOSTRAP) instruction is used to move an Axis from its current position to a specified target position using the Axis' configured parameters which will yield a trapezoid 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.
Move Type selects how the move to position operation will be initiated. This selection determines how the On Success and On Error parameters will operate.
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. Note: if Multi-move is selected at the Move Type this parameter should be a numeric memory location so the Position Value can be changed at runtime.
Linear vs Rotary selects specifies which type of action the pulse train will produce:
Target Description will show 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.
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.
Note: if this instruction is configured for Multi-move, the ON Success indication will turn ON after the input logic transitions from ON to OFF and the Axis' Current Velocity is at 0. When these conditions are met the Axis' Mode is "Idle". You should wait until the On Success indication turns ON before attempting to run any other Axis instruction.
Note: if this instruction is configured for Multi-move and the input logic turns OFF while a move operation is in progress, the ON Error indication will turn ON to indicate the Axis has an error. You should wait until the Axis associated structure member AtPosition turns ON before disabling this instruction.
|
|
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 are the current values of these numeric fields from Axis' associated structure.
AtPosition / 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
|
|
Single Move Example
|
|
Multi-move Example
|
|