Topic: DMD0394 AXCONFIG - Axis Configuration |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Note: this instruction can only be used with a BRX CPU !
The Axis Configuration (AXCONFIG) instruction is used to configure the runtime parameters for an Axis using the on-board high-speed I/O or one of the HSIO modules (BX-HSIO1, BX-HSIO2, or BX-HSIO4). There are no default values for an Axis, meaning that an Axis must be configured by an AXCONFIG instruction before it can be used by any of the other Axis instructions.
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.
Linear vs. Rotary selects the type of movement that the output pulses will generate.
Initial Output Position is the position the Axis will be set to when the Axis is first enabled. This can be any constant value or any numeric location.
Minimum Velocity is the slowest frequency (pulses / sec) of output pulses that will be generated while the output is enabled. Be aware this value may be internally adjusted up by the Axis if the Acceleration is set to a sufficiently high number. This can be any positive constant from 10 to 2,000,000, or any numeric location containing a value in that range.
Maximum Velocity is the fastest frequency (pulses / sec) of output pulses that will be generated while the output is enabled. This can be any positive constant from 10 to 2,000,000, or any numeric location containing a value in that range.
Acceleration is the rate (pulses / sec2 ) at which the velocity will change when the Axis is ramping up from a slower pulse rate to a higher pulse rate, effectively it is how quickly the Axis will move from the current velocity to the maximum velocity; the larger the value, the more quickly the Axis will accelerate. This can be any positive constant greater than 0 or any numeric location containing a value in that range.
Deceleration is the rate (pulses / sec2 ) at which the velocity will change when the Axis is ramping down from a faster pulse rate to a slower pulse rate, effectively it is how quickly the Axis will move from the current velocity to the minimum velocity; the larger the value, the more quickly the Axis will accelerate. This can be any positive constant greater than 0 or any numeric location containing a value in that range.
Fault Deceleration is used any time a Fault Limit is reached or the Axis' .MasterEnable is manually turned OFF, the Axis will decelerate to 0 Hz at this specified rate (pulses / sec2 ). A value of 0 will cause the Axis to immediately stop moving. This can be any positive constant or any numeric location containing a value in that range.
Enable Positive / Clockwise Over-travel Fault-Limit will optionally enable the use of a limit switch that will cause the Axis to Fault (Stop) if the Axis tries to move past the fault limit in a clockwise (CW) direction. Note: the Fault Limits must use discrete inputs on the same hardware as the outputs used by the Axis, this means if the Axis is using the on-board discrete outputs, the Fault Limits must use the on-board discrete inputs; if the Axis is using the discrete outputs on one of the BRX HSIO modules (BX-HSIO1, BX-HSIO2, or BX-HSIO4) the Fault Limits must use discrete inputs on the same HSIO module.
Enable Negative / Counter-Clockwise Over-travel Fault-Limit will optionally enable the use of a limit switch that will cause the Axis to Fault (Stop) if the Axis tries to move past the fault limit in a counter-clockwise (CCW) direction.
Note: use an Axis Reset Fault (AXRSTFLT) or re-run the Axis Configuration (AXCONFIG) instruction to clear the fault in the Axis. Any attempt to move the Axis in the same direction that caused the fault will immediately generate another fault condition. Movement of the Axis in the opposite direction is permitted.
The section below will contain a graphic that will be relevant to the configuration. Enable the Encoder Feedback option if an incremental encoder is being used to provide the feedback. Select one of the following to specify which of the High-Speed Inputs the encoder is connected to:
Note: when Encoder Feedback is enabled for an Axis, the Axis' associated structure member .FollowingError will contain the difference between the output pulse count and the encoder's input value. An increasing .FollowingError value while the Axis is moving indicates that either the motor has stalled or there is mechanical slippage between the motor and the encoder.
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.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Axis Structure Members
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Status Display
The red triangle in the upper left corner of the status display indicates this is a Fully Asynchronous instruction.
Execution Mode / CurrentPosition / CurrentVelocity are the current values of these numeric fields from Axis' associated structure.
MasterEnable / Active / Suspend / Fault / EnableOutput are the current state of these Bit values from that Axis' associated structure.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|