244
Jetter AG
10 Programming
Task
TCPclient
Autorun
Var
RecvTimer : Timer;
ReceiveCnt : Int;
End_Var
;
// Timeout for connection
ConnTimeOut :=
T#5s
;
// Timeout via receiving a data package
RecvTimeOut :=
T#5s
;
// Amount of data to be received
AmountToReceive := MSG_LEN;
SendDelay :=
T#500ms
;
// Terminate all connections, initialize the data structures
ResConnInit := ConnectionInitialize();
If
ResConnInit >=
0
Then
Trace(
'Client running.$n'
);
While
(
True
)
Do
// Connection attempt
ResConnCreate := ConnectionCreate
( CONNTYPE_CLIENT,
IPTYPE_TCP,
TCP_ADDR,
TCP_PORT,
ConnTimeOut );
If
ResConnCreate >
0
Then
Trace(
'Connection established.'
);
// Save the return value (handle)
ConnHandle := ResConnCreate;
// Repeat, while the connection exists
Loop
ResConnSend := ConnectionSendData
( ConnHandle,
0
,
0
,
SendBuf,
AmountToReceive );
Содержание 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: ......