24 mc_touchprobe, Mc_touchprobe, L-force | plc designer - softmotion – Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual
Page 142

L-force | PLC Designer - SoftMotion
The SM_PLCopen.lib library
POUs for the motion control of individual axes
142
L
DMS 5.2 EN 03/2011 TD17
6.2.24
MC_TouchProbe
This program organisation unit is used to detect the precise position of the drive via a fast
input. As this generally has to be achieved faster than in a normal PLC cycle, in many cases
either the drive is charged with this function or it is executed via interrupts or the like,
independently of the PLC cycle.
The input "TriggerInput" is of type TRIGGER_REF and describes the trigger input more
detailed:
The window function, activated and defined via WindowOnly, FirstPosition, LastPosition,
must be supported by the Drive Interface; if this is not the case, it will return an error.
The program organisation unit is independent of the axis state and remains active until a
position is latched or the process is aborted via MC_AbortTrigger.
Note!
This function block is only supported by the ECSxM (Motion) axis module.
Variable
Type
Initial value
Description
bFastLatching
BOOL
TRUE
Fast latching via Drive Interface (TRUE) or
latching in PLC cycle (FALSE)
iTriggerNumber
INT
-1
Only for bFastLatching = TRUE:
trigger number; depending on Drive
Interface
bInput
BOOL
TRUE
Only for bFastLatching = TRUE:
input signal; TRUE initiates latching
bActive
BOOL
TRUE
Internal variable