224
Jetter AG
10 Programming
If a client is to establish a TCP/IP connection to a server, you can invoke the
function and assign the return value of a variable for further evaluation as
follows:
Result := ConnectionCreate(CONNTYPE_CLIENT,
IPTYPE_TCP,
IP#192.168.75.123
,
46000,
T#10s
);
The task stops at the program line until the connection is established or the
specified timeout has elapsed. This function is processed in the following
steps:
Step
Description
1
The device JVM-407B tries to establish a TCP/IP connection via port
46000 to the network client with IP address 192.168.75.123.
2
If ...
... then ...
the network client has accepted the
connection,
the function is terminated and a
positive value is returned as handle
for further access to the connection.
the connection could not be
established and the timeout of 10
seconds has not elapsed yet,
step 1 is carried out.
an error has occurred or the
timeout has elapsed,
the function is terminated and a
negative value is returned.
If a server is to establish a TCP/IP connection to a client, you can invoke the
function and assign the return value of a variable for further evaluation as
follows:
Result := ConnectionCreate(CONNTYPE_SERVER,
IPTYPE_TCP,
0,
46000,
T#100s
);
Using this function with
a TCP/IP client
Functioning principle
with a TCP/IP client
Using this function with
a TCP/IP server
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: ......