Profibus DP

35
PROFIBUS-DP Product Development Steffen Schleier Steffen Schleier Product Manager: Product Manager: SPEED7 SPEED7 - - PLC PLC - - Processor, PLC7100/PLC7200 PLC on Chip, Processor, PLC7100/PLC7200 PLC on Chip, Slice I/O Backplane Controller Master/Slave Slice I/O Backplane Controller Master/Slave Speedbus Backplane FPGAs Speedbus Backplane FPGAs [email protected] [email protected]

Transcript of Profibus DP

Page 1: 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

[email protected]@profichip.com

Page 2: Profibus DP

AIMEX 2010 PROFIBUS-DP Product Development 3

The Job

The Job:

Bringing your

product(I/O, sensors, drives …)

to

Page 3: Profibus DP

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, …

Page 4: Profibus DP

AIMEX 2010 PROFIBUS-DP Product Development 5

Agenda

OverviewThe Physical InterfaceThe Protocol ASICThe Profibus Software StackGSD FileTest

PROFIBUS-DP Product Development

Page 5: Profibus DP

AIMEX 2010 PROFIBUS-DP Product Development 6

Overview

Transmission Technologies

BasicProfiles

Page 6: Profibus DP

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

Page 7: Profibus DP

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.

Page 8: Profibus DP

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!

Page 9: Profibus DP

AIMEX 2010 PROFIBUS-DP Product Development 10

Overview

Transmission Technologies

BasicProfiles

Copy & Paste Schematic

Page 10: Profibus DP

AIMEX 2010 PROFIBUS-DP Product Development 11

Software

Handlingthe

Profibus Protocol

Page 11: Profibus DP

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)

Page 12: Profibus DP

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

Page 13: Profibus DP

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

Page 14: Profibus DP

AIMEX 2010 PROFIBUS-DP Product Development 15

DP-V0 /V1 /V2

Mandatory!

Optional

Optional

Page 15: Profibus DP

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.

Page 16: Profibus DP

AIMEX 2010 PROFIBUS-DP Product Development 17

PROFIBUS DPV2

Isochronous Mode

Page 17: Profibus DP

AIMEX 2010 PROFIBUS-DP Product Development 18

Overview

Transmission Technologies

BasicProfiles

PROFIBUS-DPProtocol ASIC

Copy & Paste Schematic

Page 18: Profibus DP

AIMEX 2010 PROFIBUS-DP Product Development 19

Software

Application Processor

Page 19: Profibus DP

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

Page 20: Profibus DP

AIMEX 2010 PROFIBUS-DP Product Development 21

The Connection: Parallel Multiplexed

Page 21: Profibus DP

AIMEX 2010 PROFIBUS-DP Product Development 22

Connection: Parallel Demultiplexed

Page 22: Profibus DP

AIMEX 2010 PROFIBUS-DP Product Development 23

The Connection: SPI and I2C

VPC3+S only!

Page 23: Profibus DP

AIMEX 2010 PROFIBUS-DP Product Development 24

Software

Softwarestack Options

Page 24: Profibus DP

AIMEX 2010 PROFIBUS-DP Product Development 25

DP-V0 /V1 /V2 Software View

Page 25: Profibus DP

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, …

Page 26: Profibus DP

AIMEX 2010 PROFIBUS-DP Product Development 27

Overview

Transmission Technologies

BasicProfiles

PROFIBUS-DPProtocol ASIC

Profibus SoftwarestackSourcecode

Copy & Paste Schematic

Page 27: Profibus DP

AIMEX 2010 PROFIBUS-DP Product Development 28

GSD File Example

Page 28: Profibus DP

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

Page 29: Profibus DP

AIMEX 2010 PROFIBUS-DP Product Development 30

Test

Test your System

Page 30: Profibus DP

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

Page 31: Profibus DP

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)

Page 32: Profibus DP

Thanks for your attention!

Page 33: Profibus DP

AIMEX 2010 PROFIBUS-DP Product Development 34

Then your are part of …

Page 34: Profibus DP

AIMEX 2010 PROFIBUS-DP Product Development 35

Growing Profibus Organisation

Page 35: Profibus DP

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……..