CN8240 & CN8260 Series Communications & Options
Digital
Communications Option
Omega+ Protocol
The Omega+ Protocol provides an easy way to query and modify controller parameters using a personal computer and the optional digital communications option of the 18C/25C.
In this manual, the word “host” refers to the personal computer that’s communicating with the controllers in the serial link, and the word “slave” refers to the controllers themselves.
All transactions between the host and the slaves are done with messages consisting of only printable ASCII charac- ters. There are only two primary types of messages: Requests and Responses. Messages coming from the host are called requests and messages coming from the slaves are called responses.
With the exception of a broadcast request, for every request sent from the host, the slave will send back a response. If a slave does not respond within 100 milliseconds, then the request can be considered lost.
A broadcast request is a request having an ID of ‘00’ (see Message Formats below). It is used to address all slaves on the network. All slaves on the network will perform the actions requested in a broadcast message. However, a response message will not be returned. Therefore, the host can only broadcast Write or Auxiliary Command Requests. All slaves will ignore all Read Broadcast Requests.
Message Formats
All Omega+ messages adhere to the general format of:
[START CHAR][ID][ZONE][TYPE][PARAM][ERROR][DATA][CHKSUM][END CHAR]
START CHAR
This is a single character which designates the start of the message. For a Request message, this character is the ASCII ‘$’ and for a Response message, this character is the ASCII ‘%’.
ID
This is a
In order to represent 255 with just two ASCII characters, a number system known as the Message Code Numbering System is used. In this system, the most significant digit is represented with the numbers
The numbers
| Example: |
|
|
Message Code Value | = | Decimal Value | |
|
|
| |
00 |
| 0 + 0 = 00 | |
99 |
| 90 | + 9 = 99 |
A0 |
| 100 | + 0 = 100 |
A2 |
| 100 | + 2 = 102 |
B8 |
| 110 | + 8 = 118 |
P5 |
| 250 | + 5 = 255 |
Zone
This is a two character ID identifying the Zone number in
6