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 - bEnable- BOOL- TRUE: the function block is active- iM- INT- Number of the M-function - poqDataIn- POINTER 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 - bDone- BOOL- This 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 input- bExecuteis- FALSE,- bDonewill be reset to- FALSE.- bBusy- BOOL- TRUEwhile execution of function block is not finished- bError- BOOL- Signals that an error has occurred within the function block - wErrorID- SMC_ERROR- SMC_NO_ERROR - Error identification 
