Moxa ioPAC 8020-5-M12-C-T [52/66] Mx_modbus_tcp_slave_map_count

Moxa ioPAC 8020-5-M12-C-T [52/66] Mx_modbus_tcp_slave_map_count
Developer's Guide for Moxa RTU Controllers Programmer's Guide
2-44
MX_Modbus_Tcp_Slave_Stop
int MX_Modbus_Tcp_Slave_Stop(UINT32 sHandle);
Stops the Modbus server.
Input Parameters
sHandle
Return Value
Result of the call
MX_Modbus_Tcp_Slave_Add_Entry
int MX_Modbus_Tcp_Slave_Add_Entry(UINT32 sHandle, UINT8 Map_Type, U
INT16 Address, void
*pUserData, pfnModbusRead, pfnModbusWrite);
To add a Modbus entry.
Input Parameters
sHandle
Map_Type
Address
pUserData
pass the user data to the function callback
pfnModbusRead
function callback for Modbus read
pfnModbusWrite
function callback for modbus write
Return Value
Result of the call
MX_Modbus_Tcp_Slave_Delete_Entry
int MX_Modbus_Tcp_Slave_Delete_Entry(UINT32 sHandle, UINT8 Map_Type, UINT16 Address);
Deletes a Modbus entry.
Input Parameters
sHandle
Map_Type
Address
Return Value
Result of the call
MX_Modbus_Tcp_Slave_Map_Count
int MX_Modbus_Tcp_Slave_Map_Count(UINT32 sHandle, UINT16 *count);
Gets the number of entries for the registered port.
Input Parameters
sHandle
Output Parameters
count
Return Value
Result of the call

Содержание

Скачать