0% found this document useful (0 votes)
228 views18 pages

PROFIBUS Slave Development: How To Select A Network Interface

Uploaded by

Bob Yahya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
228 views18 pages

PROFIBUS Slave Development: How To Select A Network Interface

Uploaded by

Bob Yahya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

Berne University of Applied Sciences PROFIBUS International Conference

June 2004 Page 1


School of Engineering and Information Technology

PROFIBUS slave development

Prof. Max Felser


Berne University of Applied Sciences
School of Engineering and Information Technology
Division of Electrical- and Communication Engineering
Jlcoweg 1, CH-3400 Burgdorf, [email protected]

Berne University of Applied Sciences PROFIBUS International Conference


June 2004 Page 2
School of Engineering and Information Technology

How to select a network interface


Old
External
device
yes interface
?

no

only > 1500


pieces p.a. Own
one bus
yes ? yes development
?
no,
Different Small numbers
busses

Complex Communication-
device yes Modul
?

Single Chip
Solution
Berne University of Applied Sciences PROFIBUS International Conference
June 2004 Page 3
School of Engineering and Information Technology

Set of Interfaces (Hilscher)

EC-1

PC-cards OEM-Module ASIC Kits

„ same firmware
„ same ‘easy-to-use’ user interface
„ same configurator
„ same device driver
„ different formfactors

Berne University of Applied Sciences PROFIBUS International Conference


June 2004 Page 4
School of Engineering and Information Technology

Set of ASICs (SIEMENS)

Master ASPC2

DPC31

Intelligent Slave SPC3 12 Mbaud


SPC41
+ SIM 11 31.25 kbaud
RS 485 IEC 1158-2

LSPM2 SPM2
Simple Slave
Berne University of Applied Sciences PROFIBUS International Conference
June 2004 Page 5
School of Engineering and Information Technology

The application defines the requirements

Short Application Requirements Bitrate / Speed


Name

PA/GA Processautomation Long distances 93.75 KBit/s


Buildingautomation Slow processes

MPI Programming Compatible with 187.5 KBit/s


SIMATIC
FMS Master-Master Not for new systems 500 KBit/s
communication

DP Remote I/O Efficient protocols 1.5 MBit/s

MC Motion Control Short and stable 12 Mbit/s


cycle times

Berne University of Applied Sciences PROFIBUS International Conference


June 2004 Page 6
School of Engineering and Information Technology

PROFIBUS DP System Structure

Device
Device Type
Type
User
User-- e.g.
e.g. Proxy
Proxy--FB
FB
Manager
Manager (DTM),
(DTM), Application
Program
Program (IEC
(IEC61131
61131--3)
3)
(EDD-Interpreter)
(EDD-Interpreter) Programmer's
Interface (API)

Process Comm- FB Field - Device -


Image (IEC 61131 - 3) Tool (FDT)

DPV0 / MS0 MS1 MS2 Communications


Platform
PROFIBUS FDL PROFIBUS FDL

Class 1 Master Class 2 Master

Slave

PROFIBUS FDL
Communications
MS0 MS1 MS2 Platform

Device Model
Berne University of Applied Sciences PROFIBUS International Conference
June 2004 Page 7
School of Engineering and Information Technology

Possible internal structure of Fieldbus Data Link

SRD
FDL-Services FDL-Management
SDN

PROFIBUS-FDL
Life-List
SAP FDL
Activate (SAP)

CODEC
Write Parameter
Read Parameter
UART

Physical Layer (RS-485)

Berne University of Applied Sciences PROFIBUS International Conference


June 2004 Page 8
School of Engineering and Information Technology

Implementation Technologies

• Software (C)
• Hardware (ASICs / VHDL)
• Hybrid solutions

Bitrate ≤ 187.5 kBit/s ≤ 1.5 MBit/s ≤ 12 MBit/s

UART Block HW HW HW

CODEC Block SW HW HW

FDL Block SW SW HW

For mass production and top speed special HW is mandatory


Berne University of Applied Sciences PROFIBUS International Conference
June 2004 Page 9
School of Engineering and Information Technology

Classification of network interfaces

Class 1 Class 2 Class 3 Class 4 Class 5


Application
processor processor
for the for the
application application
processor processor
for the for the
Interface Interface
application application
Communication and the and the
processor processor network network
Layer 7 intelligent
for the for the network
network network controller
Layer 2 (Multiplexer)
Interface Interface
network network
network controller network controller
Layer 1 controller controller

Adopted from Prof. Bender, TR-Fachkongress, 1992

Berne University of Applied Sciences PROFIBUS International Conference


June 2004 Page 10
School of Engineering and Information Technology

Class 5: Multiplexer interface


RS-485
SPM2/
Inter- Process data
PROFIBUS LSPM2
face
RS-485 Interface

48 MHz

Clock pulse M TxD


generator i RS 485 Interface
RxD
c
Interface for r
o I/O
Port A
ser. EEPROM s
shift register e I/O /Diag
Port B
q
I/O Inter- u I/O /Diag
Port C
face e
n
Port D I/O /Diag
c
NORMOPER e
Port E Diagnostics
DIAERROR r

Watchdog Baudrate Generator

XSREE
Berne University of Applied Sciences PROFIBUS International Conference
June 2004 Page 11
School of Engineering and Information Technology

Examples of Multiplexers (SIEMENS)

LSPM2 SPM2

MQFB, 80 Pin, 2cm2 PQFB, 120 Pin, 10cm2

– Transmission rate up to 12Mbaud


– DP Protocol completely integrated
– No processor required
– Data Volume:
LSPM 2 - 32 bit I/O & 8 bit diagnostic
SPM 2 - 64 bit I/O & 16 bit diagnostic

Berne University of Applied Sciences PROFIBUS International Conference


June 2004 Page 12
School of Engineering and Information Technology

Serial PROFIBUS interface (Example)


HCPL060f
3 24HC132
RTS 300 R
& 300 R
2
M
1 2P5
300 R
680 R

CTS 300 R M EN 2P5 1


100 K

680 R 2P5 75ALS176D


68n 8 U+ 2
B-line
HCPL7101 3 EN1
2M 1K2 3
P5 OUT 5 GND RTS
U 4
4 EN 680 R 2 EN2
TxD + 680 R 2M
68n
U- 2M 6 5
IN 1 2P5
20K

M U+ 68n
7 6
1
U- 2P5 1
P5 7
1K2

2 A-line
68n U+ U 68n 8
M U- + Driver select:
9
100 K

2
680 R EN IN Differential voltage > 2V
RxD OU 2M
T U- Important:
2M
1M

HCPL7101 2.2 .. 22 nF
Electrical isolation to bus
500 V P5 and 2P5

Shield
Berne University of Applied Sciences PROFIBUS International Conference
June 2004 Page 13
School of Engineering and Information Technology

Class 5: Multiplexer interface

Busadresse
A Digital Input DI2
D
LD1 Rx/Tx+
SPI Interface
CLK
Rx/Tx-
®

Diagnose LED D Digital Output DO1


PROCESS FIELD BUS

A
5V
GND

DI1

AnyBus-IC
5V
GND

Berne University of Applied Sciences PROFIBUS International Conference


June 2004 Page 14
School of Engineering and Information Technology

Classification of network interfaces

Class 1 Class 2 Class 3 Class 4 Class 5


Application
processor processor
for the for the
application application
processor processor
for the for the
Interface Interface
application application
Communication and the and the
processor processor network network
Layer 7 intelligent
for the for the network
network network controller
Layer 2 (Multiplexer)
Interface Interface
network network
network controller network controller
Layer 1 controller controller

Adopted from Prof. Bender, TR-Fachkongress, 1992


Berne University of Applied Sciences PROFIBUS International Conference
June 2004 Page 15
School of Engineering and Information Technology

Class 3: Simple application

Applikationsprozessor
TxD RxD
RxD TxD
Serielle
2-leiter
TTL-
TTL-Schnittstelle
Rx/Tx+
Adress + Datenbus Rx/Tx-
®

PROCESS FIELD BUS

Peripherie
5V
GND

Peripherie

AnyBus-IC
5V
GND

Up to 32 Byte Input and 32 Byte Outputdata

Berne University of Applied Sciences PROFIBUS International Conference


June 2004 Page 16
School of Engineering and Information Technology

Complete interfaces (HMS)

DIL 32 Format
42 x 21 x 12 mm

AnyBus-IC includes all analog and digital interfaces of the


Interface to the bus
Berne University of Applied Sciences PROFIBUS International Conference
June 2004 Page 17
School of Engineering and Information Technology

Intelligent ASICs (SIEMENS)

SPC3 SPC41 DPC31 ASPC2

Max. Transmission 12 12 12 12
Rate [Mbaud]

Transm. Medium RS 485 RS485 / MBP-IS (with SIM 11) RS 485

Protocol DP (DPV1) DP/FMS/PA DP/DPV1 DP/DPV1/FMS


Message Buffer 1.5 1.5 6 1,000
[kByte] external

Housing PQFP, 44 PinPQFP, 44 Pin PQFP, 100 Pin MQFP, 100 Pin

Berne University of Applied Sciences PROFIBUS International Conference


June 2004 Page 18
School of Engineering and Information Technology

Available Firmware for the SIEMENS ASICs

SPC 3 SPC 41 DPC 31


Application Application Application
Slave Slave Slave

DPV1
PROFIBUS
PROFIBUS DP PROFIB. FMS
DP PROFIBUS DP
PROFIBUS FDL PROFIBUS FDL
PROFIBUS FDL + Data-Link-Layer IS + Data-Link-Layer IS
+ Physical-Layer Synchronous + Physical-Layer Synchronous

PROFIBUS

RS 485 (max. 12Mbaud)

Hardware SIM 11 SIM 11

Software
PROFIBUS (intrinsic safety)
MBP-IS (31.25kbaud)
Berne University of Applied Sciences PROFIBUS International Conference
June 2004 Page 19
School of Engineering and Information Technology

One of the most used…. SPC3 (VPC3)

up to 244 byte automatic search


of data of baudrate 9.6kbd-12Mbd

3 buffers for each: DP slave


input & output protocol integrated
data; 1 for PRM;
2 for CFG & DIAG SPC3

interface to:
Intel (8032, 80x86)
Motorola (HC11/16/916)
Siemens (80166/80167)

firmware available 1.5 kByte


internal RAM

Berne University of Applied Sciences PROFIBUS International Conference


June 2004 Page 20
School of Engineering and Information Technology

Simple adaptation of SW libraries


Example with SIEMENS

SPC3
if(DPS2_GET_IND_NEW_PRM_DATA())
{ /*=== New parameter data ===*/
UBYTE SPC3_PTR_ATTR * prm_ptr;
UBYTE param_data_len, prm_result;
UBYTE ii;
prm_result = DPS2_PRM_FINISHED; User makes changes to adjust
do { /* Check parameter until no conflict behavior */ code to own application
prm_ptr = DPS2_GET_PRM_BUF_PTR();
param_data_len = DPS2_GET_PRM_LEN();
/* data_length_netto of parametration_telegram > 7 */
if (param_data_len > 7)
{
if (( *(prm_ptr+8) == 0xAA) && ( *(prm_ptr+9) == 0xAA))
prm_result = DPS2_SET_PRM_DATA_NOT_OK(); /* as example !!! */
else
{
for (ii= 0; ii<param_data_len & ii <10; ii++) // store in the buffer
prm_tst_buf[ii] = *(prm_ptr+ii+7);
prm_result = DPS2_SET_PRM_DATA_OK();
}
}
else
prm_result = DPS2_SET_PRM_DATA_OK();
} while(prm_result == DPS2_PRM_CONFLICT);
Berne University of Applied Sciences PROFIBUS International Conference
June 2004 Page 21
School of Engineering and Information Technology

PROFIBUS-DP – CAN Gateway for Motion-Controller

The motors to turn the


CDs are controlled over a
PROFIBUS-DP – CAN
gateway

Project with: Balzers Process Systems

Berne University of Applied Sciences PROFIBUS International Conference


June 2004 Page 22
School of Engineering and Information Technology

PROFIBUS-DP force interface in a connector

Singlechip 8051 controller with a SPC3

Project with: Force Measuring Systems AG


Berne University of Applied Sciences PROFIBUS International Conference
June 2004 Page 23
School of Engineering and Information Technology

Class 3: Low power Interface


(e.g. PROFIBUS-PA Interface for temperature transmitter)

Bus connection to MBP-IS technology

• PROFIBUS-PA Interfaces for I


Field devices are very small
and require only a few ASICs
• The use of low power
Microcontrollers and the low
power PROFIBUS ASICs
reduces power consumption
and ensures powering over the
bus at less than 10 mA.
• direct replacement of existing
"Round Boards" is possible

SIEMENS SIEMENS Mitsubishi D/A, A/D


SIM 1 SPC 4 M16C 0-10 V
0/4-20 mA

Berne University of Applied Sciences PROFIBUS International Conference


June 2004 Page 24
School of Engineering and Information Technology

PROFIBUS-PA interface for temperatur transmitter

Project with: Camille Bauer AG, Wohlen


Berne University of Applied Sciences PROFIBUS International Conference
June 2004 Page 25
School of Engineering and Information Technology

Classification of network interfaces

Class 1 Class 2 Class 3 Class 4 Class 5


Application
processor processor
for the for the
application application
processor processor
for the for the
Interface Interface
application application
Communication and the and the
processor processor network network
Layer 7 intelligent
for the for the network
network network controller
Layer 2 (Multiplexer)
Interface Interface
network network
network controller network controller
Layer 1 controller controller

Adopted from Prof. Bender, TR-Fachkongress, 1992

Berne University of Applied Sciences PROFIBUS International Conference


June 2004 Page 26
School of Engineering and Information Technology

Class 1: High performance interface


(e.g. frequency converter with PROFIdrive profile)
PROFIBUS

16 Bit RS 485 /
Data

Microcontroller Fibre Optic


Dual Port RAM

Host with
Interface
seperate
microcontroller
Commands

local local Protocol ASIC


RAM Eprom e.g. SPC3, SPC4
EC1, PBS

Host computer
runs application PROFIBUS Interface runs Protocol
software on seperate Software on separate Microcontroller
Microcontroller
Berne University of Applied Sciences PROFIBUS International Conference
June 2004 Page 27
School of Engineering and Information Technology

Available Moduls (SIEMENS)

IM 180 IM 181
Master module
Carrier
IM 183-1 board
ASPC2
Intelligent Slave module for
ISA
SPC3
IM 184
Simple Slave module

LSPM2

; 5V DC power supply
; 0 to 70 °C permissible ambient
temperature
; Transmission rate up to 12Mbaud

Berne University of Applied Sciences PROFIBUS International Conference


June 2004 Page 28
School of Engineering and Information Technology

Example of Moduls (HMS)


Application-
Application-
interface

Single
size
54 x 86 mm

Feldbus
connection
LEDs
Berne University of Applied Sciences PROFIBUS International Conference
June 2004 Page 29
School of Engineering and Information Technology

The Hilscher Dual-port Memory


Host Side Dual-port memory CIF/COM side

Memory applicable
process image to fieldbus systems
output data with I/O devices
as opposit to a
messaging system
Size
process image 1 KByte
input data or
7 KByte

send mailbox

receive mailbox Highest 1 KByte


is always
protocol parameter present and has
protocol status
the same
system status structure for all
status/handshakebits fieldbus systems
command/handshake
bits

Berne University of Applied Sciences PROFIBUS International Conference


June 2004 Page 30
School of Engineering and Information Technology

NetX High performance ASIC


Berne University of Applied Sciences PROFIBUS International Conference
June 2004 Page 31
School of Engineering and Information Technology

Development Kit DP & PA - Test Board (SIEMENS)

Berne University of Applied Sciences PROFIBUS International Conference


June 2004 Page 32
School of Engineering and Information Technology

Development Kit DP & PA - Test Board

(3)

(2) PA Link &


CP 5613 OBT PA Coupler
(1)
FO Cable
Berne University of Applied Sciences PROFIBUS International Conference
June 2004 Page 33
School of Engineering and Information Technology

Development Kit VPC3+ - Test Board (PROFIchip)

Berne University of Applied Sciences PROFIBUS International Conference


June 2004 Page 34
School of Engineering and Information Technology

PROFIBUS Test Laboraories (PTL)


z PROFIBUS certification tests in 7 independent PTLs worldwide
z Certification in accordance with general framework defined by PROFIBUS
International ensures quality standard
z Certification ensures interoperability and thus plant availability

Netherlands Germany (3)


USA

Japan

China
Berne University of Applied Sciences PROFIBUS International Conference
June 2004 Page 35
School of Engineering and Information Technology

Certification Procedure

Test Certification rules


device
z Uniform test measures and
test process
Test campaign in
z Comprehensible and
test laboratory documented results

No OK ?
More than 800 certificates
awarded
Yes

Certification through
PROFIBUS
International

You might also like