GVL_CM
Analysis function block constants:
cCMA_MaxDest : UDINT := 20;
cCMA_MaxID : UDINT := 1000;
cCMA_MaxDest
: Maximum number of destinations for an analysis function block.cCMA_MaxID
: Maximum ID that can be issued for an analysis function block (corresponds to the maximum number of possible analysis function blocks).
Transfer Tray parameter:
The internal transfer tray is initialized with the following constants for the transfer of data between the analysis function blocks.
cCMA_InitParsTransferTray : ST_MA_TransferTray_InitPars := (
nStreams := 2048,
nMaxEntries := 10,
nQueueSize := 64,
bLockFree := TRUE,
nUpdatePeriod := 2 );
nStreams
This parameter specifies how many independently functioning queues are provided. There should be a separate queue for each task-spanning data stream. Additional queues do not require any system resources.nMaxEntries
This parameter indicates the maximum number of elements that the queues can contain. For the communication of data buffers it usually makes sense for all buffers that come into question to have space in the queue so that no buffer overrun conditions can occur. A value of one can also be selected.nQueueSize
The reserved length of the queues. This value must be larger thannMaxEntries
and in addition must be an integral power of two.bLockFree
If this parameter isTRUE
, a modern lock-free implementation is used for the queues. This is the preset state. Otherwise a classic implementation with interrupt blocks is used. The lock-free implementation can achieve a better time behavior of the overall system, but may lead to higher latencies under an extremely high load.nUpdatePeriod
This parameter specifies how often internal interim results are refreshed. The frequency of complex operations can be reduced by a value greater than one. Values of two (preset) or three are usually practical.
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4022.25 | PC or CX (x86, x64) | Tc3_CM, Tc3_CM_Base, Tc3_MultiArray |