Types of Fieldbus PDF
Types of Fieldbus PDF
1
BECKHOFF Fieldbus Networks Workshop
2
BECKHOFF Fieldbus Networks Workshop
Ethernet: Overview
3
BECKHOFF Fieldbus Networks Workshop
Device
4
BECKHOFF Fieldbus Networks Workshop
IP-Header
PROT
IP-Data
(IP-Address)
22 Bytes
(MAC-ID)
5
BECKHOFF Fieldbus Networks Workshop
6
BECKHOFF Fieldbus Networks Workshop
TCP: Connection
Establish: Three way handshake between two hosts
• Host 1 sends SYN (synchronize) to host 2
• Host 2 sends ACK to host 1 along with its own SYN
• Host 1 sends ACK to host 2
9
BECKHOFF Fieldbus Networks Workshop
Communication starts
10
BECKHOFF Fieldbus Networks Workshop
IP Address Assignment
Several Possibilities:
1. Setting by Local Software (PC) or Configuration Tool
2. DHCP (Dynamic Host Configuration Protocol)
– requires configuration of DHCP Server
3. BootP (Bootstrap Protocol)
– requires BootP Server
4. ARP –s (adds entry in ARP cache, can be used
to assign IP-Adress to MAC-ID via network)
5. DIP-Switch (on field devices, typically only for LSB)
11
BECKHOFF Fieldbus Networks Workshop
Ethernet: ProfiNet
ProfiNet:
• Access to Profibus Networks via
Ethernet
• Protokoll: RPC (Remote Procedure
Calls) via TCP/IP or UDP/IP
• DCOM-based
• DCOM will not be advanced by
Microsoft (Source: VSLive Conf.)
• DCOM is not Internet-compatibel
(e.g. Firewall )
• Microsofts new developments are
base on HTTP and TCP/IP, SOAP
(Simple Object Access Protocol:
XML based description)
• ProfiNet is not (yet): Profibus on
Ethernet
12 • But: Real Time ProfiNet will come
BECKHOFF Fieldbus Networks Workshop
Ethernet: IDA
•Initially „Kuka and Friends“ + Jetter
•Kuka meanwhile pulled out
•Has selected NDDS (RTI) as
Middleware, uses TCP/IP und
UDP/IP
•Therefore NDDS-User Schneider
joined IDA
•5/2000: Jetter drops VentureCom
DCX and moves to NDDS
•So far white papers and device
model finished
•No final protocol solution published,
no products available yet.
13
BECKHOFF Fieldbus Networks Workshop
Ethernet: Ethernet IP
•ODVA und Control and Information Protocol (CIP)
ControlNet
International Semi Pneu AC Position Other
Devices Valve Drives Cntrllrs Profiles
•CIP (Control User
and Information Layer
Protocol) on Application Object Library
TCP/IP and
UDP/IP
Application Application Layer
•No data Explicit, I/O, Routing
Layer
concerning real
time capability
encapsulation
available Transport DeviceNet ControlNet
DLL DLL Future
and Data Link UPD TCP
•Sample Code Layer Transport Transport
available IP
•First devices
are entering DeviceNet ControlNet Ethernet
Physical
marketplace Layer
Physical Physical Physical Future
Layer Layer Layer
ATM, Firewire
14 USB, Blue Tooth
BECKHOFF Fieldbus Networks Workshop
+ + : Memorandum Of Understanding
TSC tasks:
•Installs Workgroups Chairman
Chairman Joint Technical
•Publishes Standards
Chairman Joint Technical
Workgroup
•Coordinates work of the
Workgroup
Joint Technical
Workgroups
Workgroup
17
BECKHOFF Fieldbus Networks Workshop
Beckhoff ADS
Automation Device Specification:
• Ethernet TCP/IP for networking of control system
• Not just on TCP/IP or UDP/IP: available on most field bus systems as well
LAN
PC Control System PC Control System PC Control System
VB OPC DLL Ethernet VB OPC DLL Ethernet VB OPC DLL Ethernet
18
BECKHOFF Fieldbus Networks Workshop
Fieldbus C
Fieldbus D
Fieldbus A
Fieldbus B
Fieldbus E
19
BECKHOFF Fieldbus Networks Workshop
ADS Protocol
• Client / Server-Principle on TCP or UDP
• Services:
–Synchronous read/write AMS Net ID: Addresses the Device
16 Bytes
ADS Port: Target Location of Data
–asynchronous read/write Index Group
Index Offset
–connect (with defined Cycle Time)
ADS Data
–notification on change (with minimal
Cycle Time)
UDP or TCP Hdr UDP Data or TCP Data
ARP IP RARP
Ethernet
21
BECKHOFF Fieldbus Networks Workshop
22
BECKHOFF Fieldbus Networks Workshop
•11 Buildings
•44 Floors, 27000 m² 3. Floor
Terminal rail 1 Terminal rail 4
Building Computer
23
BECKHOFF Fieldbus Networks Workshop
Modbus TCP: Node Response within 10..20 ms, Cycle Times 40..60 ms
60
50
40
Beckhoff ADS/UDP: Node Response within 1..4 ms, Cycle Times 15..25 ms
30
20
10
0
5 10 15 20 25 30
No of Nodes
24
BECKHOFF Fieldbus Networks Workshop
Ethernet: Conclusions
• high baudrate is not always equal to high performance
• standardisation of Industrial Ethernet is not finished yet
• interoperability is not guaranteed yet
• its either COTS technology or hard real time
• infrastructure costs (industrial components) still
significantly higher than with standard fieldbus systems
Therefore:
Ethernet is no ideal replacement for standard fieldbus
systems (yet), but a nice alternative for applications with:
- existing Ethernet infrastucture
- low real time requirements
25
BECKHOFF Fieldbus Networks Workshop
26
®
Profibus-DP: Topology
Termination Termination
Station Repeater
1
2 3 30 31
Termination
Repeater
62 61 33 32
* Note: Repeaters do not have a station address, but they
count towards the max. number of stations in each segment
27
®
Profibus-DP: Termination
first station last station
Bus Termination Bus Termination
VP VP
390 Ω 390 Ω
110 nH Data Line B 110 nH
B B
220 Ω 220 Ω
110 nH Data Line A 110 nH
A A
390 Ω 390 Ω
DGND DGND
A B A B
Station 2 Station 3
28
®
Profibus-DP: Shielding/Grounding
Master Recommended Practise
Slave Slave
Screen grounding
data cable data cable clamp
29
®
PROFIBUS-DP
DP - Slaves
30
®
CNC PLC
DP-Master
(Class 1) DP-Master
(Class 1)
PROFIBUS - DP
PROFIBUS-P
DP - Slaves
31
®
PC
PLC PLC
polling polling
PROFIBUS
Passive Stations, Slave Devices, get polled, no direct slave to slave communication
32
®
33
®
Profibus-DP: Timing
Time
Master Slave
TSYN = 33 Tbit
Request
Telegram
TRDY Request
min TSDR
Response
Response
max TSDR
Telegram
20
15
10
0
5 10 15 20 25 30
No of Nodes
36
®
Profibus-DP: Troubleshooting
Simple test for eliminating the most common wiring errors:
• Data cable crossed over
• Open circuit of one of the data cables
• Open circuit of the cable shield
• Short circuit between the data cables
• Short circuit between data cables and cable shield
• Additional bus terminating resistors inserted unintentionally
37
®
Profibus-DP: Troubleshooting
Test each segment after installing cables and attaching bus
connectors, but:
- bus connectors must not be connected to Profibus devices
- bus terminating resistors must be removed or disabled
Test equipment: 2 test connectors DB9, 1 Ohmmeter
• Connector 1 with double pole single throw switch; moving
contact connected to shield (case) of the test connector.
Fixed contacts connected to pin 3 (data wire B) and pin 8
(data wire A).
• Connector 2 used to connect the Ohmmeter to the bus
38
®
Profibus-DP: Troubleshooting
RS 485 Segment
Ω
8 3 Bus Connector Bus Connector 8 3
screen Bus Connectors of screen
further stations
39
®
Profibus-DP: Troubleshooting Ω
A B A B
Test Step 1:
TC1: first connect pin 3 and shield
TC2: measure resistance R between pin 3 and shield
If R < 10 Ω: Data B and shield connection o.k.
If R = infinity: Data B or shield open circuit
Then disconnect pin 3 and shield at TC1
Resistance R now has to be infinite.
If not: short circuit between data B and shield or
40 Data A and Data B swapped over
®
Profibus-DP: Troubleshooting Ω
A B A B
Test Step 2:
TC1: connect pin 8 and shield
TC2: measure resistance R between pin 8 and shield
If R < 10 Ω: Data A and shield connection o.k.
If R = infinity: Data A or shield open circuit
Then disconnect pin 8 and shield at TC1
Resistance R now has to be infinite
If not: short circuit between data B and shield or
41 Data A and Data B crossed over
®
Profibus-DP: Troubleshooting Ω
A B A B
42
®
DeviceNet: Overview
Background CAN based Sensor actor bus system, initially developed by Allen Bradley
Medium Access CSMA/CA
Control Method
Addressing Frame Addressing (CAN Identifier). Predefined Master-Slave Connection Set links
Node Adresses (MAC-ID) with CAN Identifiers
Transmission Media, ISO 11898: shielded twisted pair; 125, 250, 500 kBit/s
Baudrate
Topology Electrical: bus (line) with terminating resistors
Node Hierarchy Typical: 1 Master, up to 63 slaves. Several masters possible (rarely used)
Network expansion 100 m (500 kBaud), 250 m (250 kBaud), 500 m (125 kBaud). Use of repeaters
does not lead to longer networks, as propagation delay is the limit (not damping)
Frame Length 0...8 Bytes. Longer process images are sent using segmented transfer
Error Detection CRC, Frame Check, Bus Monitoring, Bit Stuffing, Acknowledge Check. Hamming
Distance: 6 (5 Bits out of 83 may change)
Priorities 2048
Typical Cycle times 5...15 ms
44
BECKHOFF Fieldbus Networks Workshop
S1 S2 S3
State Table
S1 0 1 0 1 0 1 0 1 0 - level is dominant
S2 0 0 1 1 0 0 1 1 1 - level is recessive
S3 0 0 0 0 1 1 1 1
Bus Level 0 0 0 0 0 0 0 1
45
BECKHOFF Fieldbus Networks Workshop
1
node 2 listening only
0
1
node 3
0
1
bus-level
0
46
BECKHOFF Fieldbus Networks Workshop
DeviceNet: Topology
node 1 . . . . . . . . node n
PS
Trunk Line with
Terminating
Resistors + (short)
Drop Lines
„Zero Drop“
Drop Line
47
BECKHOFF Fieldbus Networks Workshop
Dropline
Branching Limitations
20 ft max to node farthest from tap
sum of cable-feet goes against dropline
budget
plug-in device
connector
CAN-Controller 1 CAN-Controller n
~ 40 ns
~ 5,5 ns/m
Drop line
Drop line
50
BECKHOFF Fieldbus Networks Workshop
51
BECKHOFF Fieldbus Networks Workshop
receiver 1 6 bit
receiver 2 6 bit
bus-level
The receiver 2 detects an error and makes it public to the other nodes.
52
BECKHOFF Fieldbus Networks Workshop
Threshold A
2. Different Switching Threshold B
Nodes
Sampling Point
3. Dispersion during
Propagation along the
Bus Line
53
BECKHOFF Fieldbus Networks Workshop
Error Active
27 or
> 1 127
Reset, Configuration
TE EC >
and Reception of
7
TE an = 12
128x11 recessive
C
7
R
12
<
C d
Bits
C
<=
RE
Too many
Errors: Bus Off
54
BECKHOFF Fieldbus Networks Workshop
#2
DRIVE DRIVE DRIVE
I/O 1 1 2 3
DeviceNet: Polling
• The simplest and most understood; “polling”
• The PLC or scanner is the master and I/O devices are the slaves
• The slaves speak only when spoken to
• Only one master per network (“single master”)
• Most (>95%) of all DeviceNet installations work this way
• Deterministic behavior, easy to configure
• But: less efficient use of bandwidth than other options
PLC
3,6,..
1,4,...
I/O 1 2,5,.. I/O 2 I/O 3
56
BECKHOFF Fieldbus Networks Workshop
Interscan delay is the time the scanner module will wait between the
last poll message request and the start of the next scan cycle.
Background poll ratio sets the frequency of poll messages to a
device in relation to the number of I/O scans. For example, if the
ratio is set at 10, that device will be polled once every 10 scans.
PLC
every 500 ms
every 25 ms I/O 1 I/O 2 I/O 3
58 every 2000 ms
BECKHOFF Fieldbus Networks Workshop
PLC
#2
#3 #1
I/O 1 I/O 2 I/O 3
59
BECKHOFF Fieldbus Networks Workshop
80
60
40
20
0
5 10 15 20 25 30
No of Nodes
61
BECKHOFF Fieldbus Networks Workshop
35
25
20
15
10
0
5 10 15 20 25 30
No of Nodes
62
BECKHOFF Fieldbus Networks Workshop
40
35
500 kBaud, 10 Nodes, 80% Busload
Cycle Time [ms]
30
25
20
15
10
0
0 5 10 15 20 25 30 35 40 45 50
64
BECKHOFF Fieldbus Networks Workshop
65
BECKHOFF Fieldbus Networks Workshop
66
BECKHOFF Fieldbus Networks Workshop
Network Power
Network power is a new concept to most control
systems designers
• 24Vdc is supplied in the network cable
• Powers simple devices
• Powers the isolated network interface in larger devices
Power System Design Goals
• Deliver 11Vdc minimum at each device
• Limit common mode voltage to < 5v
• Voltage drop in DC common line
67
BECKHOFF Fieldbus Networks Workshop
68
BECKHOFF Fieldbus Networks Workshop
69
BECKHOFF Fieldbus Networks Workshop
Grounding
Network Grounding Guidelines
• Connect the DC power supply common wire and the shield
to a low-impedance ground at the power supply
• If multiple power supplies are present, ground at only
the power supply closest to the middle of the network
• Location of ground affects common mode voltage
• All splices and taps in the network must connect the shield
as well as the signal and power lines
70
BECKHOFF Fieldbus Networks Workshop
DeviceNet: Shielding/Grounding
Optional R-C Circuit for HF grounding
Master
Slave Slave
71
BECKHOFF Fieldbus Networks Workshop
Testing
General Test Parameters
• Do not perform these tests while the system is operating
(no communication)!
• All devices installed
• All power supplies turned on
• Perform these tests in sequence
• Some tests assume that previous tests were successful
72
BECKHOFF Fieldbus Networks Workshop
Testing (continued)
Network Termination & Signal Wires
• Check the resistance from CANH to CANL at each device
• If the value is > 60 ohms, there 120 Ω
could be a break in one of
the signal wires or
missing network terminator(s)
• If the value is < 50 ohms look for:
- a short between the network wires,
- extra terminating resistor(s), Ω
- faulty node transceiver(s)
Depending on the
type of Ohmmeter it
may be necessary to
disconnect the nodes
for this test! 120 Ω
73
BECKHOFF Fieldbus Networks Workshop
Testing (continued)
Shield
• Connect a DC ammeter (16 amps max) from DC common
to the shield at the opposite end of the network from the
power supply
• There should be significant current flow
• If there is no current, the shield is broken or the network
is improperly grounded
• If the power supply is in the middle of the network, do
this test at each end
• This test can also be performed at the end of each drop
if practical
74
BECKHOFF Fieldbus Networks Workshop
Testing (continued)
Grounding
• Break the shield at a few points in the network and insert a
DC ammeter
• If there is current flow, the shield is connected to DC
common or ground in more than one place (ground
loop)
75
BECKHOFF Fieldbus Networks Workshop
Testing (continued)
Network Power - Minimum supply voltage
• Measure the supply voltage at each device
• It should be > 11Vdc
• If not, check for faulty or loose connectors and verify
power system design calculations by measuring current
flow in each section of cable with an ampmeter
76
BECKHOFF Fieldbus Networks Workshop
Testing (continued)
Network Power - Common Mode Voltage
• Shield must be continuous and have no current flow in it
(tested previously)
• Measure and record the voltage between the shield and
DC common at each device
• The maximum difference should be < 5V between any
two devices
77
BECKHOFF Fieldbus Networks Workshop
Testing (continued)
MAC ID/ Baud Rate Settings
• The Network Status LED is an excellent diagnostic tool for
this purpose
• The LED should be flashing green on all devices
• Solid RED indicates a communication fault (possibly
incorrect baud rate) or a duplicate MAC ID (station
address)
• Use a network configuration tool to perform a "network
who" to verify that all stations are connected and capable
of communicating
78
BECKHOFF Fieldbus Networks Workshop
Diagnosing Faults
Common network problems
• Faulty devices
• Opens & shorts in the network wiring
• Faulty connectors or cable
• Electrical interference
• Incorrect grounding or broken shield
• Signal distortion & attenuation
• Incorrect termination
• Failure to adhere to topology guidelines
• Faulty connectors or loose terminal blocks
79
BECKHOFF Fieldbus Networks Workshop
Diagnosing Faults
Problems specific to DeviceNet
• Missing terminators
• Excessive common mode voltage
• Excess current or cable length
• Faulty connectors
• Low power supply voltage
• Excess current or cable length
• Faulty connectors
• Excessive signal propagation delay
• Excess cable length
80
BECKHOFF Fieldbus Networks Workshop
81
BECKHOFF Fieldbus Networks Workshop
82
BECKHOFF Fieldbus Networks Workshop
83
BECKHOFF Fieldbus Networks Workshop
84
BECKHOFF Fieldbus Networks Workshop
SERCOS: Overview
Background Fibre Optic Network, originally developed for Drive Control
Medium Access Time Slicing Method
Control Method
Addressing Node Addressing
Transmission Media, 1000 µm Plastic Optical Fibre (PMMA:Polymethylmethacrylate);
Baudrate 2 or 4 Mbaud, coming soon: 8 and 16 MBaud
Topology Ring
Node Hierarchy 1 Master, up to 253 slaves
Network expansion Max. 40 m between two nodes
Frame Length Cyclic Drive Telegram: typical 4 Bytes, maximal 32 Bytes
Error Detection CRC. Hamming Distance: 4
Priorities 1
Typical Cycle times 0,5...2 ms, cycle times of 0,0628 ms possible
85
BECKHOFF Fieldbus Networks Workshop
86
BECKHOFF Fieldbus Networks Workshop
87
BECKHOFF Fieldbus Networks Workshop
88
BECKHOFF Fieldbus Networks Workshop
90
BECKHOFF Fieldbus Networks Workshop
0
5 10 15 No of Slaves 20 25 30
91
BECKHOFF Fieldbus Networks Workshop
120
80
40
Datenrate 4 MBit/s
20
Position/Velocity
Control Telegram
10
5
2
93
BECKHOFF Fieldbus Networks Workshop
Max. number of bytes 32 bytes input / 32 bytes output for the cyclic
interface (depending on the master)
CANopen: Overview
Background CAN Protocol defined by CAN in Automation. Used in General Automation
Applications (I/Os, Drives, etc) and in Embedded Applications
Medium Access CSMA/CA.
Control Method
Addressing Frame Addressing (CAN Identifier). Predefined Master-Slave Connection Set links
Node Adresses (MAC-ID) with CAN Identifiers
Transmission Media, ISO 11898: shielded twisted pair; 10, 20, 50, 100, 125, 250, 500, 800, 1000 kBit/s
Baudrate
Topology Electrical: bus (line) with terminating resistors
Node Hierarchy Typical: 1 Master, up to 63 slaves. Several masters possible (rarely used)
Network expansion 100 m (500 kBaud), 250 m (250 kBaud), 500 m (125 kBaud). Use of repeaters
does not lead to longer networks, as propagation delay is the limit (not damping)
Frame Length 0...8 Bytes. Longer process images are sent using different telegrams (PDOs)
Error Detection CRC, Frame Check, Bus Monitoring, Bit Stuffing, Acknowledge Check. Hamming
Distance: 6 (5 Bits out of 83 may change)
Priorities 2048
Typical Cycle times
95 5...15 ms
BECKHOFF Fieldbus Networks Workshop CANopen
96
BECKHOFF Fieldbus Networks Workshop CANopen
Producer/Consumer: PDO
makes use of CAN
PDO_1 consumer PDO_1 consumer
broadcast mechanism
PDO_1
ID Data
97
BECKHOFF Fieldbus Networks Workshop CANopen
Remote Frame
2. Remotely consumer(s)
requested producer
Sync
3. Synchronous consumer(s)
producer
transmission
(cyclic, acyclic)
98
BECKHOFF Fieldbus Networks Workshop CANopen
Communication_Cycle_Period
synchronous
Sync Sync window
length(s)
Actual Command Actual Command
Messages Messages Messages Messages
PDO-Length: 32 Bit
PDO_1 Object A Object B Object D
101
BECKHOFF Fieldbus Networks Workshop CANopen
ID 1 Data
ID 2 Data
102
BECKHOFF Fieldbus Networks Workshop CANopen
Object Dictionary
103
BECKHOFF Fieldbus Networks Workshop CANopen
TPDO_1_M RPDO_1_X
TPDO_2_M RPDO_2_X
Slave Y
RPDO_3_M TPDO_1_Y
RPDO_4_M TPDO_2_Y
TPDO_3_M RPDO_1_Y
104
TPDO_4_M RPDO_2_Y
BECKHOFF Fieldbus Networks Workshop CANopen
RPDO_2_X
RPDO_1_X
TPDO_1_X
TPDO_2_X
Device Z Device Y
RPDO_1_Z TPDO_1_Y
RPDO_2_Z TPDO_2_Y
RPDO_3_Z RPDP_1_Y
TPDO_1_Z RPDO_2_Y
105
TPDO_2_Z RPDO_3_Y
BECKHOFF Fieldbus Networks Workshop CANopen
Up to 128 Client-SDOs
Time-stamp message
Lightbus: Overview
Background Developed by Beckhoff in 1989. Still one of the fastest systems around
Medium Access Master/Slave (Polling)
Control Method
Addressing Node Addressing
Transmission Media, Plastic Fibre Optics (PMMA); 2,5 MBit/s
Baudrate
Topology Ring
Node Hierarchy 1 Master, up to 254 slaves
Network expansion POF: 40m between two slaves; 300m with HCS Fibres
Frame Length 4 Bytes Process Data
Error Detection CRC
Priorities CDL concept allows one to distinguish 8 priorities
Typical Cycle times 1..2 ms (there are applications with 67 µs)
107
BECKHOFF Fieldbus Networks Workshop Lightbus
BK2000
M1400
Lightbus Coupler,
Lightbus module, 32 x digital I/O
Bus Terminals
M2400
BC2000 Lightbus module, 16 x digital I/O,
Lightbus Controller with max. 4 x analog outputs
integrated IEC 61131-3
M3000
Absolut Encoder with Lightbus interface,
24 Bit, 4096 steps/revolution
AX20xx-B200 M3120
Compact digital Lightbus module, 4 channel
servo drive with Incremental Encoder interface
Lightbus interface
M63xx
Operating panels with
108 Lightbus interface
BECKHOFF Fieldbus Networks Workshop Lightbus
Lightbus: Topology
fiber optic ring with 45m (150 ft)
distance between nodes
109
BECKHOFF Fieldbus Networks Workshop Lightbus
Lightbus:Frame Format
deterministic communication in 25µs “frames”
110