Topic: DMD0396 AXHOME - Axis Perform Home Search |
|
Note: this instruction can only be used with a BRX CPU !
The Axis Perform Home Search (AXHOME) instruction is used to perform a sequence of steps needed to move an Axis to a known starting position.
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.
Homing Velocity (Signed) is the maximum velocity the Axis will ramp up to when moving toward Discrete Input Limit 1. The Axis will ramp up and down using the Axis' current Acceleration and Deceleration settings. This can be any constant value between -2,000,000 and 2,000,000 or any numeric location containing a value in that range. The sign of the value will indicate the direction of travel: positive numbers will move the Axis clockwise, negative numbers will move the Axis counter-clockwise. Note: only the BX-HSIO4 module can operate at velocities above 250KHz; attempting to use a velocity above 250KHz for an Axis that is using the on-board High-Speed I/O, or an Axis on a BX-HSIO1 or BX-HSIO2 module will result in a maximum velocity of that Axis still being 250KHz.
Discrete Input Limit 1 : the Home Search operation requires at least one discrete input.
Termination specifies what action to take after reaching the Home switch (Input Limit 1):
Enable the Zero Position At option to have the Axis set it's Current Position to 0 after the following step of the Home Search operation:
There are examples of the movement paths for some of the most popular Home Search configurations available at the bottom of the page.
Input Leg specifies how the instruction will be enabled to run:
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
If the instruction is configured as Edge Triggered, 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).
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.
A detailed description of the Numeric and Bit fields in the Axis structure 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
|
|
Movement paths for some of the more popular Home Search configurations.Termination at Position of Limit 1 - Axis moves back to Limit 1 after decelerating to 0 - Axis Position is set to Zero at Limit 1.
|
Termination using Creep to Second Limit - Axis decelerates to 0 after Limit 1 then creeps to Limit 2 and immediately stops.
|
Termination using Creep to Second Limit - Axis creeps to Limit 2 then immediately stops - Limit 1 uses Level so if already at Limit 1 the first move is skipped.
|
|