Comet T4311 Instruction Manual Download Page 13

IE-SNC-T43(4)11-02 

 

  13 

Exception Responses 

After sending query to the transducer, master device waits for normal response. After master device 
query one of the following events can occur: 

1.

 

If transducer receives a query without communication error and query is possible to process, 
master device receives response. 

2.

 

If transducer does not receive all queries due to communication error, no response is sent. Main 
program is able to process condition of exceeding of time for query. 

3.

 

If transducer receives a query, but detects communication error (CRC), no response is sent. 
Main program is able to process condition of exceeding of time for query. 

4.

 

If transducer receives a query without communication error, but cannot process it, master device 
receives exception response, which informs master device on error nature. 

 

Exception Response 

- it has two fields to distinguish it from normal response: 

1.

 

Function code field 

2.

 

Data field. 

 

ad1 Function code field 

In normal response of slave device, function code of original query corresponds to function’s code 
of response. All function codes have most significant bit (MSB) equal to 0. In exception response 
slave device sets most significant bit of function code to 1. Main station recognizes exception 
response by means of this bit and can check data field for exception code. 

ad2 Data field 

Into exception response, transducer returns exception code in data field. Event causing exception is 
determined this way. 
 

Exception codes 
0x01 

Invalid function - Function code in query is not allowed action for transducer. 

0x02 

Invalid data address - Data address received in query is not allowed address for transducer. 

Modbus CRC 

Check sum of entire Modbus message are mostly automatically inserted to the end of request by 
communication programs themselves. If you need generate the Modbus CRC into your program, the 
way of calculation is as follows: 

A procedure for generating a CRC is: 

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 0xA001 
(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.

 

Repeat Steps 2 through 5 for the next 8–bit byte of the message. Continue doing this until all 
bytes have been processed. 

7.

 

The final content of the CRC register is the CRC value. 

8.

 

During connection of check sum to the message lower Byte of CRC register is sent as first, 
then upper Byte of CRC register. 

Summary of Contents for T4311

Page 1: ...TRANSDUCER T4311 T4411 Programmable temperature transducer for RTD Pt1000 sensor with serial output RS232 and RS485 Instruction manual...

Page 2: ...le Registers 10 Exception Responses 13 Exception codes 13 Modbus CRC 13 A procedure for generating a CRC is 13 Modbus registers of the transducer 14 Example of communication 14 Reading of temperature...

Page 3: ...ion of the transducer Transducer is designed for wall mounting There are two mounting holes at the sides of the case Interconnection terminals are accessible after unscrewing four screws and removing...

Page 4: ...C T43 4 11 02 The cable should not be led in parallel along power cabling Safety distance is up to 0 5 m otherwise undesirable induction of interference signals can appear Dimensions T4311 RS232 T4411...

Page 5: ...IE SNC T43 4 11 02 5 Typical application wiring connection of terminals T4311 power from communication port T4311 power from external voltage source T4411 RS485...

Page 6: ...s Operating temperature range 30 to 70 C with switched OFF display up to 80 C Operating relative humidity range 0 to 100 RH Outer influence in accordance with EN 33 2000 3 normal environment with thos...

Page 7: ...COM1 and press OK In following window COM1 Features enter to field Bits per second 9600 Data bits 8 Parity None Number of stop bits 1 Flow control None Continue by pressing OK Select item File Featur...

Page 8: ...communication to default value from manufacturer Modbus address 01h 9600 Bd 9 End of setting All changes in setting are continuously automatically stored If needed close transducer again with cover D...

Page 9: ...ion speed is enabled Jumper closed writing to transducer memory is enabled by means of function 16 0x10 Setting of several 16 bit registers Write Multiple Registers Jumper closed and pressed button fo...

Page 10: ...tting of transducer address and communication speed is possible to perform by writing to transducer registers Attention During write to transducer registers it is not enabled to write any number of re...

Page 11: ...is sum it enables to check correct reading of the area 3 Modify content corresponding to addresses 0x2001 and 0x2002 in master device as required Setting of other values should not be changed 4 Calcul...

Page 12: ...12 ED BF 77 D5 4F 10 77 D8 FF FF FF FF 40 DE 77 D3 2E F7 78 0C 06 5C 00 01 00 00 00 00 F3 DC 00 12 42 9F 52 3A 00 9F new address of the transducer original address was 00 01 00 24 new code of corresp...

Page 13: ...code ad2 Data field Into exception response transducer returns exception code in data field Event causing exception is determined this way Exception codes 0x01 Invalid function Function code in query...

Page 14: ...Write Multiple Registers In case there is a need for reading of measured values from transducer with higher resolution than one decimal measured values in transducer are stored also in Float format wh...

Page 15: ...ransducer always communicates with following parameters without regardless of setting stored in transducer communication speed 9600 Bd no check sum transducer address 00h If jumper during switching ON...

Page 16: ...mediately after jumper is opened If address is changing o and jumper is closed transducer responds with address 00h again and newly set address will be activated after jumper is opened o and jumper is...

Page 17: ...etting of communication speed and CRC must not change setting of communication speed and CRC is not possible to change without closed jumper Command 23242B0600 cr Response 24 cr Example 2 Reading of t...

Page 18: ...rument to fix Error 1 Measured value is over upper limit of allowed full scale range There is a reading Err1 on LCD display Value read from the transmitter is 999 9 This state appears in case of Measu...

Page 19: ...ied temperature probe model Resolution 0 1 C Accuracy without probe 0 2 C from 100 to 100 C 0 2 from reading over above range Operating temperature range transducer 30 to 80 C external probe depends o...

Page 20: ...ory for connection of transmitter transmitters with RS485 interface to the PC via serial port RS232 Connect connector marked RS232 directly to the PC connect power to connector marked RS485 Power volt...

Reviews: