Jetter AG
229
JVM-407B
Programming
Receiving data
Data can be sent via a previously established TCP/IP connection or via a
UDP/IP connection of a server.
Via UDP/IP connection of a client data can not be received, but only sent.
Function ConnectionReceiveData(IPConnection:Int,
Ref
IPAddr:Int,
Ref
IPPort:Int,
Ref
ReceiveData,
DataLen:Int,
Timeout:Int):Int;
Description of the function parameters:
Parameter
Value
Comment
IPConnection
Handle
Outcome of the function
ConnectionCreate()
IPAddr
Address of a variable for
saving the IP address of
the sender
Required only for UDP/IP
server
IPPort
Address of a variable for
saving the IP port number
of the sender
Required only for UDP/IP
server
ReceiveData
Address of the data block
to be received
DataLen
1 ... 4,000
Maximum data block length
in bytes
Timeout
0 ... 1,073,741,824 [ms]
0 = infinitely
The following return values are possible:
Return value
> 0
Number of received data bytes
-1
Error when receiving data, e.g. connection interrupted
-3
Invalid handle, e.g. receiving data via a UDP/IP client
-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: ......