SEC 3120 16-bit Modbus Manual
Page 24 Of 46
Sensor Electronics Corporation
For Version 1.2 and above
December 2012
P/N 1580282, Rev. 1, 20121228
The data field of messages sent from a master to slave devices contains additional
information that the slave must use to take the action defined by the function code. This
can include items such as discrete and register addresses, the quantity of items to be
handled and the count of actual data bytes in the field.
For example, if the master requests a slave to read a group of holding registers
(function code 03), the data field specifies the starting register and how many registers
are to be read.
If no error occurs, the data field of a response from a slave to a master contains
the data requested. If an error occurs, the field contains an exception code that the master
application can use to determine the next action to be taken.
The data field can be nonexistent (of zero length) in certain kinds of messages.
CRC Error Checking
In RTU mode, messages include an error-checking field that is based on a
Cyclical Redundancy Check (CRC) method. The CRC field checks the contents of the
entire message. It is applied regardless of any parity check method used for the individual
characters of the message.
The CRC field is 2 bytes, containing a 16-bit binary value. The CRC value is
calculated by the transmitting device, which appends the CRC to the message. The
receiving device recalculates a CRC during receipt of the message and compares the
calculated value to the actual value it received in the CRC field. If the two values are not
equal, an error results. The CRC algorithm uses a polynomial of Hexadecimal A001:
1.
Load a 16–bit register with FFFF hex (all 1’s). Call this the CRC register.
2.
Exclusive OR the first 8–bit byte of the message with the low–order byte of the
16–bit CRC register, putting the result in the CRC register.
3.
Shift the CRC register one bit to the right (toward the LSB), zero–filling the
MSB. Extract and examine the LSB.
4.
(If the LSB was 0): Repeat Step 3 (another shift).
(If the LSB was 1): Exclusive OR the CRC register with the polynomial value
A001 hex (1010 0000 0000 0001).
5.
Repeat Steps 3 and 4 until 8 shifts have been performed. When this is done, a
complete 8–bit byte will have been processed.
6.
The CRC register now contains the check value to be appended to (or compared
to the received message check value) the end of the message, low 8-bit CRC byte
followed by the high 8-bit CRC byte.
Summary of Contents for SEC 3000
Page 15: ...Doc 1460003 Rev A Operation Manual SEC 3000 Electro Chemical Gas Sensor Page 12 of 13 ...
Page 54: ...Part Number 3100 EXP MANUAL REV 11 20141007 FIGURE 4 SEC 3100 SEC Millenium Mounting ...
Page 55: ...Part Number 3100 EXP MANUAL REV 11 20141007 FIGURE 5 SEC 3100 SEC 3000 Mounting ...
Page 56: ...TB 1 J1 TB 2 J2 1 6 1 6 1 4 1 6 TB 5 J5 TB 6 J6 ...
Page 148: ...SEC 3120 Wiring TB 1 P3 TB 2 P6 1 6 1 6 1 2 3 4 1 2 3 4 7 6 5 4 3 2 1 TB 3 P1 TB 4 P5 ...
Page 156: ......
Page 158: ......
Page 159: ......
Page 160: ......
Page 161: ......
Page 399: ...SEC P N 1460014 Rev ECO A 000209 Page 11 of 26 ...
Page 400: ...SEC P N 1460014 Rev ECO A 000209 Page 12 of 26 ...
Page 431: ...Part Number 1460005 Revision C ...
Page 433: ...Part Number 1460005 Revision C ...
Page 434: ...Part Number 1460005 Revision C ...
Page 435: ...Part Number 1460005 Revision C ...