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);
Summary of Contents for JVM-407B-HMI
Page 1: ...User Manual JVM 407B HMI 60879892 We automate your success...
Page 14: ......
Page 26: ...26 Jetter AG 2 Product description and design Rear view...
Page 34: ......
Page 80: ......
Page 106: ......
Page 144: ......
Page 168: ......
Page 178: ......
Page 182: ......
Page 258: ......
Page 268: ......
Page 274: ......
Page 294: ...294 Jetter AG Appendix Rear view...
Page 299: ......