MC_TouchProbe command
The MC_TouchProbe command records an axis position when a trigger event occurs. The measurement channel and method (rising or falling edge of the trigger signal) are defined via the reference for the trigger signal source.
Optionally, the program can wait for the job to end (“WaitSyn” keyword) or can assign a Job ID (“Id” keyword) for later synchronisation.
Syntax of the NC command: |
<axis_name>[ MC_TouchProbe Channel=.. [Mode=..] [Id=..] [WaitSyn] { \ } ] |
Block diagram of the function block in PLCopen:
Input pin | Unit | |||
TriggerInput | Channel | ---- | ||
Mode | --- | If no mode is specified, probe signal evaluated acc. to P-AXIS-00518 | ||
1 | Probe signal on falling edge | |||
2 | Probe signal on rising edge | |||
|
Programing Example
MC_TouchProbe
S[MC_TouchProbe Channel=1 Mode=2]