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
Содержание JVM-407B-HMI
Страница 1: ...User Manual JVM 407B HMI 60879892 We automate your success...
Страница 14: ......
Страница 26: ...26 Jetter AG 2 Product description and design Rear view...
Страница 34: ......
Страница 80: ......
Страница 98: ...98 Jetter AG 5 Initial commissioning Initial commissioning in JetViewSoft see page 86 Related topics...
Страница 106: ......
Страница 144: ......
Страница 168: ......
Страница 178: ......
Страница 182: ......
Страница 196: ...196 Jetter AG 10 Programming If Merker1 Then Inc Status_LEDs Delay T 100ms End_If End_Loop End_Task...
Страница 220: ...220 Jetter AG 10 Programming Topic Page Programming 221 Registers 233 Sample programs 238 Contents...
Страница 258: ......
Страница 268: ......
Страница 274: ......
Страница 294: ...294 Jetter AG Appendix Rear view...
Страница 299: ......