Offset Parser is used whenever the RAS provides fixed-length messages, with fields being present at fixed byte offsets, with predetermined lengths.
Param name | Mandatory | Description | Default Value | Possible Value |
---|---|---|---|---|
Encoding | Yes | Source encoding of the message coming from the automation system. | utf-8 |
|
StartBytes | No | Bytes delimiting the beginning of a valid message. Any bytes before this will be discarded. |
| Bytes, in hexadecimal notation. |
EndBytes | No | Bytes delimiting the end of a valid message. |
| Bytes, in hexadecimal notation. |
Length | Yes | The minimum length that the message should have. |
| 1 - 2,147,483,647 |
Trim | No | Whenever the message is longer than the Length, this determines whether the characters are trimmed off from the left or from the right. |
| None, Left, Right. |
OffsetMappings | Yes | A mapping of the RAS message to a dictionary of key-values. |
|
|