Establish a Modbus connection.
status = modbus_connect(mbc) [status, ierr] = modbus_connect(mbc)
The modbus connection created with modbus_newTcp or modbus_newRtu.
0 if connection was successful and -1 otherwise.
Erreur number.
Establish a connection to a Modbus server.
When called with one output argument, a Scilab error will occur when the connection fails. When called with two output arguments, no Scilab error will occur but ierr
will contain the internal modbus error number.