ERROR HANDLING

An error condition should be reported to ONSPEC when any command is not responded to with a valid response from the device, i.e. any command which is causing a time out or getting an error code from the device. That is, when the template encounters a problem trying to access data in the device, the template will report the error in all the corresponding table locations in ONSPEC.

An error is indicated by the state of bit 0 in a given status byte. If bit 0 is on, the value is invalid. If a value which is invalid is displayed on an ONSPEC display, it will turn cyan (light blue color). Every table location whose value is in error will have the validity bit (bit 0) set in the status byte.

The invalid status bit will be cleared in the next cycle if the communication resumes. Then the cyan color will be changed to its normal color.