Jetter AG
245
JVM-407B
Programming
If
ResConnSend <
0
Then
// Increment the error counter value
Inc(SendErrors);
End_If
;
// Timeout for completely transmitting the data packet
// to be set up
TimerStart(RecvTimer, RecvTimeOut *
5
);
// Initialize the counter for the received data
ReceiveCnt :=
0
;
// Repeat, until all expected data have been received
// Otherwise, retry until timeout
While
ReceiveCnt < AmountToReceive
And Not
TimerEnd(RecvTimer)
Do
ResConnReceive := ConnectionReceiveData
( ConnHandle,
NotUsed,
NotUsed,
RecvBuf[ReceiveCnt],
SizeOf
(RecvBuf),
RecvTimeOut );
If
ResConnReceive >
0
Then
// A value has been received, increment the counter
ReceiveCnt := Rece ResConnReceive;
Else
// Error during reception
ResConnReceive := -
1
;
// Increment the error counter value
Inc(RecvErrors);
// Exit the loop
Exit
;
End_If
;
End_While
;
If
ResConnSend >=
0
And
ResConnReceive >=
0
Then
// No error --> Counter OK to increment
Inc(CommCnt);
Delay(SendDelay);
Else
// Exit the loop
Exit
;
End_If
;
End_Loop
;
If
ConnHandle >
0
Then
// Terminate the connection
ConnectionDelete(ConnHandle);
Содержание 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: ......