Omega CN1166 manual Error and Exception Responses, CRC16 Calculation

Page 59

G.Error and Exception Responses

If the controller receives a message which contains a corrupted character (parity check fail, framing error etc.), or if the CRC16 check fails, the controller ignores the message. If the message is otherwise syntactically flawed (e.g. the byte count or word count is incorrect) the controller will also not reply.

However, if the controller receives a syntactically correct message which nonetheless contains an illegal value, it will send an exception response, consisting of five bytes as follows:

Addr. Func. Exception No.

CRC16

 

 

 

 

HI

LO

The Function Number field consists of the function number contained in the message which caused the error, with its top bit set (i.e. function 3 becomes 0x83), and the Exception Number is one of the codes contained in the following table:

Code

Name

Cause

 

 

 

1

ILLEGAL FUNCTION

Function Number out of range

 

 

 

2

ILLEGAL DATA ADDRESS

Parameter ID out of range or not supported

 

 

 

3

ILLEGAL DATA VALUE

Attempt to write invalid data/action not

 

 

carried out

 

 

 

4

DEVICE FAILURE

N/A

 

 

 

5

ACKNOWLEDGE

N/A

 

 

 

6

BUSY

N/A

 

 

 

7

NEGATIVE

N/A

 

ACKNOWLEDGE

 

 

 

 

 

 

 

H.CRC16 Calculation

This is a 16-bit cyclic redundancy checksum. It is calculated in accordance with a formula which involves recursive division of the data by a polynomial, with the input to each division being the remainder of the results of the previous one.

The formula specifies that input is treated as a continuous bit-stream binary number, with the most significant bit being transmitted first. However, the transmitting device sends the least significant bit first.

According to the formula, the dividing polynomial is 216 + 215 + 22 + 1 (Hex 18005), but this is modified in two ways:

i.Because the bit-order is reversed, the binary pattern is reversed also, making the MSB the rightmost bit, and

O077-4

Volume II

4-5

Image 59
Contents Page Page RAMP/SOAK Profile Volume Operating Instructions Volume Installation & Configuration InstructionsContents PANEL-MOUNTING the Controller Unpacking ProcedureConnections and Wiring Rear Terminal Connections RTD Inputs Mains Line Input2 24V Nominal AC/DC Supply Thermocouple InputSSR Drive Outputs Linear InputsRemote Run/Hold Input Relay Outputs11 RS485 Serial Communications Link DC OutputsRemoving the Profile Controller from ITS Housing Internal Links and SwitchesRemoving the Output 2/Output 3 Option PCBs REMOVING/REPLACING the Output 2/OUTPUT 3 Option PCBs Replacing the Instrument in ITS HousingInput Type Selection of Input Type and Output 1 TypeCPU PCB Relay/SSR Drive/Solid State Output Primary Output Output 1 TypeOutput 2 TYPE/OUTPUT 3 Type Hardware Definition Code Entry Into Configuration ModeWit h Hardw are Definit ion Code displayed Configurat ion ModeHardware Definition Code Input/Output Type Selection Option SelectionWit h Hardw are Definit ion Code displayed Configuration Mode ParametersParameter AL1 OFF, AL2 OFF Parameter Page Exit from Configuration Mode Base Mode Alphabetic Index Controller SET-UP ModeProgram Definition Mode CREATING/EDITING a Program Modbus CommunicationsDisplay Sequence no Program Running Base ModeAborting a Program Starting a ProgramPutting a Program in Hold Releasing a Program from HoldRead Only whilst Program is running/held Display Sequence Program RunningPRE-TUNE Feature RaPID Control FeatureIndication of PRE-TUNE and RaPID Status Engaging Both PRE-TUNE and RaPID FeaturesRaPID Status when Hardware Definition Code has the following significance Viewing the Hardware Definition CodePress till front panel shows Press or to change display to Manual ControlController SET-UP Mode Lower display = Parameter Details Parameter Function Adjustment Range Default ValueON/OFF Parameter Function Adjustment Range Default Value Power Alarm Operation Deviation When this display shows Exit from Controller SET-UP ModeEntry Program Definition Mode CREATING/EDITING a ProgramBasic Guidelines Creating a ProgramTo make a Soak segment Defining Segments Rate ModeDefining Segments Time Mode Program Options T p o i n t Guaranteed Soak BandSegment Event Status Press key To display Exit from Program Define Mode Default Values and Adjustment RangesMessage Formats IntroductionModbus Functions Supported CRC16 Read Coil Status Read n Bits 01/02Force Single Coil Write 1 Bit Read Holding Registers Read n Words 03/04Preset Multiple Registers Write n Words 16 B Preset Single Register Write 1 Word 06 BLoopback Diagnostic Test CRC16 Calculation Error and Exception ResponsesReversed BIT Order Used Bit Parameters Controller Status Byte Parameter NumbersController Parameters Word ParametersInstrument ID Parameters Volume O077-4 Profiler Status Byte Profiler CommandsGeneral Universal InputInput Range Remote RUN/HOLD Input Option Solid State OutputRelay SSR Drive/TTLTypes Available Relay, SSR drive, solid state and DC Solid State SSR Drive/TTL Loop Control Alarm ControlPerformance Under Reference Conditions PerformanceReference Conditions S077-A Volume Physical EnvironmentalSee Performance Appendix B Summary of Displays Program Define Mode Parameters Configuration Mode Parameters AppendixC RaPID Control Feature AT OFF Alphabetical Index S077-IDX Volume Making a Soak Segment S077-IDX Volume Unpacking Procedure Word Parameters II/4-8