TRIGGER_REF
TYPE TRIGGER_REF :
STRUCT
EncoderID : UDINT; (* 1..255 *)
TouchProbe : E_TouchProbe; (* probe unit definition *)
SignalSource : E_SignalSource; (* optional physical signal source used by the probe unit *)
Edge : E_SignalEdge; (* rising or falling signal edge *)
Mode : E_TouchProbeMode; (* single shot or continous monitoring *)
PlcEvent : BOOL; (* PLC trigger signal input when TouchProbe signal source is set to 'PlcEvent' *)
ModuloPositions : BOOL; (* interpretation of FirstPosition, LastPosition and RecordedPosition as modulo positions when TRUE *)
END_STRUCT
END_TYPE
Name | Data type | Description |
---|---|---|
EncoderID | UDINT | The ID of an encoder is indicated in the TwinCAT System Manager. |
TouchProbe | Defines the latch unit (probe unit) within the encoder hardware used. | |
SignalSource | Optionally defines the signal source, if it can be selected via the controller. In many cases the signal source is permanently configured in the drive and should then be set to the default value "SignalSource_Default". | |
Edge | Edge defines whether the rising or falling edge of the trigger signal is evaluated. | |
Mode | Specifies the operation mode of the latch unit. In single mode only the first edge is recorded. In continous mode each PLC cycle edge is signaled. | |
PlcEvent | BOOL | If the signal source "TouchProbe" is set to the type "PlcEvent", a rising edge on these variables triggers the recording of the current axis position. "PlcEvent" is not a real latch function, but depends on the cycle time. |
ModuloPositions | BOOL | If the variable "ModuloPositions" is FALSE, the axis position is interpreted in an absolute linear range from -∞ to +∞. The "FirstPosition", "LastPosition" and "RecordedPosition" positions of the function block MC_TouchProbe are then also absolute. |
Requirements
Development environment | Target system type | PLC libraries to include |
---|---|---|
TwinCAT v3.0.0 | PC or CX (x86 or x64) | Tc2_MC2 |