SMC_SetQueueCapacity (FUN)

FUNCTION SMC_SetQueueCapacity : BOOL

This function sets the variable nCapacity of the SMC_OUTQUEUE. task-safety: call from producer task only

Note

This function is only useful if you create your own SMC_OutQueue instances, e.g. when implementing your own path preprocessor FB.

task-safety: not task-safe; the application has to make sure that no other queue function is called while this function is active, and that no other queue function is active when this function is called.

InOut:

Scope

Name

Type

Comment

Input

poq

POINTER TO SMC_OUTQUEUE

Outqueue to be reset

nSizeInBytes

UDINT

The size of the queue buffer in bytes

Return

SMC_SetQueueCapacity

BOOL