Y_AX_HomePulse
This function block combines the PLCopen function blocks
MC_StepRefPulse,
MC_MoveRelative, and
MC_SetPosition
to make a sequence that detects the C channel, performs an offset move away from the C channel, and sets a home position.
Parameters:
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_IN_OUT | ||||
| B | Axis | AXIS_REF | Logical axis reference. This value can be located on the Configuration tab in the Hardware Configuration (logical axis number). | |
| VAR_INPUT | ||||
| B | Execute | BOOL | Upon the rising edge, all other function block inputs are read and the function is initiated. To modify an input, change the value and re-trigger the execute input. | FALSE |
| B | HomeData | Yt_AX_HomeStruct | User defined Data Type in the Axis Toolbox, contains all related homing parameters. | All zeros in structure |
| VAR_OUTPUT | ||||
| B | Busy | BOOL | Set high upon the rising edge of the Execute or Enable input, and reset when Done, CommandAborted, or Error is true. | |
| B | Done | BOOL | Set high when the commanded action has completed successfully. If another block takes control before the action is completed, the Done output will not be set. This output is reset when Execute goes low. | |
| B | CommandAborted | BOOL | Set high if motion is aborted by another motion command or MC_Stop. This output is cleared with the same behavior as the Done output. | |
| B | Error | BOOL | Set high if an error has occurred during the execution of the function block. This output is cleared when 'Execute' or 'Enable' goes low. | |
| E | ErrorID | UINT | If Error is true, this output provides the Error ID. This output is reset when 'Execute' or 'Enable' goes low. | |
Error Description:
See the
Function Block ErrorID List
Example:
Initialize the HomeData values to be used during the homing process.
Execute the Y_AX_Home_Pulse Function Block.
Once the Homing sequence has been completed the Done Output will be TRUE. The Logic Analyzer trace for the Homing Sequence is shown below: