Rev. 0.
2 ENG
CNG Dispenser DNG series Date: 13.06.2014
MODBUS communication BOOK
Pag. 1 of 8
CNG DISPENSER DNG SERIES
MODBUS COMUNICATION BOOK
www.grafcng.com
NONANTOLA MODENA ITALY
Rev. 0.2 ENG
CNG Dispenser DNG series Date: 13.06.2014
MODBUS communication BOOK
Pag. 2 of 8
1. INTRODUCTION
The electronic calculator is equipped with a RS485 serial port with a RTU Modbus protocol.
The communication is type Two WIRE Half duplex multi drop and main characteristic of the
communication port are:
Type: multi drop MASTER-SLAVE RS 485 (the PMII is only Slave)
Speed: 19200 bps
Parity: NONE
Data bit: 8
Stop bit: 1
For enable the communication is necessary to enable a function on the parameter 1and set value
2,3,4 and assign the address line in to parameter 2.
Configuration in to Calculator
Def. User
Pos. Description Unit
Value Value
Set up instructions data transmission for association with
an external pre or post payment system.
0= stand-alone
1 1= controlled operation mode 1 (Graf Net way protocol) 3 Num.
2= controlled operation mode 2 (Modbus protocol )
3= controlled operation mode 3 (Modbus protocol )
4= stand-alone with Modbus communication
2. HARDWARE SET UP
RS485 port
Jumper to Enable
a RS485 port
RX led
RS 485 port
TX led
RS 485 port
www.grafcng.com
NONANTOLA MODENA ITALY
Rev. 0.2 ENG
CNG Dispenser DNG series Date: 13.06.2014
MODBUS communication BOOK
Pag. 3 of 8
Jumper to Enable
a RS485 port
RX led
RS 485 port
TX led
RS 485 port
www.grafcng.com
NONANTOLA MODENA ITALY
Rev. 0.2 ENG
CNG Dispenser DNG series Date: 13.06.2014
MODBUS communication BOOK
Pag. 4 of 8
3. BUS CONNECTION
To connect a communication on the calculator is used a Terminal board J3 (Port RS485)
Pin Name Function
1 + 485 Signal (A)
2 - 485 Signal (B)
3 GND Negative signal
For the connection of this Bus is required to use a specific cable for RS485 communication type
Belden 3107 A or other similar Characteristics. Install on the end of Bus a EOL resistor of 120 Ohm.
Lan Bus typical installation.
HOST
SYSTEM
GND +485 -485 GND +485 -485 GND +485 -485 GND +485 -485 GND +485 -485
EOL
120Ω
www.grafcng.com
NONANTOLA MODENA ITALY
Rev. 0.2 ENG
CNG Dispenser DNG series Date: 13.06.2014
MODBUS communication BOOK
Pag. 5 of 8
4. REGISTER DATA LIST WITH OPERATION MODE 2
Description Register Data Type Min / max value Host
Function
SOFTWARE VERSION 40020 WORD 0/65535 Read
ENABLE TO FILLING 40021 WORD 0/65535 Read/Write
DISPENSER STATUS 40022 WORD 0/65535 Read
ERROR CODE 40023 WORD 0/65535 Read
WRITE CONVERSION KG/m3 FACTOR 40024 WORD 0/65535 Write
READ CONVERSION KG/m3 FACTOR 40025 WORD 0/65535 Read
FREE 40026 WORD 0/65535 Read
NOT USED 40027 WORD 0/65535 Read
LAST QUANTITY DELIVERD (WORD) 40028 WORD 0/65535 Read
SET UNIT PRICE (L) 40029 WORD 0/65535 Write
SET UNIT PRICE (H) 40030 WORD 0/65535 Write
LAST DELIVERY PRICE READING ( L) 40031 WORD 0/65535 Read
LAST DELIVERY PRICE READING ( H) 40032 WORD 0/65535 Read
LAST DELIVERY QUANTITY ( L ) 40033 WORD 0/65535 Read
LAST DELIVERY QUANTITY ( H ) 40034 WORD 0/65535 Read
TOTALIZER PRICE (L) 40035 WORD 0/65535 Read
TOTALIZER PRICE (H) 40036 WORD 0/65535 Read
TOTALIZER QUANTITY (L) 40037 WORD 0/65535 Read
TOTALIZER QUANTITY ( H) 40038 WORD 0/65535 Read
PRESSURE VALUE INPUT 1 ( BAR) 40081 WORD 0/65535 Read
PRESSURE VALUE INPUT 2( BAR) 40081 WORD 0/65535 Read
VALUE INPUT ANALOGUE N.3 40041 WORD 0/65535 Read
VALUE INPUT ANALOGUE N.4 40042 WORD 0/65535 Read
GAS FLOW (gr/sec) 40043 WORD 0/65535 Read
PRESET PRICE TO DELIVERY (L) 40044 WORD 0/65535 Write
PRESET PRICE TO DELIVERY (H) 40045 WORD 0/65535 Write
FREE 40046 WORD 0/65535 Read
READ UNIT PRICE ( L) 40047 WORD 0/65535 Read
READ UNIT PRICE ( H) 40048 WORD 0/65535 Read
READ PRESET PRICE ( L) 40049 WORD 0/65535 Read
READ PRESET PRICE (H) 40050 WORD 0/65535 Read
To enable a communication from Host to calculator the first communication must writhe in to
register 40021 the value 1. The Error 80 are deleted and calculator is now ready to work with
data communication with Host system.
www.grafcng.com
NONANTOLA MODENA ITALY
Rev. 0.2 ENG
CNG Dispenser DNG series Date: 13.06.2014
MODBUS communication BOOK
Pag. 6 of 8
5. REGISTER DATA LIST WITH OPERATION MODE 3
Description Register Data Type Min / max value Host
Function
SOFTWARE VERSION 40020 WORD 0/65535 Read
ENABLE TO FILLING 40070 WORD 0/65535 Read/Write
DISPENSER STATUS 40071 WORD 0/65535 Read
ERROR CODE 40072 WORD 0/65535 Read
LAST QUANTITY DELIVERD 40073 WORD 0/65535 Read
SET UNIT PRICE 40074 WORD 0/65535 Write
LAST DELIVERY PRICE READING ( L) 40075 WORD 0/65535 Read
LAST DELIVERY PRICE READING ( H) 40076 WORD 0/65535 Read
TOTALIZER PRICE (L) 40077 WORD 0/65535 Read
TOTALIZER PRICE (H) 40078 WORD 0/65535 Read
TOTALIZER QUANTITY (L) 40079 WORD 0/65535 Read
TOTALIZER QUANTITY ( H) 40080 WORD 0/65535 Read
PRESSURE VALUE ( BAR) 40081 WORD 0/65535 Read
PRESET PRICE TO DELIVERY (L) 40082 WORD 0/65535 Write
PRESET PRICE TO DELIVERY (H) 40083 WORD 0/65535 Write
READ UNIT PRICE 40084 WORD 0/65535 Read
RESERVED 40085 WORD 0/65535
RESERVED 40086 WORD 0/65535
RESERVED 40087 WORD 0/65535
RESERVED 40088 WORD 0/65535
WRITE CONVERSION KG/m3 FACTOR 40089 WORD 0/65535 Write
READ CONVERSION KG/m3 FACTOR 40090 WORD 0/65535 Read
To enable a communication from Host to calculator the first communication must writhe in to
register 40021 the vale 1. The Error 80 are deleted and calculator is now ready to work with data
communication with Host system.
www.grafcng.com
NONANTOLA MODENA ITALY
Rev. 0.2 ENG
CNG Dispenser DNG series Date: 13.06.2014
MODBUS communication BOOK
Pag. 7 of 8
6. REGISTER DATA LIST WITH OPERATION MODE 4
Description Register Data Type Min / max value Host
Function
SOFTWARE VERSION 40020 WORD 0/65535 Read
ENABLE TO FILLING 40070 WORD 0/65535 Read
DISPENSER STATUS 40071 WORD 0/65535 Read
ERROR CODE 40072 WORD 0/65535 Read
LAST QUANTITY DELIVERD 40073 WORD 0/65535 Read
SET UNIT PRICE 40074 WORD 0/65535 Write
LAST DELIVERY PRICE READING ( L) 40075 WORD 0/65535 Read
LAST DELIVERY PRICE READING ( H) 40076 WORD 0/65535 Read
TOTALIZER PRICE (L) 40077 WORD 0/65535 Read
TOTALIZER PRICE (H) 40078 WORD 0/65535 Read
TOTALIZER QUANTITY (L) 40079 WORD 0/65535 Read
TOTALIZER QUANTITY ( H) 40080 WORD 0/65535 Read
PRESSURE VALUE ( BAR) 40081 WORD 0/65535 Read
PRESET PRICE TO DELIVERY (L) 40082 WORD 0/65535 Write
PRESET PRICE TO DELIVERY (H) 40083 WORD 0/65535 Write
READ UNIT PRICE 40084 WORD 0/65535 Read
RESERVED 40085 WORD 0/65535
RESERVED 40086 WORD 0/65535
RESERVED 40087 WORD 0/65535
RESERVED 40088 WORD 0/65535
WRITE CONVERSION KG/m3 FACTOR 40089 WORD 0/65535 Write
READ CONVERSION KG/m3 FACTOR 40090 WORD 0/65535 Read
In this mode the register 40070 are forced in 1 position always
www.grafcng.com
NONANTOLA MODENA ITALY
Rev. 0.2 ENG
CNG Dispenser DNG series Date: 13.06.2014
MODBUS communication BOOK
Pag. 8 of 8
7. REGISTER CLARIFICATION
STATUS CALCULATOR REGISTER (REG.40022-40071)
Code Description Note or function
1 Calculator in Error Type of error are indicate on the register 40023
2 Calculator ready No alarm in progress and nozzle is placed on the holder. If
dispenser don’t’ have a Nozzle switch this state is active by
start selector
3 Filling in progress The filling is in progress
4 Nozzle removed from place when This state came when dispenser are ready and the nozzle or
calculator is ready the start selector are not placed
5 End filling waiting to payment ( in this situation the calculator write on
the register 40021 the value 0. Host must read last data of
filling (quantity and price) and after must writhe 1in to
register 40021 for put calculator in status 6
6 Payments registered, nozzle UP After status 5 and register 50 are set to 1, the calculator
goes in status 6 (nozzle UP). When nozzle can be replaced
the status go in status 2 if the register 50 (enable) are set to
1 or go in status E 99 (not enable to filing) if the register
40021 are set to 0.
ERROR CLAULATOR REGISTER (REG. 40023-40072)
Code Description Note or function
0 No alarm present. Status is ok.
20 EEprom failure. Hardware EEprom problems.
40 Power supply failure. The controller is in Power off status.
41 Unit price set to 0. External error of price setting.
42 Internal error type, low battery. Replace the internal battery.
50 The analog channel 1 is in LOOP Check the functionality of external pressure sensor
error. N.1
51 The analog channel 2 is in LOOP Check the functionality of external pressure sensor
error. N.2
53 The display no.1 is not operating. Check the display N.1 is properly connected
54 The display no.2 is not operating. Check the display N.2 is properly connected
55 The mechanical meter on the display Check the mechanical meter is properly connected
is not working properly.
71 Gas flow alarm. No gas flow in to vehicle.
73 External error, indicates a flow- Verify the operation of relative flow-meter.
meter malfunction.
75 High pressure delivery. High delivery pressure delivery on the dispenser.
77 High flow gas delivery. Flow Over the maximum flow setting.
80 Communication alarm. When calculator is setting for Host communication and
communication is not present.
98 Dispenser not enable, nozzle up. Enable to dispenser.
99 Dispenser not enable, nozzle down. Enable to dispenser.
www.grafcng.com
NONANTOLA MODENA ITALY