Documente Academic
Documente Profesional
Documente Cultură
Chapter 6: Profibus
Profibus Features
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
Introduction
Profibus = PROcess FIeld BUS
Initialized in 1987 by the German Ministry for Research and Technological Development. Now managed by an association of PROFIBUS Manufacturers, Users and research institutions More than 1100 members worldwide (Profibus International)
Profibus Versions
Profinet
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
Physical Layer
RS485 or Fiber Optic Baudrate from 9.6 Kbps to 12 Mbits Max distance without Repeaters: Depends on the Baudrate
Bit rate
9.6 Kb/s 187.5 Kb/s 19.2 Kb/s 93.75 Kb/s 500 Kb/s 1,5 Mb/s 3 Mb/s 6 Mb/s 12 Mb/s 1000 m 400 m 200 m 100 m
1200 m
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
Connections
SubD 9 or Open Connector
VP* B A
VP* B A
DGnd* (5)
DGnd* (5)
A (8)
B (3)
A (8)
B (3)
Device 2
Device 3
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
Link Layer
Passive stations (slaves) uses the master-slave concept.
Master polls the slaves one by one. The transmit message send to the slaves is called PPO (Parameter Process Object).
Frame Transmission
Start Delimiter Length Destination address . User Data (max. 244 bytes) Frame check sequence End delimiter
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
3 Types of Profiles
DP-V0: basic functionality of DP, including cyclic data exchange (implicit exchanges) station, module and channel-specific diagnostics DP-V1: DP-V0 features + on request data communication for parameter assignment (explicit exchange) alarm handling DP-V2: for isochronous mode and data exchange broadcast (slave-to-slave communication, dedicated for motion control)
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
10
Application Profile
Device Variable & Profile Defined in GSD File
General specifications Information on vendor and device names, Hardware & software versions, supported transmission rates Master specifications Contain all master related parameters, such as: the maximum slave number that can be connected, or upload and download options. Or slaves specifications Contain all slave related specifications such as: the number and type of I/O channels, diagnostic texts & information on the available modules in the modular devices case.
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
11
Standardized Profiles
IO Profiles Defined by the Organization
Profibus provides some profiles depending of the application to define an interoperability between similar devices for different vendors. Examples: PROFIdrive (Speed drive device) Low-voltage switchgear Encoders ATV71 Panel devices (HMI)
TeSys U TeSys T
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
12
Data Exchanged
Fixed Mapping PKW
Reach any other data
PERIODIC INPUT OUPUT
Bytes 0 & 1 Bytes 2 & 3 Bytes 4 & 5 PKW Bytes 0 & 1 PKW Bytes 2 & 3 PKW Bytes 4 & 5 PKW Bytes 6 & 7
Explicit Exchange
Read / Write requests DPV1 only !
APERIODIC
Bytes 8 & 9 PKW Bytes 0 & 1 PKW Bytes 2 & 3 PKW Bytes 4 & 5 PKW Bytes 6 & 7
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
13
Configuration Parameters
Parameter Telegram
Configuration of the device thanks to the fieldbus Depends on the GSD
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
14
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
15
3 Compatible DTMs
Master DTM Generic Profibus Device DTM Comm DTM
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
16
Hardware Description
4 leds for PRM and PROFIBUS diagnostic Embedded dual port Ethernet switch
Daisy chain (loop in a next step) 2 status led / port
External 24V power supply 2 rotary switch for Device_Name assignment (FDR)
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
17
Typical Connections
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
18
Frame Application
HART
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
19
Communication DTM
Communication Driver
Gateway DTM
Gateway Driver
Device DTM
Device Driver
BTM
BTM
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
20
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
21
Hardware Catalog
DTM Database
Tools Menu Hardware Catalog
Update Tool
Used to add New devices inside the catalog DTM must be installed in Windows before
- DTM Config saved into STU or STA (not XEF) - DTM must be installed on the computer (otherwise project cannot be saved)
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010 22
DTM Transfer
With Project Transfer
Integrated DTM
PRM Switch
PLC
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
23
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
24
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
25
Ethernet
PRM
DP Class 1
Profibus DP Profibus PA
Device DTM
GSD file
26
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
27
PRM CommDTM
CommDTM
Supervision & partial configuration of the PRM Can be used in Unity and any FDT application
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
28
Ethernet
PRM
Input
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
29
PLC primary
Ethernet
DP Class 1
Profibus DP Profibus PA
Input
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
30
Exercise
PRM Master DTM (p6-17) Install the PRM DTM Add the PRM inside the Hardware Catalogue Add the PRM inside a Unity Pro project
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
31
Dynamic Assignment
IP Assignment Given By Servers
Switch
Switch
Your IP @
Client
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
32
BootP Server
Server Has a Populated List of Devices
Devices identified with their MAC address Device #1
My MAC address is 00.80.F4.FF.00.D5, Can I get an IP Address?
Master (Server)
00.80.F4.FF.00.D5 192.168.0.23 192.168.0.81 192.168.0.40 00.80.F4.FF.44.21 00.80.F4.FF.F2.15
Sure! You are listed in my address table. Take this address: 192.168.0.23
Device #2
Sorry, you are not listed into my address table. Use your default IP address
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
33
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
34
DHCP Server
Same As BootP but Based on Role Name
User configurable names used instead of MAC Addresses Device #1
My name is STBNIP2212_023, Can I get an IP Address?
Master (Server)
STBNIP2212_023 192.168.0.23 192.168.0.87 192.168.0.21 TesysT_046 ATV71_555
Sure! You are listed in my address table. Take this address: 192.168.0.23
Device #2
Sorry, you are not listed into my address table. Use your default IP address
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
35
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
36
DHCP Server
Example with Unity Pro
37
FDR Server
Additional Feature of A DHCP Server.
Send the stored configuration inside a replaced device Device #1
My name is TesysT_072, Save my settings now!
Master (Server)
TesysT_072 192.168.0.87
Device #1
Master (Server)
TesysT_072 192.168.0.87
New Device
Sure! You are listed in my table. Take this address: 192.168.0.87 Moreover, I found a configuration corresponding to your role name. Here is your new configuration.
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
38
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
39
Master / Client
Slave / Server
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
40
IO Scanning
Filling the Different Fields
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
41
IO Scanning (Cont.)
Debug View Online Mode (M340 and Premium Only)
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
42
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
43
Transfer Organization
Transfer Unity Application to the M340 Transfer PRM Configuration Through Ethernet
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
44
Exercises
PRM Configuration (p6-32) Set the MAC address Set the IP address: 192.168.0.X3 Create the role name with the rotary switches Activate the DHCP IO Scanning Configuration (p6-42) Add a network Configure the IP address of the M340: 192.168.0.X5 Set the appropriate line in the IO Scanning Verify the address server Transfer the Configuration (p6-47)
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010 45
Advanced Settings
Advanced parameters automatically calculated to be changed only if needed
IO Scanning
Behavior in regards with the IO Scanning
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
46
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
47
Scan Optimization
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
49
PRM Management
Dedicated Function Blocks Library PRM_MGT
Used to start the PRM master Depends on the PLC
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
50
Exercises
Modifying Some Settings (p6-54) Set the PRM watchdog to 5sec Set the Modbus Health timeout to 3sec Test the new settings
Enable the Profibus Master (p6-58) Install the Profibus Library Implement the PRM_MGT FB Insert the appropriate variables Operate the Master
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
51
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
52
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
53
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
54
Device Parameters
Device With DTM
Parameters are done using the proprietary DTMs
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
55
Device Parameters
Device From GSD
Standard parameters, module to be configured
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
56
Process Variables
Custom Names
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
57
Online Diagnostics
All Bus Overview
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
58
Device Diagnostics
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
59
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
60
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
61
Exercises
Add a Device from a GSD (p6-68) Add the GSD in the library Add the device in the DTM Browser Configure a Device from GSD (p6-75) Change the address of the device to 5 Configure the modules Configure the modules parameter: fallback mode Update the IO Scanning Connect and test Online Diagnostics (p6-81)
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
62
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
63
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
64
Exercises
Diagnostic Management (p6-87) Create a diagnostic by tripping the Tesys U Read the diagnostic and reset the bit using RDIAG Read Data Record (p6-89) Implement the RDREC to read the ID register Write Data Record (p6-81) Implement the WRREC Write the configuration register Fallback Behaviour
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
65
Miscellaneous
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
66
Profibus
Main Features Reminder:
up to 100m at 12Mbit/s, 1200m w/o repeaters at 93,75kbit/s response time < 2ms at 12Mbit/s up to 126 devices, up to 32 per segment maximum 244 byte as user data per telegram shield used as reference point error detection: good (HD=4) low process data flexibility
Industrial Communication Course with Unity Pro - Profibus Schneider Electric | Industry Business | Training | E. Pauchet V5.0 June 2010
67