Jetter AG
227
JVM-407B
Programming
Sending data
Data can be sent via a previously established TCP/IP connection or via a
UDP/IP connection of a client.
Via UDP/IP connection of a server data can not be sent, but only received.
Function ConnectionSendData(IPConnection:Int,
IPAddr:Int,
IPPort:Int,
Const
Ref
SendData,
DataLen:Int):Int;
Description of the function parameters:
Parameter
Value
Comment
IPConnection
Handle
Outcome of the function
ConnectionCreate()
IPAddr
Valid IP address
Required only for UDP/IP
client
IPPort
Valid IP port
Required only for UDP/IP
client
SendData
address of the data block to
be sent
1 ... 4,000
Data block length in bytes
The following return values are possible:
Return value
0
Data have been sent successfully
-1
Error when sending, e.g. connection interrupted
-3
Invalid handle, e.g. sending via a UDP/IP server
If data are to be sent via a TCP/IP connection, you can invoke the function
and assign the return value of a variable for further evaluation as follows:
Result := ConnectionSendData(hConnection,
0
,
0
,
SendBuffer,
SendLen);
Introduction
Function declaration
Function parameters
Return value
Using this function with
a TCP/IP connection
Содержание 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: ......