Profibus DP

Post on 28-Dec-2015

28 views 1 download

Transcript of Profibus DP

PROFIBUS-DP Product Development

Steffen SchleierSteffen SchleierProduct Manager: Product Manager:

SPEED7SPEED7--PLCPLC--Processor, PLC7100/PLC7200 PLC on Chip,Processor, PLC7100/PLC7200 PLC on Chip,Slice I/O Backplane Controller Master/SlaveSlice I/O Backplane Controller Master/SlaveSpeedbus Backplane FPGAsSpeedbus Backplane FPGAs

Steffen.Schleier@profichip.comSteffen.Schleier@profichip.com

AIMEX 2010 PROFIBUS-DP Product Development 3

The Job

The Job:

Bringing your

product(I/O, sensors, drives …)

to

AIMEX 2010 PROFIBUS-DP Product Development 4

Don‘t waste your time with the Profibus Basics!

Your Product

FDL, Target_Rotation_Time,SD1, SAP, tsd_min,idle_time, GSD, …

AIMEX 2010 PROFIBUS-DP Product Development 5

Agenda

OverviewThe Physical InterfaceThe Protocol ASICThe Profibus Software StackGSD FileTest

PROFIBUS-DP Product Development

AIMEX 2010 PROFIBUS-DP Product Development 6

Overview

Transmission Technologies

BasicProfiles

AIMEX 2010 PROFIBUS-DP Product Development 7

The Physical Interface

: These signals are mandatory.

D-Sub9 Connector – Signal Assignment

The signal assignment of the D-Sub9 Connector is defined as follows:

Pin No. Signal Description

1 Shield Shield/functional ground

2 M24 Ground for +24V output voltage

3 B-Line RxD/TxD-P Receive Transmit data - plus

4 CNTR-P Repeater control signal (direction control), RTS signal

5 DGND Digital ground

6 VP Supply voltage (+5V)

7 P24 Output voltage +24V

8 A-Line RxD/TxD-N Receive Transmit data – minus

9 CNTR-N Repeater Control signal (direction control)

the preferred connector type for PROFIBUS-DP/FMS is a 9pin D-Sub Connectorthe female part is located at the device sideother connectors are allowed, if they supply at least the mandatory signals

AIMEX 2010 PROFIBUS-DP Product Development 8

The Physical Interface

The signal assignment of the M12 connector is defined as follows:

Pin No. Signal Description

1 VP Supply voltage (+5V)

2 A-Line RxD/TxD-N Receive Transmit data – minus

3 DGND Digital ground

4 B-Line RxD/TxD-P Receive Transmit data - plus

5 Shield Ground connection

Thread Shield Ground connection

M12 Connector – Signal Assignment

: These signals are mandatory.

AIMEX 2010 PROFIBUS-DP Product Development 9

The Physical Interface

Example: RS485 with 9-pin D-Sub connector

Adapt existing solutions (copy-and-paste) and you are done.

Keep the wires short to avoid additional

capacities!

AIMEX 2010 PROFIBUS-DP Product Development 10

Overview

Transmission Technologies

BasicProfiles

Copy & Paste Schematic

AIMEX 2010 PROFIBUS-DP Product Development 11

Software

Handlingthe

Profibus Protocol

AIMEX 2010 PROFIBUS-DP Product Development 12

The Protocol ASIC

VPC3+CSupporting PROFIBUS DP-VO,DP-V1 and DP-V2 protocol

Parallel 8-Bit microcontroller interface

4 kB communication RAM

5V or 3.3V supply voltagewith 5V tolerant inputs

Low power consumption

PQFP44 package (RoHS)

VPC3+SSupporting PROFIBUS DP-VO,DP-V1 and DP-V2 protocolParallel 8-Bit microcontroller interfaceI2C, SPI interfaceHW-PLL for ISOM mode

4 kB communication RAM3.3V supply voltagewith 5V tolerant inputsUltra low powerTFBGA48 6x8 mm (RoHS)Available Q2/2009

VPCLS2Supporting PROFIBUS DP-V0

32 Bit I/O,8 Bit diagnostic inputs

5V supply voltage

PQFP80 package (RoHS)

AIMEX 2010 PROFIBUS-DP Product Development 13

The Protocol ASIC

Example: VPC3+CLF3 PROFIBUS-DP Slave ASIC

PROFIBUS

ApplicationProcessor

Physical Interface

Input Data

Output Data

Output Data

Input Data PROFIBUSCycle

ApplicationCycle

DATA ADDRESSXCSXRDXWR

XREADYINT

DataExchange.Req

DataExchange.Res

AIMEX 2010 PROFIBUS-DP Product Development 14

VPC3+C

Buffer structure:

D U Diagnosis-Buffer

ND UDin-Buffer

ND UDout-Buffer

Read-Config-Buffer

Set-Slave-Address-Buffer

Config-Buffer

Parameter-Buffer

changed by user

UART

Profibus Part Application Processor

AIMEX 2010 PROFIBUS-DP Product Development 15

DP-V0 /V1 /V2

Mandatory!

Optional

Optional

AIMEX 2010 PROFIBUS-DP Product Development 16

PROFIBUS DPV2

Slave to Slave communication

DxB = Data exchange broadcast

Publisher: sends input data via broadcast message to master and subscriber.

Publisher: sends input data via broadcast message to master and subscriber.

Subscriber: receives publisher data.Subscriber: receives publisher data.

AIMEX 2010 PROFIBUS-DP Product Development 17

PROFIBUS DPV2

Isochronous Mode

AIMEX 2010 PROFIBUS-DP Product Development 18

Overview

Transmission Technologies

BasicProfiles

PROFIBUS-DPProtocol ASIC

Copy & Paste Schematic

AIMEX 2010 PROFIBUS-DP Product Development 19

Software

Application Processor

AIMEX 2010 PROFIBUS-DP Product Development 20

The Processor

Check your processor in use:

Parallel bus interface? highest flexibility

Serial interface? less choices, maybe additional HW required

“Emulate” the ASIC interface? could be quite slow

Supply and IO voltage? maybe level shifter needed

Performance still OK? take account of the additional software

State-of-the-art tool chain? debugging could be cumbersome

AIMEX 2010 PROFIBUS-DP Product Development 21

The Connection: Parallel Multiplexed

AIMEX 2010 PROFIBUS-DP Product Development 22

Connection: Parallel Demultiplexed

AIMEX 2010 PROFIBUS-DP Product Development 23

The Connection: SPI and I2C

VPC3+S only!

AIMEX 2010 PROFIBUS-DP Product Development 24

Software

Softwarestack Options

AIMEX 2010 PROFIBUS-DP Product Development 25

DP-V0 /V1 /V2 Software View

AIMEX 2010 PROFIBUS-DP Product Development 26

The Software

VPC3+C / VPC3+S Software Stack:

dp_if.hdp_if.cdp_isr.cdp_dpl.h

dp_fdl.cdp_msac1.cdp_msac2.c

main.c

dp_user.cdp_debug.c

dp_cfg.hdp_inc.hplatform.h

EASY4711.gsd

ASIC configuration & driver

Processor specific part

Application interface

Batch files: make, …

AIMEX 2010 PROFIBUS-DP Product Development 27

Overview

Transmission Technologies

BasicProfiles

PROFIBUS-DPProtocol ASIC

Profibus SoftwarestackSourcecode

Copy & Paste Schematic

AIMEX 2010 PROFIBUS-DP Product Development 28

GSD File Example

AIMEX 2010 PROFIBUS-DP Product Development 29

Overview

Transmission Technologies

BasicProfiles

PROFIBUS-DPProtocol ASIC

Profibus SoftwarestackSourcecode

Copy & Paste Schematic GSD T

emplat

e

Your Application

AIMEX 2010 PROFIBUS-DP Product Development 30

Test

Test your System

AIMEX 2010 PROFIBUS-DP Product Development 31

How to get started …

The VPC3+C Evaluation Kit:

RS485Interface

Fiber OpticInterface

ProtocolASIC

ProcessorRAM

ISP Flash

Proc

esso

r Int

erfa

ce

Proc

esso

r Por

ts

PRO

FIB

US

I/Os

MMCCard U

SB RS232

AIMEX 2010 PROFIBUS-DP Product Development 32

Some Other (Important) Steps

Joining the Regional Profibus Association (RPA)Requesting an Ident NumberInvestment in test and development tools

Developing a configuration software (optional)

Writing the product manualDeveloping application examples for controllers (popular PLCs)Product certification (EMC, PROFIBUS)

Thanks for your attention!

AIMEX 2010 PROFIBUS-DP Product Development 34

Then your are part of …

AIMEX 2010 PROFIBUS-DP Product Development 35

Growing Profibus Organisation

AIMEX 2010 PROFIBUS-DP Product Development 36

PROFIBUS – global presence

25 Regional PROFIBUS Associations (RPA) worldwide

30 Competence Centers (PCC)

7 Test Labs (PTL) worldwide

Accreditation by PROFIBUS International (PI) assure quality

standard

Consulting, Seminars, Development……..