ADAMTCP_SendReceive6KTCPCmd
Description:
This function is specific for 6000 series. It accepts the command in ASCII format string. Then transform
it to follow the Modbus/TCP communication protocol.
Syntax:
int ADAMTCP_SendReceive6KTCPCmd(char szIP[], char szSendToTCP[], char szReceiveFromTCP[]
char szModbusSend[], char szModbusReceive[])
Parameter:
szIP[in]: the IP Address of the target ADAM-6000 module to be connected.
szSendToTCP[in]: the ASCII format string that send to the ADAM-6000.
szReceiveFromTCP[out]: the ASCII format string that response from the ADAM-6000.
szModbusSend[out]: the Modbus/TCP format string that send to the ADAM-6000.
szModbusReceive[out]: the Modbus/TCP format string that response from the ADAM-6000.
Return:
Please refer to Chapter 6-2-3 "Return Codes" for more detail information