Lecture 11 - Industrial Protocols - 1
Lecture 11 - Industrial Protocols - 1
CONTROL SYSTEMS
7/27/2023 Buidangthanh.3i@gmail.com 1
Presentation Outline
7/27/2023 Buidangthanh.3i@gmail.com 2
What is a protocol ?
1-3
Architectural structure of a protocol layer
1-4
Link Layer protocol
1-5
Relevant Standards Bodies
• ISO (www.iso.org)
• An agency of the United Nations.
• Collaborates standards development for information technology.
• ITU (www.itu.int)
• UN treaty agency that sets telecommunications standards.
• ITU-T (Telecommunications section)
• ANSI (www.ansi.org)
• American National Standards Institute: the US national standards body.
• Coordinates and accredits standards development across the US.
• IEEE (www.ieee.org)
• US based international professional organization.
• Among other things, develops standards.
• IETF / IRTF
• Internet Engineering Task Force (www.ietf.org)
• Internet Research Task Force (www.irtf.org)
• EIA (www.eia.org)
• Electronic Industries Alliance
• E.g.; standards for wiring and interconnection
1-7
Requirements for Industrial Protocols
7/27/2023 Buidangthanh.3i@gmail.com 8
Modbus
❑ Historical
❑ Modbus and the ISO model
❑ The physical layer
❑ The link layer
❑ The application layer
❑ Profiles
❑ Strong points weak points
7/27/2023 Buidangthanh.3i@gmail.com 9
Modbus Historical
7/27/2023 Buidangthanh.3i@gmail.com 10
Modbus
Modbus and the OSI model
BootP
7 APPLICATION Modbus HTTP FTP ---
DHCP
7
6 PRESENTATION EMPTY
6 PRESENTATION VIDE
5 SESSION EMPTY
5 SESSION VIDE
4 TRANSPORT EMPTY
4 TRANSPORT VIDE
3 NETWORK EMPTY
3 RESEAU VIDE
Serial Line
2 LINK = LLC + MAC
Master/Slave
2 LIAISON = LLC + MAC
7/27/2023 Buidangthanh.3i@gmail.com 11
Modbus
The physical layer
With any of the serial line implementations, a wide range of baud rates from 1.2
kbps to 115 kbps are allowed, but all implementations must at least support 9.6
kbps and 19.2 kbps. The default rate is 19.2 kbps.
7/27/2023 Buidangthanh.3i@gmail.com 12
Modbus
Example of architecture
7/27/2023 Buidangthanh.3i@gmail.com 13
Modbus
The link layer
The Protocol Data Unit (PDU) consists of four elements. Most Modbus
implementations only use a subset of all the available function codes. The
data structure may change depending upon the function code. Wrapping
the Modbus PDU is an address field and an error check field. The address
field only contains slave addresses or the broadcast address. The master
address is not required and not referenced since this is a master.
7/27/2023 Buidangthanh.3i@gmail.com 14
Modbus
The link layer
7/27/2023 Buidangthanh.3i@gmail.com 15
Modbus
The application layer
7/27/2023 Buidangthanh.3i@gmail.com 16
Modbus
7/27/2023 Buidangthanh.3i@gmail.com 17
Modbus
Profiles
▪ Modbus RTU/TCP: These profiles define the basic Modbus protocol for
serial communication (Modbus RTU) and Ethernet communication
(Modbus TCP). Modbus Master/Slave (Client/Server): This profile defines
the roles and responsibilities of devices in a Modbus network.
▪ Modbus ASCII: This profile specifies the use of ASCII characters for
representing data in Modbus messages.
▪ Modbus over Serial Line (RS-232/RS-485): This profile focuses on the use
of Modbus over serial communication interfaces such as RS-232 and RS-
485.
7/27/2023 Buidangthanh.3i@gmail.com 18
Modbus
Strong points – Weak points
Strengths Weaknesses
◼ Low implementation Cost ◼ Need to write the program to access a
variable.
◼ Relaltivement lent
7/27/2023 Buidangthanh.3i@gmail.com 19
Ethernet TCP/IP Modbus
❑ Historical
❑ Ethernet TCP / IP Modbus and the ISO model
❑ The physical layer
❑ The link layer
❑ The application layer
❑ Profiles
❑ Strong points - Weak points
7/27/2023 Buidangthanh.3i@gmail.com 20
Ethernet TCP/IP Modbus
Ethernet TCP / IP Modbus and the OSI model
Ethernet only covers the first 2 layers of the OSI model
BootP
7 APPLICATION Modbus HTTP FTP ---
DHCP
7
6 PRESENTATION VIDE
6 PRESENTATION VIDE
5 SESSION VIDE
5 SESSION VIDE
4 TRANSPORT TCP
VIDE
4 TRANSPORT VIDE
3 NETWORK IP
VIDE
3 RESEAU VIDE
2 LINK = LLC + MAC CSMA/CD
2 LIAISON = LLC + MAC CAN 2.0 A et B + ISO 11898
1 PHYSICAL Ethernet
CAN 2.0 A et B =V2 ou11898-1
ISO 802.3 et 2
7/27/2023 Buidangthanh.3i@gmail.com 21
Ethernet TCP/IP Modbus
The physical layer
Topology: Free
Bus, star, tree, or ring
7/27/2023 Buidangthanh.3i@gmail.com 22
Ethernet TCP/IP Modbus
Transmission supports
7/27/2023 Buidangthanh.3i@gmail.com 23
Ethernet TCP/IP Modbus
The twisted pair
Increasingly used even in 100 Mbps
7/27/2023 Buidangthanh.3i@gmail.com 24
Ethernet TCP/IP Modbus
The optical fiber
Optical fiber is appreciated for its safety aspect (absence of electric currents), its small
footprint and its immunity to noise and electromagnetic interference.
7/27/2023 Buidangthanh.3i@gmail.com 25
Ethernet TCP/IP Modbus
Example of architecture
Redundant Optical Ring 200 Mbit / s Full-duplex
Transceiver
Optical fiber
Quantum
Hub Transceiver
Optical loop
Hub
7/27/2023 Buidangthanh.3i@gmail.com 26
Ethernet TCP/IP Modbus
Transport network link layers
Media access method: CSMA / CD
Carrier Multiple Access Sense with Collision Detection
The stations are listening to the transmission medium and waiting for it to be free to transmit.
If a collision is detected, each station continues to transmit so that the collision is seen by the entire
network.
The stations re-transmit their message after a time of random duration.
7/27/2023 Buidangthanh.3i@gmail.com 28
Ethernet TCP/IP Modbus
Application Protocols
7/27/2023 Buidangthanh.3i@gmail.com 29
Ethernet TCP/IP Modbus
Transparent Ready Implementation Classes
The implementation classes define a list of services to implement to ensure
interoperability of Schneider Transparent Ready products.
7/27/2023 Buidangthanh.3i@gmail.com 30
Ethernet TCP/IP Modbus
The implementation class
Web services level
services
server client User Net. Global Faulty device I/O TR Gateway
servicesMangt data^replacement scanner
functions
User & communication level servicesm
protocols
01 : modbus Basic access UDP
50 TCP80 502
05 : modbus Regular access
IP
10 : modbus on TCP-IP basic access
RS485 Can
20 : modbus on TCP-IP management access Ethernet and IEEE 802.3 layer
30 : modbus on TCP-IP added values access
40 : distributed control on TCP-IP
7/27/2023 Buidangthanh.3i@gmail.com 31
Ethernet TCP/IP Modbus
Services Web
7/27/2023 Buidangthanh.3i@gmail.com 32
Ethernet TCP/IP Modbus
User Services and Communication
Com
User & Communication with TCP-IP without
TCP-IP
Net Mgt Bd. Mgt
Modbus
Messaging
IOSc FDR Net Mgt
(Modbus) (SNMP)
Glob Data
B R B R
Modbus
Messaging
Net Mgt
(Modbus)
B R E
B R E an B B R B R E B
Communication level 01 B
Communication level 05
Communication level 10
Communication level 20
Communication level 30
optional mandatory
7/27/2023 Buidangthanh.3i@gmail.com 33
Ethernet TCP/IP Modbus
Strong points - Weak points
7/27/2023 Buidangthanh.3i@gmail.com 34
Thank you for your attention!
7/27/2023 Buidangthanh.3i@gmail.com 35