DiagHistory_Parameters

These parameters are constant at runtime, but can be changed on a project-specific basis via the library manager and are saved with the project properties. They allow longer message texts or more arguments within the message texts by adjustment. Due to the large, partly internal, arrays, the size of the function block instances and also the program size may increase considerably by adjusting the parameters.

Syntax

VAR_GLOBAL CONSTANT
    // FB-internal read buffer - Max.  parameters/arguments buffer size per message in bytes.
    // Reduce to optimize memory resources. Increase if needed.
    cMsgParsBufferSize    : UINT(1..1000) := 128;      
 
    // FB-internal read buffer - Max. number of messages in diag history buffer. 
    // (ETG.1020 Norm states 250 max. possible messages. Not all Slaves hold this many messages).
    // Reduce to optimize memory resources. Increase if needed.
    cMaxMsgsBuffer        : UINT(1..250)  := 250;      

    // FB-internal read buffer - Max. length of message string. Reduce to optimize memory resources.
    // Increase if needed. Increase if needed.
    cMsgStringLength      : UINT(1..255) := 200;        
END_VAR