Docsity

GenComm Mapa de Registradores, Esquemas de Tecnologia Industrial

Toggle sidebar
bg1
Page
1
Deep Sea Electronics plc,
Highfield House,
Hunmanby Industrial Estate,
North Yorkshire YO14 0PH,
England
Deep Sea Electronics plc reserve the right to change the GenComm standard at any time and without notice.
Deep Sea Electronics plc own the copyright for the GenComm standard.
All rights reserved.
GenComm standard for use with generating set control equipment
Author: G. Middleton
Version: 2.38 WIP
Revision date: 06/6/2013 by AEH
Filename: GenComm.docx
Table of contents
1.
Changes from previous version 2
2.
Introduction 6
3.
General Definitions and Requirements 6
4.
Hubs and Protocol Conversions 7
5.
Multiple Masters 7
6.
Exception Responses 8
7.
Modbus Functions Used 10
8.
Description of Each Function 10
8.1
Function 3 – Read Multiple Registers 10
8.2
Function 16 – Write Multiple Registers 12
9.
Language Codes 13
10.
Modbus Registers Defined 17
10.1
Index of Register Pages 17
10.2
Page 0 – Communications Status Information 19
10.3
Page 1 – Communications Configuration 22
10.4
Page 2 – Modem Configuration 24
10.5
Page 3 – Generating Set Status Information 25
10.6
Page 4 – Basic Instrumentation 29
10.7
Page 5 - Extended Instrumentation 32
10.8
Page 6 - Derived Instrumentation 36
10.9
Page 7 - Accumulated Instrumentation 40
10.10
Page 8 - Alarm Conditions 43
10.11
Page 9 – Total Harmonic Distortion 47
10.12
Page 11 - Diagnostic - General 48
10.13
Page 12 - Diagnostic - Digital Inputs 48
10.14
Page 13 - Diagnostic - Digital Outputs 50
10.15
Page 14 - Diagnostic - LEDs 51
10.16
Page 16 - Control Registers 53
10.17
Page 17 - J1939 active diagnostic trouble codes in decoded format 56
10.18
Page 18 - J1939 active diagnostic trouble codes in raw format 58
10.19
Page 20 - Various Strings 59
10.20
Page 22- Auxiliary sender strings 59
10.21
Page 24 - Identity Strings 59
10.22
Page 26 - State Machine Name Strings 60
10.23
Page 28 - StateMachineState Strings 60
10.24
Pages 32 to 95 - Alarm Strings (Old alarm system) 61
10.25
Pages 32-36 - 2131 Expansion module name strings 67
10.26
Pages 37-40 - 2133 Expansion module name strings 68
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Pré-visualização parcial do texto

Baixe GenComm Mapa de Registradores e outras Esquemas em PDF para Tecnologia Industrial, somente na Docsity!

Deep Sea Electronics plc,

Highfield House,

Hunmanby Industrial Estate,

North Yorkshire YO14 0PH,

England

Deep Sea Electronics plc reserve the right to change the GenComm standard at any time and without notice. Deep Sea Electronics plc own the copyright for the GenComm standard. All rights reserved.

GenComm standard for use with generating set control equipment

Author: G. Middleton Version: 2.38 WIP Revision date: 06/6/2013 by AEH Filename: GenComm.docx

Table of contents

1. Changes from previous version 2

2. Introduction 6

3. General Definitions and Requirements 6

4. Hubs and Protocol Conversions 7

5. Multiple Masters 7

6. Exception Responses 8

7. Modbus Functions Used 10

8. Description of Each Function 10

8.1 Function 3 – Read Multiple Registers 10 8.2 Function 16 – Write Multiple Registers 12

9. Language Codes 13

10. Modbus Registers Defined 17

10.1 Index of Register Pages 17 10.2 Page 0 – Communications Status Information 19 10.3 Page 1 – Communications Configuration 22 10.4 Page 2 – Modem Configuration 24 10.5 Page 3 – Generating Set Status Information 25 10.6 Page 4 – Basic Instrumentation 29 10.7 Page 5 - Extended Instrumentation 32 10.8 Page 6 - Derived Instrumentation 36 10.9 Page 7 - Accumulated Instrumentation 40 10.10 Page 8 - Alarm Conditions 43 10.11 Page 9 – Total Harmonic Distortion 47 10.12 Page 11 - Diagnostic - General 48 10.13 Page 12 - Diagnostic - Digital Inputs 48 10.14 Page 13 - Diagnostic - Digital Outputs 50 10.15 Page 14 - Diagnostic - LEDs 51 10.16 Page 16 - Control Registers 53 10.17 Page 17 - J1939 active diagnostic trouble codes in decoded format 56 10.18 Page 18 - J1939 active diagnostic trouble codes in raw format 58 10.19 Page 20 - Various Strings 59 10.20 Page 22- Auxiliary sender strings 59 10.21 Page 24 - Identity Strings 59 10.22 Page 26 - State Machine Name Strings 60 10.23 Page 28 - StateMachineState Strings 60 10.24 Pages 32 to 95 - Alarm Strings (Old alarm system) 61 10.25 Pages 32-36 - 2131 Expansion module name strings 67 10.26 Pages 37-40 - 2133 Expansion module name strings 68

1. Changes from previous version

Version 2. In page 190: added register mapping for 335 transfer switch

In pages 3, 16, 153, 154, 160, 170, 190, 200-249: Registers and tables added/amended for 335 transfer switch In page 2: removed redundant ‘Modem dial back string’ and shifted up the remaining strings for consistency with module

  • 10.27 Pages 41-43 - 2152 Expansion module name strings
  • 10.28 Pages 44-48 - 2131 Expansion module digital alarm strings
  • 10.29 Pages 49-58 - 2131 Expansion module analogue alarm strings
  • 10.30 Pages 59-66 - 2133 Expansion module analogue alarm strings
  • 10.31 Page 137 - Active synchronisation and load share configuration
  • 10.32 Page 142 – ECU Trouble Codes
  • 10.33 Page 143-149 – ECU Trouble Code short description string
  • 10.34 Page 152 – User calibration of expansion module analogue inputs
  • 10.35 Page 153 – Unnamed alarm conditions
  • 10.36 Page 154 – Named Alarm Conditions
  • 10.37 Page 156 – Expansion module enable status
  • 10.38 Page 158 – Expansion module communications status
  • 10.39 Page 160 – Unnamed Alarm function
  • 10.40 Page 161 – Unnamed Alarm function (continued)
  • 10.41 Page 162 – Unnamed Alarm functions (continued)
  • 10.42 Page 163 – Unnamed Alarm functions (continued)
  • 10.43 Pages 166-169 - User configurable pages
  • 10.44 Page 170 – Unnamed input status
  • 10.45 Page 171 – Unnamed input status continued
  • 10.46 Page 180 – Unnamed output sources & polarities
  • 10.47 Page 181 – Unnamed output sources & polarities continued
  • 10.48 Page 182 – Virtual output sources & polarities
  • 10.49 Page 183 – Configurable output sources & polarities
  • 10.50 Page 184 – Analogue output sources, types and values
  • 10.51 Page 185 – PWM Analogue output sources, types and values
  • 10.52 Page 190 – Unnamed output status
  • 10.53 Page 191 – Virtual output status
  • 10.54 Page 192 – PLC Maths Registers
  • 10.55 Page 193 – Remote control sources
  • 10.56 Page 200-239 – Unnamed alarm strings
  • 10.57 Page 240-246 – Analogue Input Name Strings
  • 10.58 Page 250 – Misc strings
  • Version 2.
  • Version 2. This is a heavily revised version that includes many pages that were not previously in the public domain.
  • Version 2. In page 153: register numbers for 2131 and 2133 corrected.
  • Version 2. In page 170: separate register allocation table for 332,334 created (registers 0 to 21 only)
  • Version 2. In page 153: For 8xxx the reserved registers are now unimplemented and the number of alarms has been corrected.
  • Version 2. In page 4: added 2 new registers (193and 194) for S1 and S2 phase rotation.
  • Version 2. In page 190: added register mapping for 335 transfer switch
  • Version 2. In pages 180,181: Common family register allocation (registers 64 to 255 as detailed in notes) documented in separate table
  • Version 2. implementations
  • In page 152: Indication of numbers and types of expansion modules for

In page 153: Registers 51 and 52 renamed to indicate engine maintenance alarms; register 100 added for 7450 Plant battery maintenance alarms to 8xxx/74xx table In page 154: Added registers 26 to 28 for 7450 to 8xxx/74xx table In page 160: Added registers 225 to 227 for 7450 to 8xxx/74xx table In page 171: 8xxx/74xx registers 148 to 153 are marked as unimplemented In page 225: Renamed registers in 8xxx/74xx table to indicate Engine Maintenance strings In page 228: Added registers 32 to 127 for 7450 to 8xxx/74xx table

Version 2.

In page 6: All Var registers now signed to reflect what has always been the case in practice.

Version 2. In page 6: Registers 142-145 are unsigned.

Version 2. In page 4: 32 bit values aligned to an even address (register 204 to 213). In page 6: 7450 table – registers are signed.

Version 2. In page 16: Added system control keys for plant battery maintenance alarms. In page 4: register 200 renamed for clarity. In page154: register 27 fields renamed for clarity. In page 160: Page title renamed and preliminary page comments amended for clarity.

Version 2. In page 4: Added register for Plant Battery Temperature. DC current registers now all 32 bit signed (load, battery, total); added 2 registers for DC shunt currents In page 6: Appended 7450 table to re-titled 86xx/74xx table. Added DC Power percentage (to 0.01%) In page 7: Added new registers for plant battery maintenance cycles and capacity In page 154: Added new alarms for the 73xx Var In page 153: Note added to indicate number of unnamed alarms required in 86xx, 7410, 7420 and 7450 In pages 200-239; Moved Plant Battery Maintenance strings into page 232, and added note to indicate there are 17 pages used/reserved for PLC function strings.

Version 2. In page 154: 86xx/74xx register 25 now contains DC Total Watts Overload (moved from register 28)

Version 2. In page 153: Added notes to indicate that page 153 is used in conjunction with pages 160 to 165 In page 160: Added notes to indicate that this page is used in conjunction with page 153 registers 1 to 64 Added page 161: to be used in conjunction with page 153 registers 65 to 128. Plant Battery Maintenance alarm functions moved into registers 140 to 142 from page 160.

Version 2. In page 6: Removed unused registers 212-215 (Depth of Discharge, Full Charge) In page 6: Add registers 212,213 as 32 bit ‘Time to empty’ (time in seconds until the engine runs out of fuel): 87xx v5. In page 154: Edit register 28 to include named alarms for high fuel level & low kW load (wet stacking): 87xx v5.

Version 2. In page 4: Zero, positive and negative sequence voltages added. In page 6: Mains voltage rolling averages added.

Version 2. In page 5: Auto DPF Regeneration Inhibit status added. In page 16: Control keys for Inhibiting auto regeneration and starting manual regeneration.

Version 2. In page 180: P100 table added. In page 190: P100 output table added.

Version 2. In page 5: Added register 185 as DPTC Active Regen Inhibit switch

Version 2.

In page 3: Add register for charging states In page 4: added new DC Battery cycle state value and table In page 7: Added register for 7450 Battery Charge state percentage Added register allocation matrix for E In page 153: Added register allocation matrix for E In page 154: Added register allocation matrix for E In page 160: Added register allocation matrix for E In page 161: Added register allocation matrix for E In page 170: Added register allocation matrix for E In page 180: Added register allocation matrix for E In page 181: Added register allocation matrix for E In page 190 Added register allocation matrix for E In page 200-239: Added register allocation matrix for E In pages 240-246: Added register allocation matrix for E

Version 2. In page 3: Added new control mode for E800 ’Off Mode’ In page 16: Added system control function code to stop E800 engine, for speed control of E800 Engine and to select E800 Off mode In page 154: P100 alarms defined. Corrections to E800 register allocation. In page 160: P100 defined. In page 170: P100 defined. In page 190: Added E800 MUTE/LAMP TEST LED status register. In page 200: P100 defined.

Version 2. In page 170-171: Added register allocation for 6010, 6020

Version 2. In page 6: Added register Mains voltage asymmetry

Version 2. Added PLC maths registers to Page 192 Added Heater fitted to Page 3

Version 2. In page 153: Noted that the P100 has no unnamed alarms. In page 154: Auxiliary mains failure added. In page 160: Note about P100 not having unnamed inputs added In page 170: Note about P100 not having unnamed inputs added

Version 2. In page 154: Register numbering typo corrected for P100.

Version 2. In page 16: Changes to 87xx display register commands to stop them conflicting with the Synclock command numbers.

Version 2. In page 153: Amended E800 unnamed alarms. In page 154: Added E800 LCD Heater fault ids. In pages 160-163 Amended E800 unnamed alarm function tables In pages 170-171: Amended E800 unnamed input status tables and clarified E800 sender category ranges In pages 180: Amended E800 unnamed output source and polarities table Added page 185: E800 PWM analogue outputs including configuration data (control type, output type, frequency and source) In page 190: Amended E800 Unnamed output status table

Acknowledgements The following trademarks are and copyrights are acknowledged:

Modbus is copyright of Modbus-IDA. Windows is a registered trade mark of Microsoft Corporation. Unicode is a registered trademark of the Unicode Consortium. J1939 is copyright of the Society of Automotive Engineers, Inc.

4. Hubs and Protocol Conversions

A hub may be designed to connect to satellite devices of one of 3 types, ones that recognise the GenComm protocol directly, ones that recognise another Modbus based protocol, or ones that use an entirely unrelated protocol. In the second and third cases the hub must provide protocol conversion which is not defined in this standard.

Notes

  1. A hub recognises queries from a master device for a range of slave addresses, e.g. a hub with its own slave address set to 20 and 8 satellite sockets will recognise slave addresses 20 to 28. Address 20 corresponds to the hub itself, 21 to its first satellite socket, 22 to its second satellite socket, etc. The hub will respond to all these slave addresses even if there is no satellite connected to a particular satellite socket.
  2. A hub will accept queries to its own slave address where appropriate, for example a hub may have some auxiliary digital inputs and outputs.
  3. A valid password must be entered into a hub (at its own slave address) before any of its satellite devices or its own registers can be accessed in any way, thus the hub provides security for the entire installation via a single password.
  4. A hub designed for GenComm satellites recognises a query from a master that has a slave address corresponding to one of its satellites, checks that the password privilege level is adequate for the specified operation, passes this query on to the satellite, and then returns any response back to the master.
  5. A hub designed for other Modbus satellites recognises a query from a master that has a slave address corresponding to one of its satellites, checks that the password privilege level is adequate for the specified operation, converts the protocol as necessary, passes the query on to the satellite, and then returns any response with appropriate conversion. Note that such a hub may not be able to provide security for the satellite as it may not fully understand the satellites protocol, in which case it simply passes the message on regardless of password levels and delegates security to the satellite.
  6. A hub designed for non-Modbus satellites must provide complete protocol conversion and must emulate the GenComm registers so that it appears to the master as a GenComm satellite. All security will also appear to work in exactly the same way as for a GenComm satellite.
  7. For a description of password privilege levels refer to the Password status register in Page 1 – Communications configuration and status.
  8. A hub designed for GenComm satellites will set the slave addresses of all satellites when it initialises, or of a particular satellite when it does not respond. For example a hub with slave address 20 will set its satellites to slave addresses 21, 22 etc. This is achieved without knowing the satellites current slave address by sending broadcast messages (slave address 0) to the satellite to set its slave address. This ensures that the hub will not have to convert the slave addresses in queries from a master or in responses from a satellite. This process can only function if the satellites passwords are completely disabled, which is normally the case for a satellite.
  9. A hub designed for Modbus satellites may not be able to set the satellites slave address in this way, the addresses may have to be set manually on each satellite or the hub may have to convert the addresses in each query and response.
  10. Although this standard talks about ‘satellite sockets’ the connection between a hub and satellite may be of any form, a single socket for each satellite, an RS485 bus with the hub as the master, or some other method.

5. Multiple Masters

GenComm is based on Modbus which is a protocol that is only intended for a simple single master network, therefore it does not support multiple masters accessing a slave simultaneously.

If a slave device has more than one interface that can act as a master, it must only serve one master at once. Whenever it changes masters it must completely re-initialise the status of the port, in particular it must clear the password status to 0 (Invalid) and the extended exception information to 0 (No error), thus ensuring that there can be no interaction between masters of any kind. Any master that makes a query while its port is not being served must either be answered by exception 6 (Slave device busy) whatever the query was, or not answered at all.

The mechanism used by a slave device to decide which master to serve is not defined in this standard, it may be a physical switch, a configuration option or an automatic switch using some mechanism to decide which master to serve. An example of an automatic switch would be a slave device that had an RS485 port to a building management system and an RS232 port to a modem, in this case it might be decided that whenever a modem link is established the RS485 port will be disabled and when the modem link was broken the RS485 port was re-enabled. In such a case it would have to be accepted that the RS485 port would be unavailable whenever the modem link was in use.

GenComm does not support multiple communications configurations for multiple master ports.

6. Exception Responses

Any function may return an exception response if it does not complete successfully, as define in the Modbus protocol.

Notes

  1. The Modbus Protocol Reference Guide defines the meanings of exception codes 1 to 8 and the Open Modbus/TCP Specification defines error codes 10 and 11, but unfortunately these meanings are ambiguous, so cannot convey accurate information about the error. This standard, therefore, defines an extended exception code and exception address which can be read from the slave device at registers 0 and 1 respectively.
  2. A slave device will only return exception code 1, 2 or 6 if a function fails, in the case of exceptions 1 and 2 the extended exception code and address should then be read to find more information about the exception.
  3. The extended exception code will be set to the result of the last message, which implies that a successful read of this register will clear it, this occurs after the read has been performed.
  4. The extended exception address will be set to the address of the register that caused the exception, or to 0 if inappropriate. This allows precise identification of the cause when reading or writing multiple registers.
  5. The extended exception code and address must both be read by a single message, reading them individually would meaningless as they would each refer to different messages.
  6. Extended exception codes 1-255 can be generated by any slave device but codes above 256 can only be generated by a hub.
  7. Exception code 6 (Slave device busy) will be returned whenever a slave device is completely unable to reply to a query because it is occupied, in this case the extended exception codes cannot necessarily be read. An example of this is when a slave device is serving a master of a higher priority than the one that made the query.
  8. In the case of a hub the extended exception registers contain the result of a query to the hub, they are not changed by a query to a satellite. The corresponding registers in the satellite must be read to obtain the result of such a query.

Exception response message Byte Field name Notes 0 Slave address 1 Function code +128 Top bit is set 2 Exception code 1 – Illegal function code 2 – Illegal data address 6 – Slave device busy 3-4 Error check CRC

7. Modbus Functions Used

This standard only uses Modbus functions 3 and 16 as recommended in the Open Modbus/TCP Specification draft 2.

Notes:

  1. Any other functions may be implemented if required, for example for configuration of the slave device, but are not defined in this standard.
  2. Any device which requires other functions to be implemented in order to perform a task which can be performed by function 3 or 16 is deemed to be non-compliant with this standard.

Functions used Function number

Function name Defined by Modicon

Notes

03 Read multiple registers Yes Reads one or more registers. 16 Write multiple registers Yes Writes one or more registers.

8. Description of Each Function

8.1 Function 3 – Read Multiple Registers

Reads one or more 16 bit registers from the slave device.

Notes:

  1. The limit of 125 registers is to comply with the Modbus specification which requires that a message must not exceed 256 bytes including all fields.
  2. Any request for a register that is defined in this standard must return a normal response, if the register is not implemented by a particular product it must return the unimplemented value from the table below to indicate this fact, it must not return an exception.
  3. A request for a register that is defined in this standard as contain some unimplemented bits must return a normal response, the unimplemented bits will contain the unimplemented value from the table below.
  4. A request for a register that is defined in this standard as unimplemented will return the unimplemented value from the table below.
  5. A request for a register that is defined as reserved in this standard will return extended exception code 12 (Reserved register).
  6. A read from a multi-register value such as a 32 bit value or a string must be performed by a single message, not by multiple ones. This avoids the possibility of a value being partly current and partly old data.
  7. The instrumentation values can return the sentinel values described in the table below to indicate a value that is over or under the measurable range, that a transducer is faulty, that the data is bad for some other reason or that the transducer is actually a digital type.
  8. The sentinel value ‘high digital input’ means that the instrumentation value is high (high oil pressure, high temp, etc), similarly ‘Low digital input’ means the instrumentation value is low. They do not refer to voltage levels on the inputs.

Query message Byte Field name Notes 0 Slave address 1 Function code (3) 2 First register address – high byte 16 bit register address 3 First register address – low byte 4 Number of registers to read – high byte 16 bit number of registers, must be in the range 1 to 125 5 Number of registers to read – low byte 6/7 Error check CRC

Normal response message Byte Field name Notes 0 Slave address 1 Function code (3) 2 Byte count (n) 8 bit even number in the range 2 to 250 (number of registers *2) 3 First register – high byte 16 bit register 4 First register – low byte … 1+n Last register – high byte 16 bit register 2+n Last register – low byte 3+n/4+n Error check CRC

Exception response message Byte Field name Notes 0 Slave address 1 Function code +128 (131) Top bit is set 2 Exception code 1 – Illegal function code 2 – Illegal data address 6 – Slave device busy ¾ Error check CRC

Unimplemented register and field values Size of register Value returned Notes 1 bit flag within a register 0 No third state exists for a flag to indicate it is not valid 2 bit named digital input/output code 3 Unimplemented input/output 4 bit alarm condition codes 0xF Unimplemented alarm 4 bit LED colour code 0xF Unimplemented LED 16 bit unsigned, any scale 0xFFFF The largest number 16 bit signed, any scale 0x7FFF The largest positive number 32 bit unsigned, any scale 0xFFFFFFFF The largest number 32 bit signed, any scale 0x7FFFFFFF The largest positive number ASCII strings “ ” A string of spaces (Unicode 0x0020), NULL terminators are not used Unicode strings “ ” A string of spaces (Unicode 0x0020), NULL terminators are not used

Sentinel values for instrumentation Size of register Sentinel values Notes 16 bit unsigned, any scale 0xFFFF Unimplemented 0xFFFE Over measurable range 0xFFFD Under measurable range 0xFFFC Transducer fault 0xFFFB Bad data 0xFFFA High digital input 0xFFF9 Low digital input 0xFFF8 Reserved 16 bit signed, any scale 0x7FFF Unimplemented 0x7FFE Over measurable range 0x7FFD Under measurable range 0x7FFC Transducer fault 0x7FFB Bad data 0x7FFA High digital input 0x7FF9 Low digital input 0x7FF8 Reserved 32 bit unsigned, any scale 0xFFFFFFFF Unimplemented 0xFFFFFFFE Over measurable range 0xFFFFFFFD Under measurable range 0xFFFFFFFC Transducer fault 0xFFFFFFFB Bad data 0xFFFFFFFA High digital input 0xFFFFFFF9 Low digital input 0xFFFFFFF8 Reserved 32 bit signed, any scale 0x7FFFFFFF Unimplemented 0x7FFFFFFE Over measurable range 0x7FFFFFFD Under measurable range 0x7FFFFFFC Transducer fault 0x7FFFFFFB Bad data 0x7FFFFFFA High digital input 0x7FFFFFF9 Low digital input 0x7FFFFFF8 Reserved

9. Language Codes

Notes:

  1. Language codes follow the Windows definition, the primary language code is stored in the least significant 10 bits and the sub- language code is stored in the most significant 6 bits of the 16 bit language code.
  2. Microsoft add to this list periodically but have reserved sections of the list for custom languages and sub-languages. Primary language codes 0x200-0x3FF can be used for additional languages and sub-language codes 0x20-0x3F can be used for additional dialects of a primary languages but these should only be used where none of the defined codes is appropriate.

Language codes Primary language Sub-language Primary language code

Sub-language code Language code

Neutral Neutral 0x00 0x00 0x Arabic Saudi Arabia 0x01 0x01 0x Iraq 0x02 0x Egypt 0x03 0x0C Libya 0x04 0x Algeria 0x05 0x Morocco 0x06 0x Tunisia 0x07 0x1C Oman 0x08 0x Yemen 0x09 0x Syria 0x0A 0x Jordan 0x0B 0x2C Lebanon 0x0C 0x Kuwait 0x0E 0x United Arab Emerates 0x0E 0x Bahrain 0x0F 0x3C Qatar 0x10 0x Bulgarian Standard 0x02 0x01 0x Catalan Standard 0x03 0x01 0x Chinese Taiwan 0x04 0x01 0x PeoplesRepublic 0x02 0x Hong Kong 0x03 0x0C Singapore 0x04 0x Macau 0x05 0x Czech Standard 0x05 0x01 0x Danish Standard 0x06 0x01 0x German Standard 0x07 0x01 0x Swiss 0x02 0x Austrian 0x03 0x0C Luxembourg 0x04 0x Liechtenstein 0x05 0x Greek Standard 0x08 0x01 0x

Language codes continued Primary language Sub-language Primary language code

Sub-language code Language code

English United states 0x09 0x01 0x United kingdom 0x02 0x Australia 0x03 0x0C Canada 0x04 0x New Zealand 0x05 0x Ireland 0x06 0x South Africa 0x07 0x1C Jamaica 0x08 0x Caribbean 0x09 0x Belize 0x0A 0x Trinidad 0x0B 0x2C Zimbabwe 0x0C 0x Philippines 0x0D 0x Spanish Traditional 0x0A 0x01 0x040A Mexican 0x02 0x080A Modern 0x03 0x0C0A Guatemala 0x04 0x100A Costa Rica 0x05 0x140A Panama 0x06 0x180A Dominican Republic 0x07 0x1C0A Venezuela 0x08 0x200A Colombia 0x09 0x240A Peru 0x0A 0x280A Argentina 0x0B 0x2C0A Ecuador 0x0C 0x300A Chile 0x0D 0x340A Uruguay 0x0E 0x380A Paraguay 0x0F 0x3C0A Bolivia 0x10 0x400A El Salvador 0x11 0x440A Honduras 0x12 0x480A Nicaragua 0x13 0x4C0A Puerto Rico 0x14 0x500A Finnish Standard 0x0B 0x01 0x040B French Standard 0x0C 0x01 0x040C Belgian 0x02 0x080C Canadian 0x03 0x0C0C Swiss 0x04 0x100C Luxembourg 0x05 0x140C Monaco 0x06 0x180C Hebrew Standard 0x0D 0x01 0x040D Hungarian Standard 0x0E 0x01 0x040E Icelandic Standard 0x0F 0x01 0x040F Italian Standard 0x10 0x01 0x Swiss 0x02 0x Japanese Standard 0x11 0x01 0x Korean Extended Wansung 0x12 0x01 0x Johab 0x02 0x Dutch Standard 0x13 0x01 0x Belgian 0x02 0x Norwegian Bokmal 0x14 0x01 0x Nynorsk 0x02 0x

Language codes continued Primary language Sub-language Primary language code

Sub-language code Language code

Sami (Lapland) Standard 0x3B 0x01 0x043B Scots Gaelic Standard 0x3C 0x01 0x043C Reserved 0x3D 0x043D Malay Standard 0x3E 0x01 0x043E Brunei Darussalam 0x02 0x083E Reserved 0x3F 0x043F Reserved 0x40 0x Swahili Standard 0x41 0x01 0x Reserved 0x42-0x1FF Custom languages 0x200-0x3FF 0x0200-0x03FF Custom language English for pumps 0x20 0x00 0x

10. Modbus Registers Defined

Notes:

  1. The register array is divided into 256 pages each containing up to 256 registers, the actual register address is obtained from the formula: register_address=page_number*256+register_offset.
  2. All unused parts of pages 0-127 are defined as reserved for expansion of this standard, any attempt to access them will result in an exception response with extended exception code 12 (Reserved register).
  3. Pages 128-255 are available for manufacturer specific applications such as configuration of the control equipment, these are not defined by this standard.
  4. Any device which requires registers in pages 128-255 to be implemented in order to perform a task which can be performed by registers defined in this standard is deemed to be non-compliant with this standard.
  5. This document always refers to register addresses which start at 0 as defined in the Modbus protocol. Register numbers, which start at 1, are not used in this document in order to avoid confusion.
  6. The additional instrumentation pages are to be defined.
  7. S.M. means state machine.
  8. A letter S in the bits/sign column indicates a signed value using two’s compliment arithmetic, all others are unsigned.
  9. A double number in the bits/sign column indicates a bit within a register of a specific size e.g. 16/16 is the most significant bit and 1/16 is the least significant bit of a 16 bit register.
  10. Bits within registers are numbered from 1 not 0 to avoid the confusion that would be caused if the sixteenth bit of a 16 bit register were labelled 15/16.
  11. For an integer type register the register contents should be multiplied by the scaling factor to obtain the actual value.
  12. For a flag type register (1 bit) the minimum value column indicates the meaning if the flag is 0, the maximum column indicates the meaning if the flag is 1.
  13. For an integer type register the minimum and maximum value columns indicate the minimum and maximum values after multiplying by the scaling factor.
  14. Any software that reads an integer type register must be able to process and display correctly over the full range specified in the minimum and maximum value columns.
  15. 32 bit values are stored with the most significant bits in the register with the lowest address.
  16. Where two ASCII characters are stored in a single register the first character is in the most significant bits.
  17. The first register of a 32 bit number is always aligned at an even address for the benefit of some 32 bit CPUs.

10.1 Index of Register Pages

Page number Description Read/write 0 Communications status information Read only 1 Communications configuration Read/write and write only 2 Modem configuration Read/write 3 Generating set status information Read only 4 Basic instrumentation Read only 5 Extended instrumentation Read only 6 Derived Instrumentation Read only 7 Accumulated Instrumentation Read/write 8 Alarm conditions Read only 9 Total Harmonic Distortion information Read only 10 Reserved 11 Diagnostic – general Read only 12 Diagnostic – digital inputs Read only 13 Diagnostic – digital outputs Read only and read write 14 Diagnostic – LEDs Read only and read write 15 Diagnostic – Reserved 16 Control registers Read only and write only 17 J1939 active diagnostic trouble codes in decoded format Read only 18 J1939 active diagnostic trouble codes in raw format Read only 19 Reserved 20 Various strings Read only 24 Identity strings Read/write 26 State machine name strings Read only 28 State machine state strings Read only 29-31 Reserved

10.2 Page 0 – Communications Status Information

Notes:

  1. These are read only registers.
  2. Registers 0 and 1 must both be read with a single message for them to be meaningful since they are set after each message.
  3. Registers 2 and 3 contain copies of the telemetry alarm flags of all satellites so that the satellite that caused a dial out can be ascertained without reading the telemetry alarm flags from all the satellites individually. This register is not latched, clearing the telemetry alarm flag of a satellite will clear the corresponding bit in these registers when the hub updates them. The hub will not assume that sending a system control message to a satellite to clear its telemetry alarm flag will necessarily succeed, instead it builds registers 2 and 3 by reading the state of all the satellites telemetry alarm flags periodically.
  4. Registers 4 and 5 contain communication error flags for all the satellites. A flag is set if, and only if, the corresponding satellite socket is fitted, it is enabled by the corresponding ‘satellite socket enable flag’ in page 1 – Communications Configuration, and the hub is not able to communicate successfully with the satellite for any reason.
  5. If any communication error flag changes from 0 to 1 the hub’s telemetry alarm flag will be set and so cause a dial out if a modem is connected with dial out enabled, the satellites telemetry alarm flag in register 2 or 3 will not be set since this would contradict its non-latching operation as described in note 3 above. A system control function must be used to clear the hub’s telemetry alarm flag before the connection is broken or the dial out will be repeated.
  6. The meaning of the password status is shown in the table below.
  7. If the password status is 0 (no valid password) then it is not possible to read the extended exception information..
  8. If the number of satellite sockets is 1-32 the unit is a hub, otherwise it is not. A hub with 8 sockets, for example, returns a value of 8 regardless of what is actually plugged into the sockets or what the satellites state is, and will always respond to 8 consecutive slave addresses starting with its own slave address +1.
  9. The GenComm version number allows a master to recognise the version of GenComm supported by a slave device and act accordingly. 72xx/73xx modules are identified by the GenComm version of 2, 53xx/55xx etc modules have a GenComm version of
  10. Registers 10 and 11 contain flags that indicate the available baud rates, bit 1 corresponds to baud rate code 0 etc. If a bit is set the corresponding Baud rate is available.
  11. The list of language codes that are available on a particular slave device can be obtained by first reading the number of languages available and then reading that number of registers from the beginning of the list of language codes available. Reading any further registers from the list will return the unimplemented register value 0xFFFF. The order of the language codes in the list has no significance and no assumptions should be made.

Registers Register offset

Name Minimum value

Maximum value

Scaling factor

Units Bits/ sign

0 Extended exception code 0 65535 16 1 Extended exception address 0 65535 16 2 Telemetry alarm flag for satellite 1 0 1 16/ Telemetry alarm flag for satellite 2 0 1 15/ Telemetry alarm flag for satellite 3 0 1 14/ Telemetry alarm flag for satellite 4 0 1 13/ Telemetry alarm flag for satellite 5 0 1 12/ Telemetry alarm flag for satellite 6 0 1 11/ Telemetry alarm flag for satellite 7 0 1 10/ Telemetry alarm flag for satellite 8 0 1 9/ Telemetry alarm flag for satellite 9 0 1 8/ Telemetry alarm flag for satellite 10 0 1 7/ Telemetry alarm flag for satellite 11 0 1 6/ Telemetry alarm flag for satellite 12 0 1 5/ Telemetry alarm flag for satellite 13 0 1 4/ Telemetry alarm flag for satellite 14 0 1 3/ Telemetry alarm flag for satellite 15 0 1 2/ Telemetry alarm flag for satellite 16 0 1 1/ 3 Telemetry alarm flag2 for satellites 17-32 0 65535 16 4 Communication error flag for satellite 1 0 1 16/ Communication error flag for satellite 2 0 1 15/ Communication error flag for satellite 3 0 1 14/ Communication error flag for satellite 4 0 1 13/ Communication error flag for satellite 5 0 1 12/ Communication error flag for satellite 6 0 1 11/ Communication error flag for satellite 7 0 1 10/ Communication error flag for satellite 8 0 1 9/ Communication error flag for satellite 9 0 1 8/ Communication error flag for satellite 10 0 1 7/ Communication error flag for satellite 11 0 1 6/ Communication error flag for satellite 12 0 1 5/ Communication error flag for satellite 13 0 1 4/ Communication error flag for satellite 14 0 1 3/ Communication error flag for satellite 15 0 1 2/ Communication error flag for satellite 16 0 1 1/ 5 Communication error flags for satellites 17- 32

6 Password status 0 3 16 7 Number of satellite sockets available 0 32 16 8 Number of languages available for telemetry 0 128 16 9 GenComm version number 1 2 16 10-11 Baud rates available 0 32 12-127 Reserved 128-255 List of language codes available 0 65534 16