Download Manual
Transcript
Planning Your Application Program Chapter 6 ADAM5KTCP_SendReceive5KTCPCmd Description: This function is designed for user’s convenience, accepting the ASCII format string as a command. Then transform it to meet the Modbus/TCP specification. Syntax: int ADAM5KTCP_SendReceive5KTCPCmd(char szIP[], char szSendToTCP[], char szReceiveFromTCP[], char szModbusSend[], char szModbusReceive[]); Parameter: szIP[in]: the IP Address of the ADAM-5000/TCP that to be connected szSendToTCP[in]: the ASCII format string that send to a ADAM5000/ TCP szReceiveFromTCP[out]: the ASCII format string that response from a ADAM-5000/TCP szModbusSend[out]: to a the Modbus/TCP format string that send ADAM-5000/TCP szModbusReceive[out]: the Modbus/TCP format string that response from a ADAM-5000/TCP Return: Please refer to Chapter 6-2-4 “Return Codes” for more detail information ADAM-5000/TCP User’s Manual 6-19