XFC_TRIGGER_REF
The data type XFC_TRIGGER_REF contains the status and parameters of a digital input that is used for the function block XFC_TouchProbe.
TYPE XFC_TRIGGER_REF :
STRUCT
Signal : BOOL;
TimestampRisingEdge : T_DCTIME32;
TimestampFallingEdge : T_DCTIME32;
Edge : E_SignalEdge;
FreeRun : BOOL;
EncoderIndex : UINT;
ModuloPositions : BOOL;
ModuloFactor : LREAL := 360.0;
END_STRUCT
END_TYPE
Name | Type | Description |
---|---|---|
Signal | BOOL | Current state of the digital input signal. |
TimestampRisingEdge | T_DCTIME32 | Time stamp of the last rising edge of the digital input signal. |
TimestampFallingEdge | T_DCTIME32 | Time stamp of the last falling edge of the digital input signal. |
Edge | Edge defines the signal edge to be used for the evaluation of the axis position. | |
FreeRun | BOOL | If FreeRun is TRUE, the input is latched continuously. |
EncoderIndex | UINT | If more than one encoder is connected to the axis, the encoder index [0 – 9] can be defined here. The first encoder has the index 0. |
ModuloPositions | BOOL | If ModuloPositions is TRUE, all positions are interpreted as modulo. The parameter ModuloFactor is used for calculating the modulo cycle. |
ModuloFactor | LREAL | ModuloFactor indicates the length of a modulo cycle in the positioning unit of the axis and is only used if ModuloPositions is TRUE. |