MC_TouchProbe
This FB serves to detect the position of an axis at the time of a trigger event (" touch probe ") with high precision.
- For the trigger event, the following touch probe sources are supported:
- Touch probe of the drive (digital input or zero pulse)
- External touch probe source (e.g. fast I/O)
- Simple digital input
- Different edge events can be configured. The output of the FB distinguishes between positive and negative edge.
- The detected positions are output in the unit of the connected axis.
- The FB differs between the following modes:
- Single measurement
- Permanent measurement
- The measurement is configured via defining the MC_TRIGGER_REF structure.
- An active measurement can be aborted via the FB MC_AbortTrigger .
|
|
|
|
MC_TouchProbe |
|
|
|
|
|---|---|---|---|---|---|---|---|
|
AXIS_REF |
- |
Axis |
TriggerInput |
- |
MC_TRIGGER_REF |
||
|
MC_TRIGGER_REF |
- |
TriggerInput |
Done |
- |
BOOL |
||
|
BOOL |
- |
Execute |
Busy |
- |
BOOL |
||
|
BOOL |
- |
WindowOnly |
CommandAborted |
- |
BOOL |
||
|
LREAL |
- |
FirstPosition |
Error |
- |
BOOL |
||
|
LREAL |
- |
LastPosition |
ErrorID |
- |
L_IE1P_Error |
||
|
ActivationLevel |
- |
BOOL |
|||||
|
ValueStored_PosEdge |
- |
BOOL |
|||||
|
RecPosition_PosEdge |
- |
LREAL |
|||||
|
ValueStored_NegEdge |
- |
BOOL |
|||||
|
RecPosition_NegEdge |
- |
LREAL |
|||||
|
NewValueStored_PosEdge |
- |
BOOL |
|||||
|
NewValueStored_NegEdge |
- |
BOOL |
|||||
|
RecData |
- |
L_MC1P_TpReceiveData |
|||||
|
|
|
|
|
|
|
|
|
Inputs/outputs
Inputs
Outputs
|
Name Data type |
Value/meaning |
|
|---|---|---|
|
Done BOOL |
TRUE |
Touch probe event has been detected and the respective axis position has been recorded successfully. |
|
Busy BOOL |
TRUE |
Processing is running. |
|
CommandAborted BOOL |
TRUE |
The command has been aborted by another FB (e.g. MC_AbortTrigger ). |
|
Error BOOL |
TRUE |
An error has occurred. For details see ErrorID . |
|
ErrorID |
If Error = TRUE: Error number for the error that has occurred.
|
|
|
ActivationLevel BOOL |
Level of the TP input at the time of TP function activation in the drive
|
|
|
ValueStored_PosEdge BOOL |
TRUE |
Measured value saved (after triggering on positive edge).
|
|
RecPosition_PosEdge LREAL |
Stored measured value (after triggering on positive edge) in [unit]. |
|
|
ValueStored_NegEdge BOOL |
TRUE |
Measured value stored (after triggering to negative edge). |
|
RecPosition_NegEdge LREAL |
Stored measured value (after triggering to negative edge) in [unit] |
|
|
NewValueStored_PosEdge BOOL |
TRUE |
New positive measured value stored
|
|
NewValueStored_NegEdge BOOL |
TRUE |
New negative measured value stored
|
|
RecData L_MC1P_TpReceiveData
|
Information on a touch probe event. |
|
Touch probe configuration