Position measurement via an edge at a measured input. The used digital input must be configured as Touchprobe input before Sercos phase-up. The measurement of the position starts by calling the function. If a valid measurement result is recognized, the measurement is reported back through the CaptureOK parameter of the measured input.
The event or signal is entered in the PacDrive system at a measuring input using the measurement sensor (such as the print marker sensor).
Using the function FC_TPEdge(), the measuring input (i_stTPId), the edge (i_xPosEdge), the position source (i_stDevId), the position type (i_diParType), and the position window (i_lrLowLimit and i_lrHighLimit) is defined. If the measurement result is outside the position window, then the system discards the measurement and waits for a valid one.
When the FC_TPEdge() function is called, the status of the CaptureOk parameter of the measured input is set to FALSE and the CaptureValue parameter of the measured input is set to 0.
DevId |
Meaning |
Supports ParType |
---|---|---|
DRIVE |
Axis |
Yes |
L_ENC |
Logical encoder |
Yes |
SENC |
Sum encoder |
No |
ParType |
Meaning |
Supported by DevId |
---|---|---|
0 |
Position |
DRIVE |
L_ENC |
||
1 |
RefPosition |
DRIVE |
2 |
MechPosition |
DRIVE |
3 |
RefMechPosition |
DRIVE |
4 |
ShaftMechPosition |
DRIVE |
5 |
ShaftMechRefPos |
DRIVE |
6 |
PositionWithoutDelay |
L_ENC |
In order to compensate this, consider:
0 / Position: TP SensorDelay = TP HW Delay - ShaftDelay (DRIVE)
0 / Position: TP SensorDelay = TP HW Delay (L_ENC)
1 / RefPosition: TP SensorDelay = TP HW Delay - ShaftRefDelay
2 / MechPosition: TP SensorDelay = TP HW Delay - ShaftDelay
3 / RefMechPosition: TP SensorDelay = TP HW Delay - ShaftRefDelay
4 / ShaftMechPosition: TP SensorDelay = TP HW Delay
5 / ShaftMechRefPosition: TP SensorDelay = TP HW Delay
6 / PositionWithoutDelay: TP SensorDelay = TP HW Delay
Input |
Data type |
Description |
---|---|---|
i_stTPId |
ST_LogicalAddress |
Measure input |
i_stDevId |
ST_LogicalAddress |
Positions source |
i_diParType |
DINT |
Position type |
i_xPosEdge |
BOOL |
edge |
i_lrLowLimit |
LREAL |
Lower limit value position window |
i_lrHighLimit |
LREAL |
Upper limit value position window |