Advantech ADAM-5000/TCP Series Manual page 79

Distributed da&c system based on ethernet
Table of Contents

Advertisement

Chapter 6
Planning Your Application Program
ADAM5KTCP_Connect
Description:
Syntax:
Parameter:
szIP[in]:
port[in]:
iConnectionTimeout[in]:
iSendTimeout[in]:
iReceiveTimeout[in]: the specified timeout interval for receiving response
Return:
6-12
ADAM-5000/TCP User's Manual
Establish a Windows Sockets connection in a speci-
fied ADAM-5000/TCP system.
int ADAM5KTCP_Connect(char szIP[ ], unsigned
short port, int iConnectionTimeout, int iSendTimeout,
int iReceiveTimeout);
the IP Address of the ADAM-5000/TCP that to be
connected
the TCP/IP connection port used with Modbus/TCP,
502 default
the specified timeout interval for connecting
to the ADAM-5000/TCP
the specified timeout interval for sending a
command to the ADAM-5000/TCP
from the ADAM-5000/TCP
Please refer to Chapter 6-2-4 "Return Codes" for more
detail information

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Adam-5000l/tcp

Table of Contents