Knowledge Base

User programmable protocol: Communication Control Block

Since this was written we have introduced Hash commands. The Open_Serial hash command make this much simpler to do.

User programmable protocol is selected and configured via a suitable Communications Control Block (CCB). The following table summarizes the various parameters in the CCB. Entries are hyper-linked to detailed descriptions. If you are using a User programmable protocol you must set up a CCB with the specified parameters and then invoke it in your program with a ComSetCCB instruction.

ByteFunctionExample value
033
1 Not used – set to 255
2CharProfile0 (8,1,N)
3BaudRate5 (9600)
4 Not used – set to 255
5 Not used – set to 255
6 Not used – set to 255
7 Not used – set to 255
8 Not used – set to 255
9 Not used – set to 255
10 Not used – set to 255
11 Not used – set to 255
12 Not used – set to 255
13 Not used – set to 255
14 Not used – set to 255
15 Not used – set to 255
16 Not used – set to 255
17 Not used – set to 255
18 Not used – set to 255
19 Not used – set to 255

Note there are a lot of unused settings! It is safest to set them all to 255 in case we ever invoke any of them in future Firmware revisions.