background image

Network Communication

Each device must have a unique ModBus address for startup and it must be set before connection to the network. The local 

DIP switch is used to set the ModBus device address (1-255). Set the device address as shown in Figure 8.

The factory default network configuration is:

 

Baud Rate 

38400

 Parity 

 None

 

Stop Bits 

1

 

CRC 

 

A001 (CRC-16 reverse)

 Delay 

 0 

(minimum)

Note that the ModBus network configuration may be customized at the factory if required. For example, the baud rate and 

other parameters may be factory configured to suit specific applications.

The RH/T Sensor operates as a slave. It will not communicate unless a master is connected to the network and sends a request 

for information, then the slave will answer. If the device does not communicate properly, first check that the communication 

wires are not reversed. Then check that the slave address has a unique setting for the network segment it is connected to. 

Finally, verify that the device baud rate, parity bit, stop bit and RTU mode CRC polynomial are correct for the network it is 

connected to.

ModBus Protocol

This section describes the implementation of the ModBus protocol. It is intended to assist control system programmers who 

may need to add support to their systems to communicate with this device. This device communicates on standard ModBus 

networks using RTU mode transmission. It operates as a slave device (address from 1 to 255) and expects a ModBus master 

device to transmit queries, which it will answer.

Figure 8

OFF

ON

Greystone Energy Systems, Inc.  150 English Drive,   Moncton, NB E1E 4G7  Canada  Tel: +1-506-853-3057  Tollfree (North America): +1-800-561-5611 Fax: +1-506-853-6014

Email: [email protected]    Web: www.greystoneenergy.com

DIP Switch Position 

128 

64 

32 

16 

ModBus 

Address 

OFF  

OFF  

OFF  

OFF  

OFF  

OFF  

OFF  

ON 

OFF  

OFF  

OFF  

OFF  

OFF  

OFF  

ON 

OFF  

OFF  

OFF  

OFF  

OFF  

OFF  

OFF  

ON 

ON 

OFF  

OFF  

OFF  

OFF  

OFF  

ON 

OFF  

OFF  

 

 

 

 

 

 

 

 

 

ON 

ON 

ON 

ON 

ON 

ON 

ON 

OFF  

254 

ON 

ON 

ON 

ON 

ON 

ON 

ON 

ON 

255 

2

4

16

32

1

8

64

BUS ADDRESS

128

 

RTU Message Format 

ModB us Framing 

8 bit binary 

Data Bits 

start bits --- 1 

data bits --- 8 

parity bits --- none 

stop bits --- 1 

Baud Rate 

38400 

Duplex 

Half duplex 

Error Checking 

Cyclical Redundancy Check (CRC)   

CRC -16 Reversed --- polynomial  x16+x15+x2+x0  (0xA001)  

Latency 

More than 3.5 characters --- minimum 

 

RTU  Framing Support and Bit Sequences 

Start 

Stop 

Содержание NTDAMOD

Страница 1: ...4 Special care must be taken not to damage any internal components during installation Make wire connections as per the Wiring illustrations on Page 2 Once wiring and set up are complete re install cover and tighten the 2 screws using a Phillips screwdriver Mounting The sensor installs directly into any air duct with a minimum width diameter of 25 5 cm 10 Select a suitable installation area in the...

Страница 2: ...SHLD terminal on each device If the device is installed at either end of the network an end of line EOL termination resistor 121 ohm should be installed in parallel to the A and B terminals This device includes a network termination jumper and will connect the resistor correctly on the pcb Simply move the pcb jumper to the EOL position and no external resistor is required as shown in Figure 7 The ...

Страница 3: ...to ModBus Protocol This section describes the implementation of the ModBus protocol It is intended to assist control system programmers who may need to add support to their systems to communicate with this device This device communicates on standard ModBus networks using RTU mode transmission It operates as a slave device address from 1 to 255 and expects a ModBus master device to transmit queries...

Страница 4: ...ion Codes 0x03 Read holding registers Query Slave address 0x01 to 0xFF Function code 0x03 Starting address MSB Starting address LSB Quantity of registers MSB Quantity of registers LSB CRC LSB CRC MSB Starting address 0x0000 to 0xFFFF Quantity of registers 0x0000 to 0x007D Response Slave address 0x01 to 0xFF Function code 0x03 Byte count 2N Register value MSB Register value LSB CRC LSB CRC MSB N Qu...

Страница 5: ...01 CRC LSB CRC MSB Response Slave address 0x01 to 0xFF 0x03 0x02 Register value MSB Register value LSB CRC LSB CRC MSB Register value 0x0000 to 0x03E8 corresponding to 0 to 100 RH multiplier 10 This register has a multiplier of 10 the application must divide by 10 to obtain the correct value 0x06 Write TEMPERATURE_OFFSET Query Slave address 0x01 to 0xFF 0x06 0x00 0x02 Register Value MSB Register v...

Страница 6: ...o conform to a local reference Register value 0xFFF6 to 0x000A for 10 to 10 corresponding to RH_OFFSET 10 to 10 RH ie 0x0003 3 3 RH offset 0x06 Write TEMPERATURE_UNITS Query Slave address 0x01 to 0xFF 0x06 0x00 0x04 0x00 Register value LSB CRC LSB CRC MSB Response Slave address 0x01 to 0xFF 0x06 0x00 0x04 0x00 Register value LSB CRC LSB CRC MSB Register value 0x0000 sets the device to C operation ...

Страница 7: ...me 15 seconds typical Stability 1 2 RH typical 50 RH in 5 years Temperature Sensor 20KΩ NTC thermistor Accuracy 0 2 C 0 4 F curve matched Range 40 50 C 40 122 F Resolution 0 1 C F Interface Hardware 2 wire RS 485 Software Native ModBus MS TP protocol RTU Baud Rate 38400 Network Address Range Locally set to 1 255 Parity None Stop Bits 1 CRC A001 CRC 16 reverse GreystoneEnergySystems Inc 150EnglishD...

Отзывы: