MCV_Home
Attention
This function block is discontinued. For new projects please use the FB MC_Home which also has the “CamSignal“ input. MC_Home has the identical behaviour.
Reference point travel of the axis is commanded with the MCV_Home FB. MCV_Home extends the functionality of the PLCopen FB MC_Home by an additional "CamSignal" input which is evaluated as the signal to adopt the homing position. Normally, the signal source of "CamSignal" is the homing cam signal of the drive.
Attention
The condition for proper functioning is that the parameter P-AXIS-00036 is assigned the value 0.
The parameter P-AXIS-00038 defines whether adoption of the homing position at the “CamSignal” should take place on the rising or falling edge.
Blockdiagramm
Parameters of the FB
VAR_IN_OUT | ||
Variable name | Data type | Description |
axis | AXIS_REF | Axis reference |
VAR_INPUT | ||
Variable name | Data type | Description |
Execute | BOOL | A rising edge at the input commands homing. |
CamSignal | BOOL | Signal to command adoption of the homing position. |
VAR_OUTPUT | ||
Variable name | Data type | Description |
Done | BOOL | When TRUE, homing is completed and the axis is in “Standstill” state. |
CommandAborted | BOOL | TRUE indicates that the command was aborted by another command. |
Error | BOOL | Indicates TRUE if an error occurs in the FB. |
ErrorID | WORD | Error code. |
Behaviour of the FB
- Commanding reference point travel is permissible only if the axis is in the "Standstill" state. If this is not the case, the "error" output is set to FALSE and "error_id" indicates an error value that designates the state the axis is currently in.
- No new command can be sent when this FB is active. It cannot be retriggered. If an attempt is made to do this anyway, the FB supplies the error P-ERR-44007 (ERR_PO_AX_HOMING_RETRIGGERD).
- The axis change to the "Homing" state directly after command of reference point travel.