33
Docklight V2.2 User Manual 07/2016 Copyright 2016 Flachmann und Heggelbacher GbR
Working with Docklight (Advanced)
18.06.2015 11:07:23.251 [TX] -
01 02 03 04 05 0F
The placeholder has been replaced by the sum over the message bytes:
1 + 2 + 3 + 4 + 5 = 15 or Hex 0F.
Using Receive Sequences with automatic checksum validation
A) Defining a Receive Sequence with checksum
1.
. Enter a
Name
for the sequence.
2.
Enter the
Sequence
data, including the HEX 00 placeholder value. We use the
same sequence as in the above Send Sequence example:
01 | 02 | 03 | 04 | ?? | 00.
3.
Go to the
Action | Comment
tab and enter the following text:
Correct checksum
4.
Go to the
Checksum
tab and pick
MOD256
in the left dropdown list.
5. Keep the
Detect Checksum OK
option. It means that the Receive Sequence is
only triggered if the MOD256 checksum byte in the received data is correct.
5.
Click
OK
to confirm the changes
B) Running the test
6.
Start communications and send some data telegrams to your Docklight
application / COM port.
The Communication Window output could look like this:
15.02.2016 17:43:28.072 [RX] -
01 02 03 04 05 0F
Correct
checksum
15.02.2016 17:43:31.870 [RX] -
01 02 03 04 0F 19
Correct
checksum
15.02.2016 17:43:35.833 [RX] -
01 02 03 04 10 1A
Correct
checksum
NOTE: This example showed how to define a Receive Sequence that is triggered by data
telegrams with correct checksum only. It is also possible to do the opposite: detecting a
checksum error. Go to the
Checksum
tab and change the option
Detect Checksum OK
to
Checksum Wrong
.
6.5
Controlling and Monitoring RS232 Handshake Signals
The Docklight project settings for
support offer a
that allows
you to set or reset the RTS and DTR signals manually by clicking on the corresponding
indicator. The following section describes how to use the
Function Character '!' (F11
key)
to change the RTS and DTR signals temporarily within a Send Sequence, or detect
changes for the CTS, DSR, DCD or RI lines using a Receive Sequence.
Содержание Docklight V2.2
Страница 1: ...Docklight V2 2 User Manual 07 2016 Copyright 2016 Flachmann und Heggelbacher GbR...
Страница 5: ...Copyright...
Страница 7: ...Introduction...
Страница 11: ...User Interface...
Страница 14: ...Features and Functions...
Страница 17: ...Working with Docklight...
Страница 28: ...Working with Docklight Advanced...
Страница 41: ...Examples and Tutorials...
Страница 46: ...Reference...
Страница 62: ...Support...
Страница 64: ...Appendix...
Страница 76: ...76 Docklight V2 2 User Manual 07 2016 Copyright 2016 Flachmann und Heggelbacher GbR Appendix...
Страница 77: ...Glossary Terms Used...