SMC_QueueSetReservedEntries (FB)¶
FUNCTION_BLOCK SMC_QueueSetReservedEntries
This function block allows to set the number of reserved entries in the queue. If the number of free entries in the queue reaches this threshold, SMC_OutQueue.bFull will return TRUE.
This function block is intended for use with SMC_Interpolator2Dir. It can be used to set the number of elements that can be interpolated in reverse direction.
Note
SMC_QueueSetReservedEntries
is intended to be used after the
last path processing function block that copies the queue.
It will not work as desired when used after
SMC_CheckVelocities or SMC_CheckForLimits .
(These function blocks don’t copy the queue but modify it in-place.)
- InOut:
Scope
Name
Type
Initial
Comment
Input
bExecute
BOOL
poqDataIn
POINTER TO SMC_OUTQUEUE
nNumReservedEntries
UDINT
SMC_MIN_RESERVED_QUEUE_ELEMS
The number of reserved entries, see
SMC_OUTQUEUE.nNumReservedEntries
Output
poqDataOut
POINTER TO SMC_OUTQUEUE