Compac C4000 Channel 2 Modbus Application
Compac C4000 Channel 2 Modbus Application
Compac C4000 Channel 2 Modbus Application
Channel 2 Modbus
Application
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.
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
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
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.
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
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)
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