Professional Documents
Culture Documents
Engineering
Supervision level Operator
2
Control Bus
programmable
Control level controllers
Fieldbus
direct I/O microPLCs
Field level
Sensor-Actuator Bus
transducers / actors
Course Hierarchy Industrial Automation | 2017 3
What is a field bus ?
- reduce cabling
smart devices
A
COM
PLC
f
field bus
t
e
But: the number of end-points remains the same ! r
energy must be supplied to smart devices
PV 6000
100
SP 6000
Monitoring redundant
redundant
ECU and boardnetwork
board network
Board network ECU
Diagnosis ECU ECU48V
12V und
Brakes
ECU ECU
ECU
4
Modicom IEC 870-5 DNP 3.0 Conitel RP 570 serial links (telephone)
RTU RTU RTU RTU Remote Terminal Units
COM RTU
substation substation Medium
MV
Voltage
Pumps, gates, valves, motors, water level sensors, flow meters, temperature sensors, gas
meters (CH4), generators, etc are spread over an area of several km2. Some parts of the
plant have to cope with explosives.
• (optional description)
minimum
In principle, the bus could transmit the process variable in clear text (even using XML..)
However, this is quite expensive and only considered when the communication network
offers some 100 Mbit/s and a powerful processor is available to parse the message
More compact ways such as ASN.1 have been used in the past with 10 Mbit/s Ethernet
Field busses are slower (50kbit/s ..12 Mbits/s) and thus more compact encodings are used.
Field busses devices have a low data rate and transmit always the same variables.
It is economical to group variables of a device in the same frame as a dataset.
A dataset is treated as a whole for communication and access.
A variable is identified within a dataset by its offset and its size
Variables may be of different types, types can be mixed.
dataset
0 16 32 48 64 66 70
all door closed
bit offset size lights on
heat on
air condition on
To signal that a variable is invalid, the producer overwrites the variable with "0".
Since both an "all 1" and an "all 0" word can be a meaningful combination, each
variable can be supervised by a check variable, of type ANTIVALENT2:
dataset
correct variable 0 1 0 1 1 1 0 0 0 1
error
0 0 0 0 0 0 0 0 0 0
undefined 1 1 1 1 1 1 1 1 1 1
00 = network error
chk_offset 01 = ok
var_offset 10 = substituted
11 = data undefined
A variable and its check variable are treated indivisibly when reading or writing
The check variable may be located anywhere in the same data set.
instances = =
plant plant plant
image image image distributed variable
database
…
bus
The previous operation modes made no assumption, how data are transmitted.
Traffic Memory
Associative
memory
an associative memory decodes two pages ensure that read and write
the addresses of the subscribed Bus can occur at the same time
datasets Controller (no semaphores !)
bus
Industrial Automation | 2017 24
Freshness supervision
Applications tolerate an occasional loss of data, but no stale data, which are at best useless and
at worst dangerous.
The freshness supervision is evaluated by each reader independently, some readers may be
more tolerant than others.
Bus error interrupts in case of severe disturbances are not directed to the application, but to the
device management.
Industrial Automation | 2017 25
Example of Process Variable API (application programming interface)
ap_put_cluster (cluster_name)
ap_get (cluster_name)
Each cluster is a table containing the names and values of several variables.
The clusters can correspond to "segments" in the function block programming.
Bus devices
Master 1 2 3 4 5 6
(slaves)
Poll
List
plant
time [ms]
T_m t_repeat
t_repeat
The propagation delay T_m
round-trip (t_pd = 6 µs/km)
delay limits t_source access delay
the extension t_mm t_ms (t_repeat < 3 µs)
of the bus T_s
t_repeat
t_sm
T_m
distance
3. The bus is under control of a central master (or distributed time-triggered algorithm).
4. No explicit error recovery needed since fresh value will be transmitted in next cycle.
Consequence: cycle time limited by product of number of data transmitted and the
duration of each poll (e.g. 100 µs / variable x 100 variables => 10 ms)
To keep the poll time low, only small data items may be transmitted (< 256 bits)
2 ms period
4 ms period
1 2 4a 8 16 1 4b 1 2 3 64 1 4a
time
1 ms period 1 ms 1 ms
(basic period) group with
period 1 ms
Notes: Poll cycles should not be modified at run-time (non-determinism)
cyclic
poll application application application application
1 2 3 4
bus source
master Ports Ports
port
Ports Ports
Periodic Traffic
List Memory
sink sink
port port
bus bus bus bus bus
controller controller controller controller controller
bus
port address port data
The bus traffic and the application cycles are asynchronous to each other.
The bus master scans the identifiers at its own pace.
applications
bus
bus instance
Worst-case delay for transmitting all time critical variables is the sum of:
Source application cycle time 8 ms
Individual period of the variable on bus 16 ms
Sink application cycle time 8 ms
= 32 ms
• Bus load very low on average, but peaks under exceptional situations
since transmissions are correlated by process (christmas-tree effect).
sensors/
actors
plant
interrupt
Bus
Controller
bus
Industrial Automation | 2017 34
Response of Event-driven operation
Caller Transport Bus Transport Called
Application software software Application
request
interrupt
indication
confirm
time
The time required to transmit the event depends on the medium access
(arbitration) procedure of the bus.
Non-deterministic Deterministic
events
producers
& consumers
input and
output queues
bus
acknowledgements
data packets
The average delivery time depends on the length of the queues, on the bus
traffic and on the processing time at the destination.
Often, the applications influence the event delay much more than the bus does.
application application
processor processor
events
(interrupts)
traffic
memory queues
(buffer)
bus bus
controller controller
sending: application writes data into memory sending: application inserts data into queue
and triggers transmission,
receiving: application reads data from memory bus controller fetches data from queue
receiving: bus controller inserts data into queue
the bus controller decides when to transmit and interrupts application to fetch them,
bus and application are not synchronized application retrieves data
time
sporadic periodic sporadic periodic
phase phase phase phase
Industrial Automation | 2017 40
Mixing Traffic is a configuration issue
Cyclic transmission takes large share of bus bandwidth and should be reserved for really critical
variables.
Message transmission scheme must exist alongside the cyclic transmission to carry
not-critical variables and long messages such as diagnostics or network management
7 Application
implicit implicit 6 Presentation
Remote Procedure Call 5 Session
Logical Link connection-oriented 4 Transport (connection-oriented)
Control connectionless 3 Network (connectionless)
connectionless 2" Logical Link Control
medium access 2' Link (Medium Access)
common
media 1 Physical
Worst Case is normal case Typical Case works most of the time
=> Devices equipped with clock recording creation time of value (not transmission time).
bus
t1 val1
Industrial Automation | 2017 44
Example: Phasor information
Phasor transmission over the European grid: a phase error of 0,01 radian is allowed, corresponding to +/- 26 µs in a
60 Hz grid or 31 µs in a 50 Hz grid.
In demanding systems, time is distributed over separate lines as relative time, e.g. PPS = one pulse
per second, or absolute time (IRIG-B), with accuracy of 1 µs.
In data networks, a reference clock (e.g. GPS or atomic clock) distributes the time. A protocol
evaluates the path delays to compensate them.
• NTP (Network Time Protocol): about 1 ms is usually achieved.
• PTP (Precision Time Protocol, IEEE 1588), all network devices collaborate to estimate the
delays, an accuracy below 1 µs can be achieved without need for separate cables (but hardware
support for time stamping required).
(Telecom networks typically do not distribute time, they only distribute frequency)
t1 time request
t2
network time response
delay t3
t4
(t 4 t1 ) (t3 t 2 )
2
time request
t’1
t’2
time response
t’3
network delay t’4
distance
time
Pdelay-response
TC
Pdelay-request
TC
TC
MC = master clock
TC TC
TC = transparent clock
OC = ordinary clock
OC OC OC OC
t1 Pdelay_Req t2 Pdelay_Req
t1 t2
Pdelay_Req
t1 t2
peer delay link delay t3
Pdelay_Resp
Pdelay_Resp t3
calculation t4 Pdelay_Resp t3
t4
t4
(contains t3 – t2)
Sync
residence t5
residence time time
t6
calculation residence Sync
time
t5 Sync
(contains all + )
distance
To probe further
• http://www.ines.zhaw.ch/fileadmin/user_upload/engineering/_Institute_und_Zentren/INES/IEEE158
8/Dokumente/IEEE_1588_Tutorial_engl_250705.pdf
• http://blog.meinbergglobal.com/2013/11/22/ntp-vs-ptp-network-timing-smackdown/
• http://blog.meinbergglobal.com/2013/09/14/ieee-1588-accurate/
Only system management messages could be threaded through from end to end,
but due to lack of standardization, data conversion is not avoidable today.
PV 6000
100
SP 6000
Market shares held by the leading fieldbus and industrial Ethernet systems
Source: HMS Industrial Networks, 2016 Industrial Automation | 2017 55
Field device: example differential pressure transducer
4..20 mA current loop
fluid
The voltage drop along the cable and the number of readers induces no error.
Simple devices are powered directly by the residual current (4mA), allowing to transmit signal and power
through a single pair of wires.
Master Slave
Indication
Request
time-out
Response
Confirmation
Transducer-specific (vendor-defined)
calibration data,
trimming,…
CSMA/CD, master-slave,
250 Factory
DeviceNet 500 m 8 bytes 64 multidrop, motors, drives, uses
kBit/s Automation
CAN
10 kBit/s Automobile,
CSMA, Ideal for small data and
CANopen - 25-1000 m 8 bytes Industrial 127
fast sync, uses CAN
1 Mbit/s Automation
http://www.bierlemartin.de/hengstler/training/fbcomp.htm
http://www.pacontrol.com/download/fieldbuscomp.pdf
Industrial Automation | 2017 63
http://www.mtl.de/pdfs/news/open_fieldbus.pdf
CAN
+ bus analyzers and configuration tools available – interoperability questionable (too many different
implementations)
+ Market: industrial automation, automobiles – small data size and limited number of registers in the
chips.
– no standard message services.
Fieldbus
cheap field devices
decentralized I/O simple
cyclic operation devices
Ethernet
Fieldbus is in charge of the connection with the decentralized I/O and for time-critical communication
among the PLCs.
local I/O
CPU
fieldbus
Ethernet
Fieldbusses tend to live very long (10-20 years), contrarily to office products.
There is no real incentive from the control system manufacturers to reduce the
fieldbus diversity, since the fieldbus binds customers.
The project of a single, interoperable field bus defined by users (Fieldbus Foundation)
failed, both in the standardisation and on the market.
Power distribution and galvanic separation (power over bus, potential differences)
Which is the medium access and the link layer operation of CAN ?
Re
Media System Configuration
al
Internet Connectivity
- ti
me
Wireless Industrial
Applications
Hard e
- Tim
Real
Control Loops
Machine-to-machine communication
Wireless Challenges
Attenuation
Fading Existing Solutions
Existing Solutions
Multipath dispersion
Antenna Redundancy
Interference
High Bit Error rate Cooperative diversity
Burst channel errors
ARQ
Reliable delivery
Modulation Techniques
Meet deadlines
Support message priority Transmitter Design
Optimized for Multimedia, TCP/IP and Cable replacement Low power low cost
high data rate applications technology for portable networking in residential
and fixed electronic and industrial
devices. environment.
Energy Consumption High Low (Large packets over Least (Small packets over
small networks) large networks)
Type of Network / Mobile / CSMA/CA and Mobile & Static / Polling Mostly static with
Channel Access polling infrequently used devices
/ CSMA and slotted
CSMA/CA
10 km
1 km 3G
10 m ZigBee Bluetooth
ZigBee
UWB UWB
1m
0 GHz 1GHz 2 GHz 3 GHz 4 GHz 5 GHz 6 GHz
PHY:
• 2,4 GHz Industrial, Scientific, and Medical Band (ISM-Band)
• Transmission power 0 - 10 dBm
• 250 kbit/s data rate
MAC:
• TDMA (10ms slots, static roles)
• Collision and interference avoidance:
Channel hopping and black lists
Network layer:
• Routing (graph/source routing)
• Redundant paths
Transport layer:
• Quality of Service (QoS): (Command, Process-Data, Normal, Alarm)
Application layer:
• Standard HART application layer
• Device Description Language
• Timestamping
Boot-strapping:
• Gateway announcements (network ID and time sync)
• Device sends join request
• Authentication and configuration via network manager
• What are the challenges of the wireless medium and how are they tackled?
• How can UWB offer both a costly and high bandwidth and a cheaper and high
bandwidth services?
• Which methods are used to cope with the crowded ISM band?