SendCustomMessageTypes

This method is called once to overwrite the default categories (Default, Info, Warning, Error, Critical). Categories can be overwritten again by calling them up again. The user-defined categories can then also be used in the SendMessageEx method.
Syntax
METHOD SendCustomMessageTypes : BOOL
VAR_INPUT
aCustomTypes : ARRAY[1..5] OF STRING;
END_VAR
Return value
Name | Type | Description |
|---|---|---|
SendCustomMessageTypes | BOOL | The method returns the return value TRUE if the call was successful. |
Inputs
Name | Type | Description |
|---|---|---|
aCustomTypes | ARRAY[1..5] OF STRING | User-defined categories of (push) messages. Exactly five categories must be entered in the desired order. |
Possible errors are output at the outputs bError and hrErrorCode of the function block instance.