0% found this document useful (0 votes)
9 views

GCS Modbus protocol reference guide

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

GCS Modbus protocol reference guide

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Engine Monitoring

Page 92 Generator Drive Control System (GCS) Manual

Modbus Communications Datalink

The ECM contains data that can be read using a remote device communicating with the ECM via Modbus protocol
on a two-wire half-duplex RS-485 serial communications bus. In this arrangement, the remote device is the master,
and the ECM is a slave, supplying data to the master when requested. For further details refer to the Modbus mas-
ter-slave technique described in the Modbus Protocol Reference Guide (Modicon Document No. PI-MBUS-300).
The Modbus Protocol Reference Guide can be found on the World-Wide-Web (WWW) at the Schneider Automation
Inc. web-site. The document is accessible on-line using Universal Resource Locator (URL):

http://www.modicon.com/techpubs/techpubnew/pi_mbus_300.pdf

The customer can implement the RS-485 physical interface by connecting the shielded twisted-pair serial commu-
nications bus wires RS485+ and RS485- (pins 21 and 18 respectively) and the bus shield (pin 20) of ECM connector
06.
The Modbus operates at a communications rate of 9600 baud. At this data rate, the maximum specified bus length
of 4000 ft. [1219m] can be achieved. If the ECM is connected at either end of the communications bus, Term 1 and
Term 2 (pins 22 and 19 respectively) of ECM connector 06 are to be jumpered by shorting these two pins together.
If the ECM is not connected at either end of the bus, Term 1 and Term 2 should be left unconnected.
For further details regarding RS-485 implementation and applications, refer to Electronic Industries Association
Standard EIA-485, "Electrical Characteristics of Generators and Receivers for use in Balanced Digital Multi-Point
Systems". Additional information can be found on the WWW at the B&B Electronics Manufacturing Company web-
site. Refer to the "RS-422 and RS-485 Application Note" accessible on-line using URL:

http://www.bb-elec.com/bb-elec/literature/tech/485appnote.pdf

The information following provides specific details required to implement the digital portion of the Modbus Interface.
Please refer to Modicon’s Modbus Protocol Reference Guide for further details not inlcuded in this manual
The Modbus interface supports the Remote Terminal Unit (RTU) mode message framing only. The communications
parameters are set at 1 start bit, 8 data bits, no parity and 2 stop bits. The ECM slave device address is 1.
Modbus register data available for all engine models is defined in Appendix A. Appendix B Modbus Bit Data. Ap-
pendix C Supported Modbus Exception Codes. Modbus register parameters are identified as either Signed (S) or
Unsigned (U) in the Type column of the respective tables. Where signed values are used, the value is a 16-bit 2’s
complement number. The maximum amount of register data the ECM can return in a slave response is 16 registers.
The maximum length of the entire message must not exceed 256 bytes.
Appendix E defines the bit data available via the Modbus for all engine models. The maximum amount of bit data
the ECM can return in a slave response is 32 bits (specified as “inputs”, per the Modbus Protocol Reference Guide).
The maximum length of the entire message must not exceed 256 bytes.
Supported Modbus exception codes are defined in Appendix C, and supported diagnostic sub-functions are defined
in Appendix D.
Miscellaneous Application Requirements and Information
Page 104 Generator Drive Control System (GCS) Manual

Appendix A: Modbus Register Data1

Parameter Function Register Total Read/ Scaling Type Eng Range


Code Address number Write Units
(Decimal) of bytes
Engine Speed 04 30001 2 Read 8 S rpm >0
Only
Coolant Temperature 04 30002 2 Read 64 S °F -40 to 302
Only
Oil Pressure 04 30003 2 Read 64 S psia 0 to 120
Only
Battery Voltage 04 30004 2 Read 64 S volts 0 to 40
Only
Frequency Adjust Pot 04 30005 2 Read 80 S Hz -3 to 3
Only
Droop Adjust Pot 04 30006 2 Read 256 S % 0 to 10
Only
Barometric Pressure 04 30007 2 Read 64 S In. Hg 13.2 to 32.6
Only
Engine Running Time 04 30008-30009 4 Read 10 U sec 0 to 200,000,000
Only
ECM On Time 04 30010-30011 4 Read 1 U sec 0 to 789,000,000
Only
Base Frequency 04 30012 2 Read 80 U Hz 50 to 60
Only
Base Speed 04 30013 2 Read 8 U rpm 1000 to 3600
Only
Final Speed Reference 04 30014 2 Read 8 U rpm >0
Only
Estimated Torque 04 30015 2 Read 1 S lb.-ft. 0 to 11,952
Only
±0.2V Speed Bias 04 30016 2 Read 80 S Hz ± 7.38
Only
±2.5V Speed Bias 04 30017 2 Read 80 S Hz ±3
Only
Fuel Consumption Rate 04 30018 2 Read 100 U Gal./Hr. 0 to 600
Only
Cumulative Fuel Con- 04 30019 to 30020 4 Read 100 U Gal. 0 to 10,000,000
sumption Only
Governor Gain Adjust 04 30021 2 Read 256 U N/A 0.05 to 10.0
Pot Only

1. The maximum amount of data the ECM can return in response to a Read Input Registers request (Function Code 04) is 16 registers.
The maximum length of an entire message must not exceed 256 bytes.
Miscellaneous Application Requirements and Information
Generator Drive Control System (GCS) Manual Page 105

Parameter Function Register Total Read/ Scaling Type Eng Range


Code Address number Write Units
(Decimal) of bytes
Active Warning Fault 04 30033- 32 (total) Read
a 30048 Only
Events List
Fault Code 2 each 1 U N/A 0 to 9999
Active Shutdown Fault 04 30049- 32 Read
Events Lista 30064 Only
Fault Code 2 each 1 U N/A 0 to 9999
Most Recent Fault 04 30065-30316 504 (total) Read
b Only
Events List
Fault Code 2 each 1 U N/A 0 to 9999
Fault Count 2 each 1 U N/A 0 to 65535
Time Stamp (last 4 each 1 U sec 0 to 789,000,000
occurrence, ECM
on time)
Time Stamp (last 4 each 10 U sec 0 to 200,000,000
occurrence, engine
running time)

Fuel Rack Position 04 30545 2 Read 128 S mm -5.79 to 23.3


(Left Bank) Only
Fuel Rack Position 04 30546 2 Read 128 S mm -5.79 to 23.3
(Right Bank) Only
Intake Manifold 04 30547 2 Read 64 S psia 0 to 153
Pressure Only
(Left Bank)
Intake Manifold 04 30548 2 Read 64 S psia 0 to 153
Pressure Only
(Right Bank)
Intake Manifold 04 30549 2 Read 64 S °F -40 to 302
Temperature Only
(Left Bank)
Intake Manifold 04 30550 2 Read 64 S °F -40 to 302
Temperature Only
(Right Bank)
Coolant 04 30551 2 Read 64 S psia 0 to 75
Pressure Only
Oil Temperature 04 30552 2 Read 64 S °F -40 to 302
Only
Fuel Supply Pressure 04 30553 2 Read 64 S psia 0 to 75
Only
Fuel Temperature 04 30554 2 Read 64 S °F -40 to 302
Only
a. The Active Warning and Active Shutdown Fault Events Lists each consist of 16 Fault Codes.

b. The Most Recent Fault Events List consists of 42 records of fault data. Each record consists of 12 bytes containing data for
the Fault Code. Fault Code, Fault Count, ECM On-Time Time Stamp, and Engine Running Time Stamp. The Fault Count is
the number of occurences for the respective Fault Codes.
Miscellaneous Application Requirements and Information
Page 106 Generator Drive Control System (GCS) Manual

Parameter Function Register Total Read/ Scaling Type Eng Range


Code Address number Write Units
(Decimal) of bytes
Load Profile Monitora 04 30317-30336 40 (Total) Read
(50Hz Log) Only
Range #1 04 30317-30318 4 each 10 U min 0 to 200,000,000
(0% to 10% load)

Range #2 04 30319-30320 4 each 10 U min 0 to 200,000,000


( > 10% to 20%
load)

Range #3 04 30321-30322 4 each 10 U min 0 to 200,000,000


(>20% to 30%
load)

Range #4 04 30323-30324 4 each 10 U min 0 to 200,000,000


(> 30% to 40%
load)

Range #5 04 30325-30326 4 each 10 U min 0 to 200,000,000


(> 40% to 50%
load)

Range #6 04 30327-30328 4 each 10 U min 0 to 200,000,000


(> 50% to 60%
load)

Range #7 04 30329-30330 4 each 10 U min 0 to 200,000,000


(> 60% to 70%
load)

Range #8 04 30331-30332 4 each 10 U min 0 to 200,000,000


(> 70% to 80%
load)

Range #9 04 30333-30334 4 each 10 U min 0 to 200,000,000


(> 80% to 90%
load)

Range #10 04 30335-30336 4 each 10 U min 0 to 200,000,000


(> 90% to 100%
load)

a. The Load Profile Monitor is a record consisting of percentile Ranges #1 through #10. Each range consists of 4 bytes desig-
nating the amount of time (in minutes) that the engine has been operating in the respective load range.
Miscellaneous Application Requirements and Information
Generator Drive Control System (GCS) Manual Page 107

Parameter Function Register Total Read/ Scaling Type Eng Range


Code Address number Write Units
(Decimal) of bytes
Load Profile Monitora 04 30337-30356 40 (Total) Read
(60Hz Log) Only
Range #1 04 30337-30338 4 each 10 U min 0 to 200,000,000
(0% to 10% load)

Range #2 04 30339-30340 4 each 10 U min 0 to 200,000,000


( > 10% to 20%
load)

Range #3 04 30341-30342 4 each 10 U min 0 to 200,000,000


(>20% to 30%
load)

Range #4 04 30343-30344 4 each 10 U min 0 to 200,000,000


(> 30% to 40%
load)

Range #5 04 30345-30346 4 each 10 U min 0 to 200,000,000


(> 40% to 50%
load)

Range #6 04 30347-30348 4 each 10 U min 0 to 200,000,000


(> 50% to 60%
load)

Range #7 04 30349-30350 4 each 10 U min 0 to 200,000,000


(> 60% to 70%
load)

Range #8 04 30351-30352 4 each 10 U min 0 to 200,000,000


(> 70% to 80%
load)

Range #9 04 30353-30354 4 each 10 U min 0 to 200,000,000


(> 80% to 90%
load)

Range #10 04 30355-30356 4 each 10 U min 0 to 200,000,000


(> 90% to 100%
load)

a. The Load Profile Monitor is a record consisting of percentile Ranges #1 through #10. Each range consists of 4 bytes desig-
nating the amount of time (in minutes) that the engine has been operating in the respective load range.
Appendix B - Modbus Bit Data
Page 108 Generator Drive Control System (GCS) Manual

Appendix B - Modbus Bit Data1

Coil/Input Total
Function
Switch Name Address number Read/Write States
Code
(Decimal) of bits

Shutdown Override 01 (Read) 00001 1 Read / Write Enabled = 1


05 (Write) Disabled = 0

Fault Acknowledgea 01 (Read) 00002 1 Read / Write Acknowledge = 1


05 (Write) Not Acknowledge = 0

Idle/Rated Switch State 02 10001 1 Read Only Rated =1, Idle = 0

Run/Stop Switch State 02 10002 1 Read Only Run =1, Stop = 0

Remote Emergency-Stop Input 02 10003 1 Read Only Stop =1, Not Stop =0

Coolant Level Switch Stateb 02 10004 1 Read Only Low =1, Normal =0

Common Shutdown Lamp/Relay 02 10005 1 Read Only Driver On =1


Driver Command Driver Off =0

Common Warning Lamp/Relay 02 10006 1 Read Only Driver On =1


Driver Command Driver Off =0

Fuel Shut-off Valve Driver State 02 10007 1 Read Only Driver On =1


Driver Off =0

Operator Interface Mode 02 10008 - 4 Read Only See Table Below


10011

CENTINEL Oil Make-Up 02 10012 1 Read Only Low Oil Level = 1


Tank Level Not Low Oil Level = 0

a. The Fault Acknowledge command is a momentary signal and should be held in the “acknowledge” state for no
longer than 0.5 seconds when acknowledging a fault condition.
b. The Coolant Level Switch is to be supplied by the customer. The control system must be set -up to read the
Coolant Level Switch signal. See the Customer Supplied Coolant Level Switch section on page 101 for fur-
ther details.

Bit No. B A 9 8
Off 0 0 0 0
Ready 0 0 0 1
Fault Flashout 0 0 1 0
Non-Running Test 0 0 1 1
Starting 0 1 0 0
Idle 0 1 0 1
Rated 0 1 1 0
Normal Stop 0 1 1 1
Emergency Stop 1 0 0 0
Watchdog Test 1 0 0 1

1. The maximum amount of data the ECM can return in response to: i) a Read Coil Status request (Function Code 01) is 32 coils,
ii) a Force Single Coil request (Function Code 05) is 1 coil, or iii) a Read Input Status request (Function Code 02) is 32 inputs.
The maximum length of an entire message must not exceed 256 bytes.
Appendix C - Supported Modbus Exception Codes
Generator Drive Control System (GCS) Manual Page 109

Appendix C - Supported Modbus Exception Codes

Code Name Description

01 Illegal Function The function code received is not valid

02 Illegal Data Address The data address received in the query is not a
valid address

03 Illegal Data Value A value contained in the query data field is not a
valid value for the slave
Appendix D - Supported Modbus Diagnostics
Page 110 Generator Drive Control System (GCS) Manual

Appendix D - Supported Modbus Diagnostics

Sub-
Function Name Description
Code

00 Return Query Data The data passed in the query data field is to be returned (looped back) in the
response. The entire response message should be identical to the query.

01 Restart Communica- The slave’s peripheral port is to be initialized and restarted, and all of its communi-
tions Option cations event counters are to be cleared. If the port is currently in Listen Only
Mode, no response is returned. If the port is not currently in Listen Only Mode, a
normal response is returned.

04 Force Listen Only Forces the ECM into Listen Only Mode. This isolates it from the other devices on
Mode the network, allowing them to continue communicating without interruption from the
addressed slave. No response is returned.

The only function that will be processed after this mode is entered will be the
Restart Communications Option function (function code 08, subfunction 01)

10 Clear Counters and Clears all counters and the diagnostic register.
Diagnostic Register

11 Return Bus Message The response data field returns the quantity of messages that the slave has
Count detected on the communications system, since its last restart, clear counters opera-
tion, or power up.

12 Return Bus Commu- The response data field returns the quantity of CRC errors encountered by the ECM
nication Error Count since the its last restart, clear counters operation, or power-up.

13 Return Bus Exception The response data field returns the quantity of Modbus exception responses
Error Count returned by the ECM since the its last restart, clear counters operation, or power-
up.

14 Return Slave Mes- The response data field returns the quantity of messages addressed to the ECM, or
sage Count broadcast, that the ECM has processed since its last restart, clear counters opera-
tion, or power-up.

15 Return Slave No The response data field returns the quantity of messages addressed to the ECM for
Response Count which it did not return a response (neither a normal response nor an exception
response), since its last restart, clear counters operation, or power-up

You might also like