Jetter AG
223
JVM-407B
Programming
Establishing a connection
Before data can be sent or received, a connection has to be established.
Here, the following criteria have to be discerned:
Which transaction log (TCP or UDP) has to be used?
Is it a client or a server that has to be installed?
Function ConnectionCreate(ClientServerType:Int,
IPType:Int,
IPAddr:Int,
IPPort:Int,
Timeout:Int):Int;
Description of the function parameters:
Parameter
Value
Comment
ClientServerType
Client = 1 =
CONNTYPE_CLIENT
Server = 2 =
CONNTYPE_SERVER
IPType
UDP/IP = 1 =
IPTYPE_UDP
TCP/IP = 2 =
IPTYPE_TCP
IPAddr
Valid IP address
Required only for TCP/IP
client
IPPort
Valid IP port
Will be ignored for UDP/IP
client
Timeout
0 ... 1,073,741,824 [ms]
0 = infinitely
If the return value was positive, the connection could be established. If the
returned value was negative, an error occurred and the connection could not
be established.
Return value
> 0
A positive return value must be stored in a variable. It must
be made available as a handle at activating the functions
Send data
,
Receive data
, and
Terminate connection
.
-1
Error during connection set-up
-2
Internal error
-3
Invalid parameter
-8
Timeout
Introduction
Function declaration
Function parameters
Return value
Summary of Contents for JVM-407B-HMI
Page 1: ...User Manual JVM 407B HMI 60879892 We automate your success...
Page 14: ......
Page 26: ...26 Jetter AG 2 Product description and design Rear view...
Page 34: ......
Page 80: ......
Page 106: ......
Page 144: ......
Page 168: ......
Page 178: ......
Page 182: ......
Page 258: ......
Page 268: ......
Page 274: ......
Page 294: ...294 Jetter AG Appendix Rear view...
Page 299: ......