MbusSlaveServerserverLoop Method |
Modbus slave server loop
Namespace:
FieldTalk.Modbus.Slave
Assembly:
FieldTalk.Modbus.Slave (in FieldTalk.Modbus.Slave.dll) Version: 2.11.0-eval+eb1ecbe71c969eff5d7c05d58da16dade0474678
SyntaxPublic Function serverLoop As Integer
Return Value
Type:
Int32 BusProtocolErrors.FTALK_SUCCESS on success or error code.
See
BusProtocolErrors for possible error codes.
Remarks
This server loop must be called continuously. It must not be
blocked. The server has to be started before calling the serverLoop()
method.
In most cases the server loop is executed in an infinite loop in
its own thread:
while (notTerminated)
{
result = mbusProtocol.serverLoop();
}Do While notTerminated
result = mbusProtocol.serverLoop()
LoopNo code example is currently available or this language may not be supported.
See Also