KG-1500
Interface-Modbus
PROPRIETARY INFORMATION - © 2017 WOODWARD, INC. PAGE 1
Interface Modbus
Modbus Protocol
Modbus is a serial communications protocol published by Modicon in 1979 for use with its
programmable logic controllers (PLCs). It has become a de facto standard communications
protocol in industry, and is now the most commonly available means of connecting
industrial electronic devices.
There are also various tools available on the internet. We recommend using ModScan32
which is a Windows application designed to operate as a Modbus Master device for
accessing data points in a connected Modbus Slave device. It is designed primarily as a
testing device for verification of correct protocol operation in new or existing systems.
A trial version download is available from the following website:
http://www.win-tech.com/html/modscan32.htm
PROPRIETARY INFORMATION - © 2017 WOODWARD, INC. PAGE 2
Interface Modbus
Modbus interface setting in easYgen for BMS/SCADA or PLC.
You can change this
parameter as per the
requirement
Settings in these
three screens are
related to setting of
Modbus
PROPRIETARY INFORMATION - © 2017 WOODWARD, INC. PAGE 3
Interface Modbus
Modbus interface setting in easYgen for BMS/SCADA or PLC.
Slave ID is must and is required to
identify this device on Modbus
communication, so it has to be unique
and can in range of 1-255
Reply delay time needs to be set. We
have seen that many a times this
value is “0” and so the customer is
not able to receive any value on the
Modbus.
PROPRIETARY INFORMATION - © 2017 WOODWARD, INC. PAGE 4
Interface Modbus
Modbus interface – Wiring on easYgen (half duplex / full duplex)
120 ohms
terminating register
is must
PROPRIETARY INFORMATION - © 2017 WOODWARD, INC. PAGE 5
Interface Modbus
Modbus Protocol number
Every protocol number has different Modbus addresses, so
when you are entering the Modbus register address in
easYgen model Protocol Number SCADA/BMS, first please refer to the data protocol in the
egY 2000 Sr. 5100 manual and then refer to the corresponding Modbus address
for these protocol. Example shown below.
PROPRIETARY INFORMATION - © 2017 WOODWARD, INC. PAGE 6
Interface Modbus
Reading Modbus address Description against each address
Multiplier against each
This is Modbus address
addresses is used to
to be used for getting
multiple the values that
the values. The first digit
is read in Modbus to get
i.e. 4 is not to be used for
address it is indicating the correct value.
function code (4=holding
register) so the address
starts from 50001
Unit of the Modbus value
Here it shows
whether it is
16bit/2byte register
or 32bit/4byte
register
PROPRIETARY INFORMATION - © 2017 WOODWARD, INC. PAGE 7
Interface Modbus
Reading Modbus address with Multiplier as Mask
How to read the mask value against Modbus address
Mask 000F hex means, we have to make a logical AND
combination
for e.g. I am in STOP mode, and I got this binary information.
Result: 0000 0000 0000 0010
If we now look, at which bit position we get a TRUE value,
when we make a AND equation.
Here the second digit on the right would become TRUE.
In decimal this is = 2. And 2 = STOP as shown in the table.
Similarly if result is
Result: 0000 0000 0000 0001
In decimal this is = 1. And 1 = AUTO as shown in the table
PROPRIETARY INFORMATION - © 2017 WOODWARD, INC. PAGE 8
Interface Modbus
Reading 16 bit and 32 bit Modbus values
For 16 bit Modbus values there is no problem and it can be directly read from easYgen. But for 32 bit you have to
add to Modbus addresses and then you will get the correct value.
See below example for reading 32 bit value on Modbus:
Reading the value of genset hours of operation on Modbus
Starting at Modicon start address 450026 (Av. Gen.
Current).You can see that the next address shown
is 450028. This means the value for “Av. Gen.
Current” consist of two addresses i.e. 450026 and
450027 (1 addr. = 2 bytes so 4 Bytes is total). Keep
an eye on the order of the addresses when looking
for certain value, so you know how many registers
you need to read.
PROPRIETARY INFORMATION - © 2017 WOODWARD, INC. PAGE 9
Interface Modbus
Reading 16 bit and 32 bit Modbus values
Below screen shows 10 address read in one step on Modbus Software
Now to get the “Gen. hours of operation” value correctly
which has 4 byte value, put the first 2-byte and the second
2-byte together i.e. here = 0001 41A9 (hex format) =
82345 (decimal format) * 0.01 (multiplier) = 823.45 hrs.
Similarly here if we want the value of another 32 bit
register like “Active Power setpoint”. The address for this is
450131 and 450132, so here = 0000 03E8 (hex format)=
1000 (decimal format) * 0.1 (multiplier) = 100 kW.
PROPRIETARY INFORMATION - © 2017 WOODWARD, INC. PAGE 10
Interface Modbus
Remote control of easYgen – via Modbus
The Woodward controller can be configured to perform start/stop/acknowledgement functions
remotely through the Modbus protocol and you can even control the Voltage/PF/Frequency and
Power(kW) remotely via Modbus. Refer below for few examples.
Example: Remote Start / Stop in Auto mode via control bit (Modbus)
In LogicsManager of Start req. in Auto configure 3rd
variable as “04.13 Remote request” as shown in the
picture
PROPRIETARY INFORMATION - © 2017 WOODWARD, INC. PAGE 11
Interface Modbus
Remote control of easYgen – via Modbus
In order to issue a command, the respective bit of object 21F7
(hex), i.e. parameter 503, must be enabled. The following bits are
used for this:
Bit 0 Start bit: This bit activates the LogicsManager command
variable “04.13 Remote request" and enables a remote
request command.
Bit 1 Stop bit: This bit deactivates the LogicsManager
command variable “04.13 Remote request" and disables a
remote request command.
PROPRIETARY INFORMATION - © 2017 WOODWARD, INC. PAGE 12
Interface Modbus
Remote control of easYgen – via Modbus
The following Modscan32 screenshot shows the
configurations made to remote control
parameter 503. It is possible to set the format to
binary to view single bits using the "display
options".
PROPRIETARY INFORMATION - © 2017 WOODWARD, INC. PAGE 13
Interface Modbus
Remote control of easYgen – via Modbus
Example 1: Start Request Auto Mode
By double-clicking the address, a Write Register command may be
issued.
shows how bit 0 is set using the ModScan32 Software.
Example 2: Stop Request Auto Mode
By double-clicking the address, a Write Register command may be
issued.
shows how bit 1 is set using the ModScan32 Software.
PROPRIETARY INFORMATION - © 2017 WOODWARD, INC. PAGE 14
Interface Modbus
Remote control of easYgen – via Modbus
Assignment of respective bit of object 21F7
(hex), i.e. parameter 503.
PROPRIETARY INFORMATION - © 2017 WOODWARD, INC. PAGE 15
Interface Modbus
Remote control of easYgen – via Modbus
Example: Remote Start / Stop in manual mode via control bit (Modbus)
In LogicsManager of MAN engine start configure
1st variable as “04.44 RemoteControl Bit 1” as
shown in the picture
In LogicsManager of MAN engine stop configure
1st variable as “04.45 RemoteControl Bit 2” as
shown in the picture
PROPRIETARY INFORMATION - © 2017 WOODWARD, INC. PAGE 16
Interface Modbus
Remote control of easYgen – via Modbus
In order to issue a command, the respective bit of object
21F9 (hex), i.e. parameter 505, must be enabled
Example 1: Start in Manual mode
By double-clicking the address, a Write Register command may be
issued.
shows how bit 0 is set using the ModScan32 Software.
Example 2: Stop in Manual mode
By double-clicking the address, a Write Register command may be
issued.
shows how bit 1 is set using the ModScan32 Software.
PROPRIETARY INFORMATION - © 2017 WOODWARD, INC. PAGE 17
Interface Modbus
Remote control of easYgen – via Modbus
Example: Remote GCB Open / Close in manual mode via control bit (Modbus)
In LogicsManager of GCB open in MAN configure
1st variable as “04.46 RemoteControl Bit 3” as
shown in the picture
In LogicsManager of GCB close in MAN configure
1st variable as “04.47 RemoteControl Bit 4” as
shown in the picture
PROPRIETARY INFORMATION - © 2017 WOODWARD, INC. PAGE 18
Interface Modbus
Remote control of easYgen – via Modbus
In order to issue a command, the respective bit of object
21F9 (hex), i.e. parameter 505, must be enabled
Example 1: GCB open in Manual mode
By double-clicking the address, a Write Register command may be
issued.
shows how bit 2 is set using the ModScan32 Software.
Example 2: GCB close in Manual mode
By double-clicking the address, a Write Register command may be
issued.
shows how bit 3 is set using the ModScan32 Software.
PROPRIETARY INFORMATION - © 2017 WOODWARD, INC. PAGE 19
Interface Modbus
Remote control of easYgen – via Modbus
Example: Active Power setpoint
For a remote setting of the control setpoints,
it is necessary to use the interface setpoints
instead of the internal setpoints. For
example, use data source "05.06 Interface
pwr. setp." in parameter 5540 (Load setpoint
2 source) to transmit load setpoint via
interface. No password is required to write
this value. shows an exemplary configuration
of the load setpoint 1 source. All other
setpoint sources are configured accordingly.
Note: The interface setpoints may be set using the objects 21F8 and 21FB (hex) i.e. parameter 504 and 507 respectively
for active power.
PROPRIETARY INFORMATION - © 2017 WOODWARD, INC. PAGE 20
Interface Modbus
Remote control of easYgen – via Modbus
The active power setpoint value must be written to object 21FB(hex), i.e. parameter 507.
PROPRIETARY INFORMATION - © 2017 WOODWARD, INC. PAGE 21
Interface Modbus
Remote control of easYgen – via Modbus
The following Modscan32 screenshot shows the
configurations made to remote control parameter
507. The format used here is hex.
1. Open the "Preset Multiple Registers" dialog by
selecting “Setup -> Extended -> Preset Regs” from
the menu.
2. Select “OK” and enter the desired values.
PROPRIETARY INFORMATION - © 2017 WOODWARD, INC. PAGE 22
Interface Modbus
Remote control of easYgen – via Modbus
The dialog closes and the values are changed.
Select “Update” to confirm the entered values.
PROPRIETARY INFORMATION - © 2017 WOODWARD, INC. PAGE 23
Interface Modbus
Remote control of easYgen – via Modbus
In object 21F8(hex), i.e. parameter
504 each bit represents activation
of different setpoints .
In order to activate the setpoint, the respective bit of
object 21F8 (hex), i.e. parameter 508, must be
enabled. The following bits are used for:
Bit 4 for Voltage (V).
Bit 5 for Frequency (Hz).
Bit 6 for Power Factor (PF).
Bit 7 for Active power (kW).
PROPRIETARY INFORMATION - © 2017 WOODWARD, INC. PAGE 24
PAGE 25