MC_TouchProbe
The MC_TouchProbe FB records an axis position when a trigger event occurs. The measurement channel and method (rising or falling edge of the trigger signal) are defined via the reference for the trigger signal source.
Blockdiagramm
Parameters of the FB
VAR_IN_OUT | ||
Variable name | Data type | Description |
axis | AXIS_REF | Axis reference |
TriggerInput | Reference for the trigger signal source |
VAR_INPUT | ||
Variable name | Data type | Description |
Execute | BOOL | Starts the command on the rising edge. |
VAR_OUTPUT | ||
Variable name | Data type | Description |
Done | BOOL | Trigger event was detected. |
Busy | BOOL | Is TRUE as long as the input/output waits for the trigger event. |
Error | BOOL | Indicates TRUE if an error occurs in the FB. |
ErrorID | WORD | Error code. |
CommandAborted | BOOL | Command is aborted by another command of an FB MC_AbortTrigger. |
RecordedPosition | LREAL | Axis position when the trigger event occurred. Default unit [0.1µm or 10-4 °] |
Behaviour of the FB
- A measurement command is issued only when the axis is in the "Standstill" or "Continuous Motion" or "Discrete Motion" or "Synchronized Motion" or "Stopping" state. Moreover, no measurement command must be active in the measurement channel specified by "TriggerInput". The measurement channel must therefore be in the "TP_IDLE" 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.
- If a measurement command in a measurement channel is active, no further measurement command in relation to this measurement channel can be sent. Therefore, the FB is not retriggerable. If a command is still sent, the “Error“ output becomes TRUE and signals the error P-ERR-44009 (ERR_PO_AX_TPROBE_RETRIG) at the “ErrorID“ output.
- Errors are also generated when the axis reference, the measuring channel or the trigger event of the measurement process were changed while a measurement command is active. The following error may occur in these cases:
- P-ERR-44001 (ERR_PO_AX_REF_CHG_WHILE_ACTIVE)
- P-ERR-44011 (ERR_PO_AX_INPREF_TPCH_CHW_ACTIVE)
- P-ERR-44012 (ERR_PO_AX_INPREF_TPMD_CHW_ACTIVE).