Function Block MSG_BOX

The Function Block MSG_BOX manages messages of an interface in RAW format.

The Function Block is connected to the same interface variable via RAW_IN and RAW_OUT>. For example, in.RAW and out.RAW. Switching with the same Function Block between boxes is not possible.

Note: Not all outputs may be supported for communication. This varies depending on the interface.

Input RAW_IN

Receives data from the interface. The feedback of the process can be distinguished so that transmission to multiple Function Blocks is possible. However, simultaneous sending can lead to data loss.

Input GET_POSITION

When the value changes, the corresponding position is retrieved. The position starts at 0 and ends at TOTAL-1. The values are automatically limited. The value NULL at the input is ignored.

Tip: To always display the latest message, the output TOTAL can be connected to the input. An impulse should also be triggered via SEL so that a message is displayed even with a full box.

Input GET_ID

When the value changes, the corresponding ID is searched for and if a message is found, it is displayed. The value NULL at the input is ignored.

Input GET_NEXT

When there is a positive edge, the next message is called.

Input GET_PREV

When there is a positive edge, the previous message is called.

Input DELETE

When there is a positive edge, the message is deleted.

Input READ

When there is a positive edge, the message is marked as read.

Output RAW_OUT

Communicates in JSON format with the interface. The output is only not equal to NULL when sending.

Output TOTAL

Returns the number of messages in this box.

Output POSITION

Returns the current message position of the message. The latest message is appended at the end.

Output ID

Output FROM

Returns the sender of the message.

Output TO

Returns one or more recipients of the message. Multiple recipients are separated by a semicolon ";".

Output SUBJECT

Returns the subject of the message.

Output TEXT

Returns the text or body of the message.

Output PRIORITY

Returns the priority of the message. How these priorities are evaluated depends on the interface used. Possible values are: 1, 0, -1 or also "high", "low"

Output TYPE

Returns the type of the message.

Output STATUS

Returns the status of the message.

Output TIME

Returns the timestamp in DT# format of the message.

Output READED

Returns the read status of the message.