Serial message support – Wavetronix Click 500 (programmable controller) (CLK-500) - Developer Guide User Manual
Page 78
In this chapter
˽ Creating Simple Messages
˽ Creating Messages with Variables and Checksums
˽ Using Variables in Messages
˽ Directly Accessing Receive Message Variable Data
˽ Using Variable-length Variables in Messages
˽ Using Checksums in Messages
˽ Transmitting Data
˽ Receiving Data
˽ Wavetronix Protocol Support
˽ Example Code 8.1
8
The Click 500 message library facilitates the rapid implementation of serial communication
protocols. You can use this library to quickly implement serial protocols to allow systems
to communicate with each other. The Click 500 supports simultaneous communication of
multiple serial protocols.
A serial message can incorporate variables and checksums and can be transmitted or re-
ceived over a serial communications channel. Variable values are automatically inserted
into messages prior to transmission and read from received messages.
Checksums are data fields used by the receiver to validate the data integrity and are added
to outgoing messages that require a checksum. Checksums are calculated upon the recep-
tion of a message containing a checksum value and validated during the message parsing
process.
Serial Message Support
8