Infosys在阅读器中打开 / AI 翻译

TF3xxx - Measurement · 0 次阅读

GVL_CM

Analysis function block constants:

cCMA_MaxDest  : UDINT := 20;
cCMA_MaxID    : UDINT := 1000;

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 than nMaxEntries and in addition must be an integral power of two.
  • bLockFree If this parameter is TRUE, 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