[sbus]

Settings for the S-Bus driver

[sbus] AliveInterval

Type
uint
Default
30
For the time of the interval, it is checked if the S-Bus device is still reachable and if no connection is established it is tried to establish the connection again.

[sbus] LocalSBusPort

Type
uint
Default
3002
Port which is used for receiving responses from the S-Bus device.

[sbus] MaxGap

Type
uint
Default
1
Maximum gap between elements that are followed by each other and grouped when getting a read request. E.g. R0 and R1 are grouped per default while R0 and R2 are queried separately by default. The element gap is the difference between the x part (or y part when using DB) of the address. Example: If MaxGap = 2 the addresses F0 (lowest bit of byte 0) and F16 (lowest bit of byte 2) are grouped in one telegram. F0 and F24 (lowest bit of byte 3) are split into two telegrams. Note: Bits within one byte are automatically grouped. Text addresses can not be grouped. Caution: For increased transfer rates the MaxGap value can be increased, but no information can be given about when no increase of performance can be gained anymore from incremeting the MaxGap value.

[sbus] MaxNumOfNakTelegrans

Type
uint
Default
150

[sbus] MaxTelegramQueueSize

Type
ulong
Default
500000
Maximum number of elements that can be kept by the driver's internal queue.

[sbus] PlcRecvBufferSize

Type
int
Default
3
Limits the amount of telegrams that are sent to the PLC before a answer is returned. Note When used serial, the SAIA PLC can only store 3 telegrams inside the buffer. The used TCP protocol of the WinCC OA S-Bus driver uses a queue which can store up to a maximum of 32 telegrams.

[sbus] StableRead

Type
uint
Default
0
Range
0|1
Defines the constellation of the array addresses read values 0 - The values can be part of different cycles, i.e. values from different reading attempts (Retransmit with one or more reading requests) are contained in an array. 1 - All values inside the array are part of the same cycle, i.e. the values are answers to one transmitting attempt during one cycle.

[sbus] StableWrite

Type
uint
Default
1
Range
0|1
Defines the driver's writing behavior. 1 - The writing commands are serialized, i.e. only one writing command is sent to the PLC which must be acknowledged before a new writing command can be sent. 0 - writing commands are not serialized. Caution If StableWrite is deactivated (=0) it may occur that a sequence of writing commands sent in the order A-B-C-D will be received in the order A-B-D-C from the PLC due to the retransmit protocol. This can lead to unwanted behavior when receiving operative commands. Note Acknowledging a command refers to the correct receiving of a command on the PLC. Whether a command is correctly performed must be monitored by the application!