490
Jetter AG
10 Programming
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 JC-120MC sets up TCP/IP port 46000 for receiving connection
requests.
2
If ...
... then ...
the network client has established
a connection,
no further connection requests to
this port are accepted, 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 100 seconds has not elapsed
yet,
the system waits for a connection to
be established.
an error has occurred or the
timeout has elapsed,
the function is terminated and a
negative value is returned.
If a client is to establish a UDP/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_UDP,
0
,
0
,
0
);
UDP is a connectionless communication mode. For this reason, the device
JC-120MC opens only one communication channel for sending data to a
network client. This function is processed in the following steps:
Step
Description
1
The device JC-120MC sets up a UDP/IP communication channel for
sending data.
2
If ...
... then ...
no error has occurred,
the function is terminated and a
positive value is returned as handle
for further access to the connection.
an error has occurred,
the function is terminated and a
negative value is returned.
Functioning principle
with a TCP/IP server
Using this function with
a UDP/IP client
Functioning principle
with a UDP/IP client
Summary of Contents for JC-120MC
Page 1: ...User Manual JC 120MC Controller 60880901 We automate your success...
Page 18: ......
Page 40: ...40 Jetter AG 3 Identifying Hardware revisions see page 38 Related topics...
Page 160: ......
Page 186: ......
Page 196: ......
Page 485: ...Jetter AG 485 JC 120MC Programming Topic Page Programming 486 Registers 498 Contents...
Page 521: ...Jetter AG 521 JC 120MC Programming Use 29 bit identifier Default 11 bit identifier...
Page 586: ......
Page 604: ......
Page 633: ......