GEX8258701EN-01

Modbus Communication

Description

Modbus is a client/server protocol for communication between devices connected in a network. Modbus devices communicate using a client/server technique in which only one device (client) can send request messages. The other devices in the network (server) respond, returning the data requested by the client or executing the action contained in the message sent. A server is a device connected to a network that processes information and sends the results to the client using the Modbus protocol.

The client device can send messages to individual servers, or to all the servers connected to the network (broadcast), whilst server devices can only respond to messages individually and to the client device. The Modbus standard employs the RTU code for data transmission.

Data Format (RTU)

The coding type used defines the structure of messages transmitted on the network and the way in which this information is deciphered. The coding type is usually chosen according to specific parameters (baudrate, parity, stop), plus certain devices only support specific coding types. Use the same coding type for all devices connected to a Modbus network.

The protocol uses the RTU binary method with the serial frame configured as follows:

  • 8 bits for data

  • Parity bits: none (configurable)

  • 2 stop bits

Parameters can be changed by:

  • Thermostat user interface

  • Sending data via Modbus protocol directly to an individual device or in a broadcast using the address 0 (broadcast)

Modbus Commands Available and Data Areas

The following commands are implemented:

Modbus command

Description

03 (hex 0x03)

Read resources

16 (hex 0x10)

Write resources

43 (hex 0x2B)

Read device ID.

The following 3 fields can be read:

  • 0 = Manufacturer ID

  • 1 = Model ID

  • 2 = Family ID / device version

NOTE: Maximum length of transmitted/received messages equal to 50 bytes.

Configuration

The address of a device within a Modbus message is set via parameter Adr.

The address 0 is used to broadcast messages that all servers recognize. The server only responds to the individual requests.

The device configuration parameters are as follows:

Parameter

Description

Adr

Modbus protocol server address

bAU

Baud rate selection

Pty

Sets the Modbus protocol parity BIT and the number of stop BITs:

  • n = NONE parity bit + 2 stop BITS

  • E = EVEN parity bit + 1 stop BIT

  • o = ODD parity bit + 1 stop BIT

The changes made to the parameters are taken into account after powering Off and On the cooling units.

Setting the Modbus Parameters from the User Interface

  1. Press and hold SET for at least 5 seconds.

  2. Scroll to PA1. Press SET to enter PA1 password using the keys and . Press SET to confirm.

  3. Scroll to Adr.using the keys and and press SET. The default value is 1. Change the address value using the keys and . Press SET to confirm or press to cancel.

  4. Scroll to PtY and press SET. The default value is E. Change the value using the keys and . Press SET to confirm or press to cancel.

  5. Scroll to bAU. The default value is 96 (9600 bauds). Change the value using the keys and . Press SET to confirm or press to cancel the List of Modbus Resources.

List of Modbus Resources

Data description

Parameter

Modbus address

R/W

Data size

Range

Unit

Temperature measured by Pb1 probe

Pb1 (*10)

4109

R

1 word (INT16)

-67...302

0.1 °C / 0.1 °F

Digital input: Open enclosure door

DI

4118, bit 0

R

1 bit

0...1

Flag

Compressor status output

RL1

4120, bit 0

R

1 bit

0...1

Flag

External alarm signaling output

RL2

4120, bit 1

R

1 bit

0...1

Flag

Fan status output

RL3

4120, bit 2

R

1 bit

0...1

Flag

Temperature setpoint

SEt (*10)

32769

R/W

1 word (INT16)

20...50

0.1 °C / 0.1 °F

Probe Pb1 error

E1

4121, bit 0

R

1 bit

0...1

Flag

Open door status (alarm)

oPd

4121, bit 3

R

1 bit

0...1

Flag

Low temperature alarm

AL1

4121, bit 5

R

1 bit

0...1

Flag

High temperature alarm

AH1

4121, bit 6

R

1 bit

0...1

Flag

Maximum alarm threshold

HAL

32779

R/W

1 word (INT16)

0...302

0.1 °C / 0.1 °F

Minimum alarm threshold

LAL

32781

R/W

1 word (INT16)

-67...50

0.1 °C / 0.1 °F

Working hours of the condenser fan

tim_DEF2 (*10)

4179

R

1 word (INT16)

0...65535

Hour/10

Number of cycles of the compressor

cnt_CP1

4172

R

1 word (INT16)

0...65535

Num

Cooling unit standby status

STD-BY

4115, bit 0

R

1 bit

0...1

Flag

Compressor status

CP1

4115, bit 1

R

1 bit

0...1

Flag

Fan status

FAN_C

4115, bit 7

R

1 bit

0...1

Flag

Cooling unit start command

Ronon

4123, bit 2

R/W

1 bit

0...1

Flag

Cooling unit stop command

RoFFoFF

4123, bit 3

R/W

1 bit

0...1

Flag

Unit of measure (0 = °C, 1 = °F)

Dro

32969, bit 8

R/W

1 bit

0...1

Flag

QR Code is a registered trademark of DENSO WAVE INCORPORATED in Japan and other countries.

Was this helpful?