Function used to connect the Modbus client to the specified Modbus TCP server and configure the initial index for Modbus registers.
Syntax |
i32 mbc_connect (i32 mbc, const char* ipAddr, i32 port [, i32 baseIdx=-1]) |
||||||||
---|---|---|---|---|---|---|---|---|---|
mbc |
Handle Modbus returned by the previous function mbc_init() |
||||||||
ipAddr |
IP address of the server to connect to |
||||||||
port |
TCP port to be used for the connection. Typically 502 |
||||||||
baseIdx |
Parameter to determine how to handle the initial entity index. (optional, default -1)
|
||||||||
Result |
Returns:
|
||||||||
Validity |
Task |
||||||||
System Requirements |
From RTE 34.30.0 |
||||||||
Note |