MODBUS Communication With Fluidwell E-Series 002 - EN
MODBUS Communication With Fluidwell E-Series 002 - EN
MODBUS Communication With Fluidwell E-Series 002 - EN
MODBUS
Communication
with Fluidwell E-Series
Troubleshooting Guide
Table of content
Table of content..................................................................................................................... 3
Communication settings ........................................................................................................ 4
Physical connection ............................................................................................................... 4
RS-232 communication .............................................................................................................................. 5
RS-485 communication .............................................................................................................................. 6
RS-485 - 2 wire communication................................................................................................................ 6
Register addressing .................................................................................................................................... 7
Communication timing ........................................................................................................... 8
Example using MODBUS Poll ............................................................................................... 9
The connection settings ............................................................................................................................. 9
Troubleshooting with MODBUS Poll .....................................................................................11
Using the communication traffic window ............................................................................................... 11
Error messages ......................................................................................................................................... 12
Problems with USB and/or signal-converters ....................................................................................... 13
NOTES ....................................................................................................................................................... 14
NOTES ....................................................................................................................................................... 15
Communication settings
For all E-Series the communication settings are: 8 databits, no parity, 1 stopbit.
The factory default settings are: 9600 BAUD, Modbus address 1
Communication mode can be either ASCII or RTU, depending on the complexity of the unit.
Please verify the various settings menu.
Physical connection
For the connection lay-out and function, see the instruction manual of the related model.
As a reference, a generic connector lay-out is given
RS-232 communication
When using the RS-232 communication (option CB), terminal C2 is used for supplying the
E-Series interface. Please connect the DTR (or the RTS) signal of the interface to this
terminal and set it active (+12V). If no active signal is available it is possible to connect a
separate supply between terminals C1 and C2 with a voltage of 8V to 12V DC.
RS-485 communication
For battery and loop-powered applications communicating through RS-485, it is important to
disconnect all termination resistors.
The E-Series are designed to work without them for power saving reasons.
Register addressing
In MODBUS, every register is categorised in a group.
In the E-series all registers are located in the ‘Holding registers’ group.
By doing this, all registers can be accessed by just two Modbus function codes.
Currently, the function codes supported are:
function code 3 “Read Holding Registers” (4x references);
function code 16 “Preset Multiple Registers” (4x references).
The registers addresses are available from the appendix of the related instruction
manual which came with the E-series.
When the PLC address range is required (4x references typically used by PLCs),
please add a value of 40001 to the Modbus PDU address. E.g. reading the serial
number with PLC-based addressing means reading 165 + 40001 = register 40166.
Variables spanning multiple registers use ‘big-endian’ data representation. This
means that the lowest register holds the least significant word of the variable.
Although most Modbus Masters will support variables that span 2 registers, variables
spanning more registers sometimes require you to manually calculate the resulting
value.
Following example shows how data is represented and how this calculation can be
accomplished:
For a total-value of 158928, the following register data has been received by the
Modbus master:
PDU Address 566 = 0x0000 =0
PDU Address 567 = 0x0002 =2
PDU Address 568 = 0x6CD0 = 27856
If we interpret this as a 48 bit unsigned integer value, it's value would be:
0x0000.0002.6CD0 = 158928.
If this value needs to be calculated: 0*65536*65536 + 2*65536 + 27856 = 158928.
Communication timing
The current Modbus implementation provides a way to optimize communication
timing. This is especially important when hardware handshake is applicable, i.e.
RS485.
The processing and validation of the request frame from the master takes place
almost immediate after the message is completed. It takes ample time to process the
data and prepare the response frame back to the master. The device could answer
very fast which may give problems at the master communication channel.
The parameter comdelay (register 14, 147 in ms) provides a response delay between
the end of the request frame and the start of the response. The comdelay settings
don't have a menu entry but can be configured over Modbus.
For RS485 the response action would first put the RS485 transceiver in transmit
mode. The device now could send the response frame immediately and after
completion of the frame the RS485 transceiver would switch back to receive mode.
This may cause problems in some environments. Therefore we added two extra
delay settings. The pre-send delay setting (in ms) adds an extra delay after the
transceiver is switched to transmit mode and before the first data character is output.
The post-send delay setting (in ms) adds an extra delay after the last data character
is output and before the transceiver is switched back to receive mode. This may
overcome glitches on the data line due to switching of the transceiver.
The pre-send and post-send delay settings don't have a menu entry but can be
configured over Modbus.
Below are a few screen shots of configuring with MODBUS Poll, a computer-utility
that can easily be obtained from the internet.
The poll-definition for reading the Serial Number, which is 2 registers long
corresponds with the PLC address 40003 and 40004.
Error messages
Whenever something is wrong with the
incoming message, the receiver
answers with an error-message.
Note that there is no communication.
There is one option you could try if you think this could be causing the problems.
There is a possibility to set a communication delay in the E-Series This delay is then
inserted between receiving a message and responding to it.
NOTES
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
NOTES
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
………………………………………………………………………….
Fluidwell BV
PO box 6 Voltaweg 23 Website: www.fluidwell.com
5460 AA Veghel
MODBUS communication
5466 AZ Veghel
with Fluidwell E-Series 002
Find your nearest representative: www.fluidwell.com/representatives
The Netherlands The Netherlands Copyright: 2015 - MODBUS communication with Fluidwell E-Series 002