Modbus FAQ: Home Products Tutorial Directory Glossary Contrib
Modbus FAQ: Home Products Tutorial Directory Glossary Contrib
com/modbus_faq
Search
Recent Posts
Home Products Tutorial Directory Glossary Contrib
Ads by Google
Modbus FAQ
General
1 of 10 6/4/2008 1:42 PM
Modbus FAQ | PLCdev http://www.plcdev.com/modbus_faq
No, they are different protocols and not compatible. To link the two
protocols a converter like Panel-Tec’s MD3000 is needed. This FAQ only
applies to Modbus serial communications.
No, they are different protocols and not compatible. A converter from
Popular Articles MODBUS serial to MODBUS TCP/IP Ethernet is needed (for instance the
PLC Timeline EIS-2B Series Industrial MicroServers from Omega Engineering). This FAQ
Rockwell Automation's
only applies to Modbus serial communications.
Retroincabulator!
PLC Basics
6. Where can I find out more about MODBUS?
PLC Simulators
Cheap PLCs
Modicon’s MODBUS Protocol Guide:
http://www.modicon.com/techpubs/toc7.html
Navigation
The MODBUS Users Web Site: http://www.modbus.org/
Book reviews
Online books
Recent posts Networking
About
7. What is a master-slave network?
RSS A master-slave technique is one in which only one device (the master)
Feed Me! Firefox and can initiate transactions (queries). The other devices (the slaves) respond
Thunderbird make it easy to by supplying the requested data to the master, or by taking the action
keep up on the latest articles requested in the query. Typical master devices include touch screens or
from PLCdev PCs running Wonderware, Intellution or LabVIEW while slaves include
PLCs and smart devices such as PID controllers or meters.
User login
8. How can I connect MODBUS devices together in a network?
Username: *
RS-232 outputs cannot be connected together. To create a network the
devices must use a RS-485 network and have a unique slave address.
Password: *
References:
Log in
Create new account AutomationDirect FA-ISOCON manual:
Request new password http://www.facts-eng.com/manuals/faisoconm.pdf
Dataforth DCP485 manual:
http://www.dataforth.com/catalog/pdf/DCP485.pdf
9. What are RS-232, RS-422 and RS-485 and how are they different?
These are standards for serial communications that define the pin outs,
cabling, signal levels, transmission baud rates and parity checking.
RS-232 only allows for one master and one slave and is limited to
distances of up to 15 meters.
RS-422 can address up to 10 slaves using four wires (full duplex) and
has a distance capacity of 4000 meters.
RS-485 can address up to 32 slaves using either a two wire (half
duplex) or four wire system (full duplex) and has a distance capacity of
4000 meters.
2 of 10 6/4/2008 1:42 PM
Modbus FAQ | PLCdev http://www.plcdev.com/modbus_faq
Protocols define how the data is structured while the electrical standards
determine how the data is physically transmitted. There are many
different protocols (i.e. Modbus, DF1, AS511) that can be used on
RS-232, RS-422 or RS-485 wired systems.
References:
The address can be a unique number between 1 and 247 for all these
systems.
Wiring
3 of 10 6/4/2008 1:42 PM
Modbus FAQ | PLCdev http://www.plcdev.com/modbus_faq
Dataforth Converters
4 of 10 6/4/2008 1:42 PM
Modbus FAQ | PLCdev http://www.plcdev.com/modbus_faq
References:
5 of 10 6/4/2008 1:42 PM
Modbus FAQ | PLCdev http://www.plcdev.com/modbus_faq
12a. What are the dip switch settings for the Dataforth DPC485?
12b. What are the dip switch settings for the AutomationDirect (Facts
Engineering) FA-ISOCON?
14. Do I have to turn off the PLC and other devices to connect the
wires?
15. How far away can devices be away from each other?
6 of 10 6/4/2008 1:42 PM
Modbus FAQ | PLCdev http://www.plcdev.com/modbus_faq
Communicating
Parity: Even
Data Bits: 8
Stop Bits: 1
RTU mode (Remote Terminal Unit) contains 4 bit hex characters divided
up into 8 data bits, 1 parity bit, 1 start bit, and 1 stop bit. It uses CRC
(Cyclical Redundancy Check) for error checking. RTU has the advantage
that it can send more data in the same amount of time but it has to be in
a continuous stream (no delays between characters).
19. OK, that was too much information for me. Should I use RTU or
ASCII?
Addressing
This is a 16-bit data field. The data can be in binary (decimal), hex or BCD
format. Types of register data include temperatures, pressures, times and
PID variables.
23. Why do some addresses have only four digits when I expect five?
7 of 10 6/4/2008 1:42 PM
Modbus FAQ | PLCdev http://www.plcdev.com/modbus_faq
Typically there are two ways that MODBUS can address the PLC:
#1 - Most software packages allow you to specify the MODBUS data type
and address. This is the easiest method and most often used.
#2 - If your host software package specifies an address only then you will
need to determine the addressing mode as either 484 or 584/984. If
the address is supposed to be four digits then it is 484 mode. If the
address is to be five digits then it is 584/984 mode. The following
table shows what will need to be added to the existing address:
Coils +1 +1
Troubleshooting
Ocean Controls -
http://www.oceancontrols.com.au/modbus/modview.htm
Wintech Software - http://www.win-tech.com/html/modbus1.htm
LabVIEW can be used but the MODBUS component called BusVIEW
must be purchased first from SEG Corp. (www.softwarewithrelish.com).
To test an RS485 connection first establish that the RS232 side is working
by disconnecting the RS232/485 converter and testing by the above
method. Once the RS232 side is confirmed as working the only way to
verify the RS485 connection with a PC is to use another RS232/485
converter to convert the signal back into a RS232 signal that the PC can
8 of 10 6/4/2008 1:42 PM
Modbus FAQ | PLCdev http://www.plcdev.com/modbus_faq
read. A converter on another PLC can be used for testing but the RS232
side of the converter must be disconnected first before using the PC.
28. I’m getting communication time out errors and I can’t get the
device to communicate with my software? What could be wrong?
29. The MODBUS data does not match what is on the screen. What is
wrong?
The addressing may be off by one depending upon how the host
software handles addressing.
Slow communications may delay updates on MODBUS data.
Host software is not configured to continually poll for new readings.
The data format may be set up incorrectly. Refer to the user manual’s
MODBUS table for the data formatting.
Typically the data will be in binary/decimal format. In certain
situations the data may be in hexadecimal.
Some data has implied decimal places so that a value of 432.1
will be 4321 in MODBUS.
Some large numbers may require two addresses. This is called a
double word. The low address (word) will contain the first four
places while the higher address (word) will contain the upper four
digits. For a quick conversion take the (high word X 10000) + low
word.
Sometimes scaling is required to derive the proper number. The
scaling is indicated on the MODBUS table where the actual data is
given and then the scale value. For example, if the actual reading
is from 0 to 4095 and the scaling is from 0 to 100 then the actual
value will have to be divided by 40.95 to get the proper scaling.
9 of 10 6/4/2008 1:42 PM
Modbus FAQ | PLCdev http://www.plcdev.com/modbus_faq
Ads by Google
www.advosol.com
10 of 10 6/4/2008 1:42 PM