Defining the lead distance or time lead
The channel parameters P-CHAN-00070 (m_pre_outp[i]) and P-CHAN-00107 (h_pre_outp[i]) are used in conjunction with the synchronisation methods MET_SVS and MEP_SVS. The parameters define the value for output before execution of the M/H functions in the path interpolator.
- The time lead is specified with the MET_SVS method.
- The lead distance is specified with the MEP_SVS method.
Example for initialisation in the channel parameter list for 2 M functions:
- The user-specific M function M96 is to be output to the PLC 10 millimetres before the synchronisation position is reached in the block sequence.
- The user-specific M function M97 is to be output to the PLC 40 millimetres before the synchronisation time in the block sequence is reached.
# Definition of M functions and synchronisation types
# =====================================================
:
m_synch[96] 0x01000000 MEP_SVS
m_synch[97] 0x02000000 MET_SVS
#
# Pre-output time/distance setting with MET_SVS, MEP_SVS
# =====================================================
m_pre_outp[96] 100000 in 0.1 µm
m_pre_outp[97] 40000 in µs
Notice
The lead distance/time lead of an M/H function can also be modified in the NC program by corresponding variables (e.g. V.G.M_FCT[MNo].PRE_OUTP_PATH, see [PROG]).
Attention
Please note for MET_SVS codes: The pre-output time is planned due to the required synchronisation with path movements based on a feed profile with end velocity 0.
As a result, there may be deviations between the planned and the actual motion times up to the M code (block limit). See the figure below: