Вы находитесь на странице: 1из 7

Compac C4000

Channel 2 Modbus
Application

Compac Industries Ltd.


50-54 Walls Road, Penrose, Auckland 1061, New Zealand
PO Box 12 417, Penrose, Auckland 1642, New Zealand
Tel: +64 9 579 2094 Fax: + 64 9 579 0635 info@compac.co.nz www.compac.co.nz
Compac Industries Ltd.

Product Identification
Title Compac C4000 Channel 2 Modbus Application
Publication Date April 2015
Application Compac C4000 CNG Dispenser with Channel 2 Modbus
Related Manuals C4000 Master Manual
Validity Compac Industries Limited reserves the right to revise or change product specifications at any time. This
publication describes the state of the product at the time of publication and may not reflect the product at all times
in the past or in the future.
Contact Details Compac Industries Limited
50-54 Walls Road, Penrose, Auckland 1061, New Zealand
PO Box 12 417, Penrose, Auckland 1641, New Zealand
Tel: +64 9 579 2094 Fax: + 64 9 579 0635 info@compac.co.nz www.compac.co.nz
Copyright ©2014 Compac Industries Limited. All Rights Reserved.

Document Control
Date Version Description Author
23 July 2014 1.0 Initial Version Claude Dabaliz
1 October 2014 1.1 Changed number of stop bits from1 to 2 Claude Dabaliz
28 April 2015 1.2 Added bank output status and pressure check status Claude Dabaliz
4 May 2015 1.3 Added error code, reason for end of sale, calculated target fill Claude Dabaliz
pressure and detected initial tank pressure. Added 2nd example.
14 July 2016 1.4 Added Totals to Modbus registers Claude Dabaliz

Conditions of Use
Read this manual completely before working on, or Variations in installation and operating conditions may
making adjustments to, the Compac equipment affect the Compac C4000 processor's performance. Compac
Compac Industries Limited accepts no liability for Industries Limited has no control over each installation's
personal injury or property damage resulting from working on unique operating environment. Hence, Compac Industries
or adjusting the C4000 processor incorrectly or without Limited makes no representations or warranties concerning
authorization. the performance of the Compac C4000 processor under the
Along with any warnings, instructions, and procedures in actual operating conditions prevailing at the installation. A
this manual, you should also observe any other common technical expert of your choosing should validate all
sense procedures that are generally applicable to equipment operating parameters for each application.
of this type. Compac Industries Limited has made every effort to
Failure to comply with any warnings, instructions, explain all servicing procedures, warnings, and safety
procedures, or any other common sense procedures may precautions as clearly and completely as possible. However,
result in injury, equipment damage, property damage, or due to the range of operating environments, it is not possible
poor performance of the Compac equipment to anticipate every issue that may arise. This manual is
The major hazard involved with operating the Compac intended to provide general guidance. For specific guidance
C4000 processor is electrical shock. This hazard can be and technical support, contact your authorised Compac
avoided if you adhere to the procedures in this manual and supplier, using the contact details in the Product
exercise all due care. Identification section.
Compac Industries Limited accepts no liability for direct, Information in this manual shall not be deemed a
indirect, incidental, special, or consequential damages warranty, representation, or guarantee. For warranty
resulting from failure to follow any warnings, instructions, provisions applicable to the Compac C4000 processor,
and procedures in this manual, or any other common sense please refer to the warranty provided by the supplier.
procedures generally applicable to equipment of this type. Unless otherwise noted, references to brand names,
The foregoing limitation extends to damages to person or product names, or trademarks constitute the intellectual
property caused by the Compac C4000 processor, or property of the owner thereof. Subject to your right to use the
damages resulting from the inability to use the Compac Compac C4000 processor, Compac does not convey any
C4000 processor, including loss of profits, loss of products, right, title, or interest in its intellectual property, including and
loss of power supply, the cost of arranging an alternative without limitation, its patents, copyrights, and know-how.
power supply, and loss of time, whether incurred by the user Every effort has been made to ensure the accuracy of
or their employees, the installer, the commissioner, a service this document. However, it may contain technical
technician, or any third party. inaccuracies or typographical errors. Compac Industries
Compac Industries Limited reserves the right to change Limited assumes no responsibility for and disclaims all
the specifications of its products or the information in this liability of such inaccuracies, errors, or omissions in this
manual without necessarily notifying its users. publication.

Copyright © 2015 Compac Industries Limited. All Rights Reserved. 2


Compac Industries Ltd.

Table of Contents
Product Identification ......................................................................................................................................... 2
Document Control .............................................................................................................................................. 2
Conditions of Use ............................................................................................................................................... 2
Scope ................................................................................................................................................................ 4
Overview ........................................................................................................................................................... 4
Software Version ............................................................................................................................................... 4
Modbus Specification ........................................................................................................................................ 4
Serial Communication wiring ........................................................................................................................ 4
Data rate and parity ...................................................................................................................................... 4
Slave Address ............................................................................................................................................... 4
Modbus Function Codes ................................................................................................................................ 4
C4000 Hardware Lines (TTL)......................................................................................................................... 5
Modbus Registers .............................................................................................................................................. 5
Application Examples ......................................................................................................................................... 7

Copyright © 2015 Compac Industries Limited. All Rights Reserved. 3


Compac Industries Ltd.

Scope
This document details the default the channel 2 Modbus registers and connections

Overview
The Compac C4000 Channel 2 Modbus application provides an interface for Modbus/PLC monitoring systems.
Channel 1, the primary control interface, is used as normal for standard dispenser forecourt control. The C4000 is
a Modbus Slave device.

Software Version
Version HIA/HIU 29290
Checksum $
Processor High Speed (80C320)

Modbus Specification

Serial Communication wiring


The wiring must be in 2 wire mode (Signals A/B)

Data rate and parity


Baud rate 9600
Parity NONE
Stop bits 2

Slave Address
The slave address is set by using the Pump Number setting (01-99). This is the same number as used for the
Channel 1 forecourt communications. There are separate pump numbers for each hose on the dispenser.

Modbus Function Codes


Only Modbus function codes 0x03 (Read Holding Registers) and 0x04 (Read Input Registers) are supported.

Copyright © 2015 Compac Industries Limited. All Rights Reserved. 4


Compac Industries Ltd.

C4000 Hardware Lines (TTL)

J2B 1 2 1 2 J13
6 TXEN 3 4 3 4 5 RXD
5 6 5 6 9 TXD
7 8 7 8
9 10

C4000 J2B C4000 J13

Modbus Registers
Register Type Access Description
0032 (0x20) U16 RO Bit #0 – Dispensing
Bit #1 – Error Condition (note 1)
Bit #2 – Reserved
Bit #3 – Warning (note 2)
Bit #4 – Low Bank Status
Bit #5 – Medium Bank Status
Bit #6 – High Bank Status
Bit #7 – In pressure check stop
Bits #8 to #16 - Reserved
0033 (0x21) U16 RO Line Pressure in kPa (0.00bar)
0034 (0x22) U16 RO Flow rate in dkg/min (0.0 kg/min)
0035 (0x23) S16 RO Temperature to 1dp (0.0°C)
0036 (0x24) U32 RO Displayed Quantity. Decimal point implied. Format long CD AB.
0038 (0x26) U32 RO Displayed Amount. Decimal point implied. Format long CD AB.
0040 (0x28) U16 R0 Displayed Unit Price. Decimal point implied.
0041 (0x29) U16 RO Error Code (note 3)
0042 (0x2A) U16 RO Reason for end of sale register (note 4)
0043 (0x2B) U16 R0 Calculated target fill pressure (0.00bar)
0044 (0x2C) U16 RO Detected initial tank pressure (0.00bar)
0045 (0x2D) BCD12 RO Total Qty (10 LSD only)
0048 (0x30) BCD12 RO Total Money (10 LSD only)
0051 (0x33) BCD8 RO Total Qty (8 LSD only)

Note 1: Criteria for Error Condition


Error condition is set Price error
if any are true Eprom checksum error
Setup data error
NVRAM error
Reverse flow detected
Excess flow detected
Illegal Encoder state detected
ADC offline (if enabled)
Temperature out of range (if enabled)
Pressure out of range (if enabled)

Copyright © 2015 Compac Industries Limited. All Rights Reserved. 5


Compac Industries Ltd.

Note 2: Criteria for Warning Condition


Warning condition is The reason the last sale ended was due to exceeding the
set if any are true maximum flow rate.
The KG meter is starting up (‘PAUSE’ displayed)

Note 3: Error Codes


Maps to message 01 Setup error Er 10
displayed on 02 Eprom Error Er 1
dispenser 03 NV RAM error Er 5
04 Price Error Er 3
20 Meter start up PAUSE
21 Calibration error CALIB
22 Dual pressure probes don’t agree PRSERR
23 Max flow rate exceeded ER-FLO
24 Unauthorised flow UNAUTH
25 Stop button active STOP
26 Display not detected AB D
27 Display parity error detected PE P
40 ADC error Er 13
41 Temperature range error Er 14
42 Pressure range error Er 15
43 Memory error Er 12
44 Excess Flow error Er 7
45 Error 9A (no vibration) Er 9A
46 Error 9B (Cannot zero) Er 9b
47 Error 9C (Temperature fault) Er 9C
48 Error 9D (Coil fault) Er 9d
49 Error 9E (Slug flow) Er 9E
50 Error 9F (Reverse flow) Er 9F
51 Error 9 Er 9
52 Excessive reverse flow Er 8

Note 4: Reason for end of sale


The Reason for end 01 Nozzle switch
of sale may change 02 Preset or temperature compensated value
during and post reached
delivery 03 Timeout
04 Remote Stop (POS)
05 Max display value reached
07 Error
08 CNG Sequence to low flow
12 Display parity error detected
14 Main display not detected
20 Temperature compensation check 1
21 Temperature compensation check 2
22 Temperature compensation check 3
25 Stop switch operated
26 Dual pressure probes do not agree
29 Unauthorised flow
30 Configured maximum flow rate exceeded
31 Overpressure switch activated

Copyright © 2015 Compac Industries Limited. All Rights Reserved. 6


Compac Industries Ltd.

32 Dispenser on hold.

Application Examples
Source Raw Data Item Value Description
Poll 01 03 00 20 00 09 84 06 01 01 Slave Address
03 03 Function Code
00 20 0x20 Starting Address
00 09 09 Quantity of Registers
84 06 CRC16
Response 01 03 12 00 01 29 31 00 38 00 01 01 Slave Address
C4 07 F4 00 00 07 F4 00 00 03 03 03 Function Code
E8 0D C1 12 18 bytes Byte Count
00 01 Dispensing Register 0x20, Status
29 31 105.45 bar Register 0x21, Pressure
00 38 5.6 kg/min Register 0x22, Flow Rate
00 C4 19.6°C Register 0x23, Temperature
07 F4 00 2.036 kg Register 0x24, Quantity (Long
00 CD AB Format)
07 F4 00 $20.36 Register 0x26, Amount (Long
00 CD AB Format)
03 E8 10.00 $/kg Register 0x28, Unit Price
0D C1 CRC16

Source Raw Data Item Value Description


Poll 01 03 00 20 00 0D 85 C5 01 01 Slave Address
03 03 Function Code
00 20 0x20 Starting Address
00 0D 0D Quantity of Registers
85 C5 CRC16
Response 01 03 1A 00 11 09 46 00 00 00 01 01 Slave Address
C2 00 30 00 00 02 50 00 00 04 03 03 Function Code
D2 00 00 00 00 59 D8 09 46 B4 1A 26 bytes Byte Count
29 00 11 Dispensing, low Register 0x20, Status
bank on.
09 46 23.74 bar Register 0x21, Pressure
00 00 0.0 kg/min Register 0x22, Flow Rate
00 C2 19.4°C Register 0x23, Temperature
00 30 00 0.48 kg Register 0x24, Quantity (Long
00 CD AB Format)
02 50 00 $5.92 Register 0x26, Amount (Long
00 CD AB Format)
04 D2 12.34 $/kg Register 0x28, Unit Price
00 00 0 Register 0x29, Error Code
00 00 0 Register 0x2A, Reason for end
of sale
59 D8 230.00 bar Register 0x2B, Calculated
target fill pressure
09 46 23.74 bar Register 0x2C, Detected initial
tank pressure
B4 29 CRC16

Copyright © 2015 Compac Industries Limited. All Rights Reserved. 7

Вам также может понравиться