Professional Documents
Culture Documents
training
Industrial
Automation Custumer
View Services
Slide 1 / 20
Modbus
Part 1 :
Part 2 :
Definitions
Part 3 :
Part 4 :
Security of transmission
Part 5 :
Industrial
Automation - Part 6 :
Custumer
View Services
Physical layer
Main characteristics resume
Slide 2 / 20
Schneider documents
Modbus User guide
Reference :
TSX DG MOD *
TSX DR NET *
Industrial
Automation Custumer
View Services
Slide 3 / 20
WEB sites
Modbus.org :
http://www.modbus.org
Modicon site for Modbus users.
Transparent Factory :
http://www.transparentfactory.com
Schneider Electric site for Transparent Factory users.
Modbus Plus :
http://www.modicon.com/techpubs/toc6.html
Modbus Plus Planning and installation.
Industrial
Automation Custumer
View Services
Slide 4 / 20
Part 2 : Dfinitions
Modbus protocol
Industrial
Automation Custumer
View Services
Slide 5 / 20
Part 2 : Dfinitions
Modbus Plus
MODBUS PLUS is a higher speed network 1 Mbit/s token passing derivative
that uses the MODBUS messaging structure.
7 Application
6 Presentation
5
Session
Transport
Network
Industrial
Automation1 Custumer
View Services
Link
Physical
Modbus
Part 2 : Dfinitions
Modbus TCP/IP
MODBUS TCP/IP uses TCP/IP and Ethernet 10 Mbit/s or 100
Mbits/s to carry the MODBUS messaging structure.
7 Application
6 Preentation
Modbus
Session
Transport
TCP
Network
IP
Industrial
Automation1 Custumer
View Services
Link
Physical
CSMA / CD
ETHERNET V2 ou 802.3
Slide 7 / 20
Part 2 : Dfinitions
Slide 8 / 20
Address
Function
Data
Checksum
silence
Modbus ASCII
Industrial
:
Address
Automation Custumer
3A- Hex
View
Services
Function
Data
Checksum
CR
LF
0D Hex 0A Hex
Slide 9 / 20
Address field
Address
Function
Data
Checksum
Valid slave device addresses are in the range of 0 ... 247 decimal.
The individual slave devices are assigned addresses in the range of 1 ... 247.
Value 0 is reserved for broadcast messages (no response).
Request :
A master addresses a slave by placing the slave address in the address field of
the message.
Response :
Industrial
When the slave sends its response, it places its own address in this address field
Automation
- to let the master know which slave is responding.
of the response
Custumer
View Services
Slide 10 / 20
Function field
Address
Function
Data
Checksum
The function code field tells the slave what kind of action to perform.
Response :
For a normal response, the slave simply echoes the original function code.
Industrial
Automation
For an exception
response, the slave returns a code that is equivalent to
Custumer
the original function code with its most significant bit set to a logic 1.
View Services
Slide 11 / 20
Data field
Address
Function
Data
Checksum
The data field contains additional information which the slave must use to take
the action defined by the function code. This can include items like register
addresses, quantity of items to be handled, etc...
Response :
Slide 12 / 20
Checksum field
Address
Function
Data
Checksum
Request :
Industrial
The checksum is re-calculated by the slave and compared to the value sent
by the master.
Automation
If a difference is detected, the slave will not construct a response to the master.
Custumer
View Services
Slide 13 / 20
1 byte
Slave Function
Address code = 3
2 bytes
2 bytes
2 bytes
First word
address
Number of
words to read
CRC16
2 bytes
2 bytes
2 bytes
2 bytes
Number of
bytes read
Value of the
first word
Value of the
last word
CRC16
Response :
1 byte
1 byte
Slave Function
Industrial
Address code
Automation
- =3
Custumer
View Services
Slide 14 / 20
Automation Custumer
View Services
Type
Read n consecutive output bits
Read n consecutive input bits
Read n consecutive output words
Read n consecutive input words
Write 1 output bit
Write 1 output word
Read exception status
Access diagnostic counters
Read event counter
Read connection events
Write n output bits
Write n output words
Read identification
Slide 15 / 20
Frame checking
LRC or CRC is applied to the entire message.
Continuous stream
The entire message frame must be transmitted as a continuous stream.
If a silent interval (more than 1.5 character times RTU mode or 1 second ASCII mode) occurs
before completion of the frame, the receiving device flushes the incomplete message and
Industrial
assumes that the next byte
Automation Custumer
View Services
Slide 16 / 20
Industrial
Automation Custumer
View Services
Slide 17 / 20
Industrial
Automation Custumer
View Services
Slide 18 / 20
Maximum distance:
Data rate:
Industrial
Automation Custumer
View Services
Slide 19 / 20
Master slave
Transmission method:
Messaging
120 words
Transmission security:
LRC or CRC
Start and stop delimiters
Parity bit
Continuous stream
Industrial
Automation Custumer
View Services
Slide 20 / 20