MbusSerialServerBaseenableRs485Mode Method |
Namespace: FieldTalk.Modbus.Slave
public int enableRs485Mode( int rtsDelay )
Public Function enableRs485Mode ( rtsDelay As Integer ) As Integer
public: int enableRs485Mode( int rtsDelay )
The use of RTS controlled RS232/RS485 converters should be avoided if possible. It is difficult to determine the exact time when to switch off the transmitter with non real-time operating systems like Windows and Linux. If it is switched off to early characters might still sit in the FIFO or the transmit register of the UART and these characters will be lost. Hence the slave will not recognize the message. On the other hand if it is switched off too late then the slave's message is corrupted and the master will not recognize the message.
Note |
---|
The delay value is indicative only and not guaranteed to be maintained. How precise it is followed depends on the operating system used, it's scheduling priority and it's system timer resolution. |
Note |
---|
This mode must be set before starting the server in order to come into effect. |