SMC_PreAcknowledgeMFunction (FB)ΒΆ
FUNCTION_BLOCK SMC_PreAcknowledgeMFunction
This function block serves to acknowledge an M-function even before the interpolator reaches it. If an M-function is acknowledged in advance, a stop at the M-function is avoided. The function block should be executed in the same task as the interpolator. It operates on the queue that is fed into SMC_CheckVelocities .
Note
To pre-acknowledge a G75 command, set input iM to -2.
- InOut:
Scope
Name
Type
Initial
Comment
Input
bEnableBOOLTRUE: the function block is activeiMINTNumber of the M-function
poqDataInPOINTER TO SMC_OutQueue
Points on the SMC_OUTQUEUE structure object containing the SMC_GEOINFO objects of the interpolating path. This must be the queue that is also fed into SMC_CheckVelocities .
Output
bDoneBOOLThis variable will be set to
TRUEas soon as the input data (poqDataIn) has been processed completely. Hereafter, the function block will not perform any further actions until a reset will be done. If inputbExecuteisFALSE,bDonewill be reset toFALSE.bBusyBOOLTRUEwhile execution of function block is not finishedbErrorBOOLSignals that an error has occurred within the function block
wErrorIDSMC_ERRORSMC_NO_ERROR
Error identification