atv31-ats48 profbus dp expander

24
Schneider Canada Services ATV31/ATS48 Profbus DP PXP–3148PB Port Expander Instruction Guide 08/2006 Mississauga, Ontario Canada Contents UMAN\PXP-3148PB0806 REVISION 0 INTRODUCTION 2 1.1 Purpose of this manual 3 1.2 Introduction to PXP-3148PB 3 1.3 PXP-3148PB Specifications 4 HARDWARE 5 2.1 Dimensional details And Mounting Instructions 6 2.2 Communication Port Details 7 2.3 LED Status 9 2.4 Configuration 10 2.4.1 Switch Configuration 10 2.4.2 Communication Settings 10 2.5 Supplied Power 11 GETTING STARTED 13 3.1 Introduction to Profibus 13 3.2 PXP-3148PB Operations 13 3.2.1 Writing configuration properties 13 DIAGNOSTIC 16 4.2 Significance of I001 17 4.3 LED STATUS: 17 PROFIBUS MASTER SETUP 18 5.1 PXP setup with Siemens Profibus Master 19 5.2 Introduction To Profibus 23 5.2.1 Protocol Architecture 23 5.1.2 Device Types 24 5.1.3 PROFIBUS-DP Charactristics 25 5.1.3.1 Bus Access Protocol 25 5.1.3.2 Data Throughput 26 5.1.3.3 Diagnostic Functions 26 5.1.3.4 Protection Mechanism 26 5.1.3.5 Network States 27 5.1.4 Device Data Base Files 27 5.1.5 Profiles 28 Retain for future use.

Upload: natipak

Post on 29-Nov-2014

567 views

Category:

Documents


12 download

TRANSCRIPT

Page 1: ATV31-ATS48 Profbus DP Expander

Schneider Canada Services ATV31/ATS48 Profbus DPPXP–3148PB Port Expander

Instruction Guide 08/2006Mississauga, Ontario Canada

Contents

UMAN\PXP-3148PB0806REVISION 0

INTRODUCTION 21.1 Purpose of this manual 31.2 Introduction to PXP-3148PB 31.3 PXP-3148PB Specifications 4

HARDWARE 52.1 Dimensional details And Mounting Instructions62.2 Communication Port Details72.3 LED Status 92.4 Configuration 102.4.1 Switch Configuration 102.4.2 Communication Settings 102.5 Supplied Power 11

GETTING STARTED 133.1 Introduction to Profibus 133.2 PXP-3148PB Operations 133.2.1 Writing configuration properties 13

DIAGNOSTIC 164.2 Significance of I001 174.3 LED STATUS: 17

PROFIBUS MASTER SETUP 185.1 PXP setup with Siemens Profibus Master 195.2 Introduction To Profibus 235.2.1 Protocol Architecture 235.1.2 Device Types 245.1.3 PROFIBUS-DP Charactristics 255.1.3.1 Bus Access Protocol 255.1.3.2 Data Throughput 265.1.3.3 Diagnostic Functions 265.1.3.4 Protection Mechanism 265.1.3.5 Network States 275.1.4 Device Data Base Files 275.1.5 Profiles 28

Retain for future use.

Page 2: ATV31-ATS48 Profbus DP Expander

UMAN\PXP-3148PB0806REVISION 0 2

Schneider Canada Services ATV31/ATS48 Profbus DPPXP–3148PB Port Expander

Instruction Guide 08/2006Mississauga, Ontario Canada

1.1 Purpose of this manual

The intention of this User Manual is to provide a guide for Safe installation, Configuration and operation of PXP-3148PB.Read this User manual thoroughly before installing and operating PXP-3148PB.This document is based on information available at the time of its publication. While efforts have been made to be accurate,the information in this document may not cover all the details or variations in hardware or software.

1.2 Introduction to PXP-3148PB

PXP3148-PB allows ATV31/ATS48 to communicate on Profibus DP network as Profibus DP Slave. At the same time itallows r the ATV 31/ATS48 remote keypad toco-exist and communicate with ATV31/ATS48.

PXP-3148-PB has three communication ports as follows:1. Inverter Port : RS485 two wire2. Remote Keypad Port : RS485 two wire3. Profibus DP Slave Port : RS485 two wire

INTRODUCTION

Page 3: ATV31-ATS48 Profbus DP Expander

3

UMAN\PXP-3148PB0806REVISION 0

Schneider Canada Services ATV31/ATS48 Profbus DPPXP–3148PB Port Expander

Instruction Guide 08/2006Mississauga, Ontario Canada

1.3 PXP-3148PB Specifications

Power : 24 V DC, 2.5 WLED’s : 4 LED’s for status indicationCommunication Ports : 3 Communication ports with

Inverter Port : 2 Wire RS485Remote keypad port : 2 Wire RS485Profibus DP Slave : 2 Wire RS485

Inverter : Connects t to ATV31/ATS48Remote Keypad : Connects to keypadProfibus DP : Connects to Profibus DP Network

(Isolation: Profibus DP port and Inverter port are isolated. Isolation is 1KV. Power supply and communication ports areisolated. Isolation is 1KV.)

Profibus Baud Rate : 9.6k, 19.2k, 45.45k, 93.75k, 187.5k, 500k, 1.5M, 3M, 6M, 12M Bit/s(Autodetect)

GSD File : Supplied with the unit.GSD File Name : ATVS.GSDI/O data : 100 Word Input, 100 Word Output*Profibus Slave ID : 0 - 126Operating Temperature : 0o to 60oCStorage Temperature : -20o to 80oCHumidity : 10% to 90% (Non condensing)Mounting : DIN rail or back panel mountingDimensions (DIN rail) : 105mm(L) X 40mm(D) X 51mm(W)Weight : 125 gm approx.Certifications : CE with UL certificationImmunity to ESD : Level 3 as per IEC1000-4-2Immunity to Transients : Level 3 as per IEC1000-4-4Immunity to Radiated RF : Level 3 as per IEC1000-4-3Immunity to Conducted RF : Level 3 as per IEC1000-4-6Emissions : EN55011 CISPR A

*Note: Station address 126 is reserved for diagnostic purpose

INTRODUCTION

Page 4: ATV31-ATS48 Profbus DP Expander

HARDWARE

4

UMAN\PXP-3148PB0806REVISION 0

Schneider Canada Services ATV31/ATS48 Profbus DPPXP–3148PB Port Expander

Instruction Guide 08/2006Mississauga, Ontario Canada

2.1 Dimensional details And Mounting Instructions

PXP-3148PB unit can be mounted on a back panel or on a DIN rail or can be left hanging. It comes with a separate DIN railplate when it is packed. User will have to attach the DIN rail plate to the unit if it has to be mounted on a panel or DIN rail. Ifit has to be left hanging, make sure to screw the cables to the DB9 connectors on the Gateway unit. DIN rail plate also hasthe provision to screw the unit to the back panel. Following drawing shows how to attach the DIN rail plate to the unit:

Follow instructions given below:

1. Attach the DIN rail plate to the unit using the clamps on the DIN rail plate.2. Pull out the clip of the plate.3. Put the unit on the DIN rail.4. Push the clip in to secure the unit on the DIN rail.

PXP-3148PB unit is shipped with a separate DIN rail plate which has to be attached to the unit, if needed. User can usethe unit with or without the DIN rail plate. Following sketch shows mounting details of PXP-3148PB with the DIN rail plate.

DIN railclamp

DIN railclip

PXP-3148PB

Slot forclamp

40

Page 5: ATV31-ATS48 Profbus DP Expander

HARDWARE

5

UMAN\PXP-3148PB0806REVISION 0

Schneider Canada Services ATV31/ATS48 Profbus DPPXP–3148PB Port Expander

Instruction Guide 08/2006Mississauga, Ontario Canada

2.2 Communication Port Details

PXP-3148PB has three communication ports Inverter port, remote keypad port and Profibus DP. Inverter port, remotekeypad port and Profibus DP Slave port are compactible to 2 wire RS485 . Pinout of these ports are given as follows:

B (-) Data LineA (+) Data Line

DB9 Female

1

59

6+5V DC

Data GroundRTS

Shield / FunctionalGround

6

845

3

1

Profibus - DP Slave

(TTL Direction control for repeaters)

(Supply Voltage for terminator resistance)

Page 6: ATV31-ATS48 Profbus DP Expander

HARDWARE

6

UMAN\PXP-3148PB0806REVISION 0

Schneider Canada Services ATV31/ATS48 Profbus DPPXP–3148PB Port Expander

Instruction Guide 08/2006Mississauga, Ontario Canada

+5V DC

300 Ohm

220 Ohm

300 Ohm

B - Data Line

A - Data Line

Data Ground

Data Line: The Profibus user group recommends the following color coding for the data signal lines:

A-Data Line = Green B-Data Line = Red

These data signal lines must be connected to the corresponding signal terminals or pins at the master unitand other stations (i.e.A to A, B to B).

RTS: The signal RTS (TTL signal relative to Data Ground) is meant for the direction control of repeaters incase repeaters without self control capability are used.

+5V DC, Data Ground: The signals +5V DC and Data Ground are meant to power an externally mountedbus terminator.

The powering of the 220 © termination resistor ensures a defined idle state potential on the data lines. Toensure proper functioning up to the highest baud rate, each bus segment has to be terminated at both endsof the cable.

Page 7: ATV31-ATS48 Profbus DP Expander

HARDWARE

7

UMAN\PXP-3148PB0806REVISION 0

Schneider Canada Services ATV31/ATS48 Profbus DPPXP–3148PB Port Expander

Instruction Guide 08/2006Mississauga, Ontario Canada

There are 3 Bicolor LEDs for status indication.

Bicolour LEDs status:

LED

OK Green OFF No Firmware

Flashing IBM Download

ON Both side communication OK

Red OFF Configuration Ok

ON Configuration Fault

Inverter Green OFF No data received on Inverter Port

Flashing Receving data on Inverter Port

ON -

Red OFF No error in Inverter attach or while block execution

Flashing Inverter attach error or error while block execution

ON -

Profibus Green OFF No data received on Profibus Port

Flashing Receving data on Profibus Port

ON -

Red OFF Data exchange with Profibus Master

Flashing -

ON No data exchange with Profibus Master

Keypad Green OFF No data received on Keypad Port

Flashing Receving data on Keypad Port

ON -

Red - -

- -

Page 8: ATV31-ATS48 Profbus DP Expander

HARDWARE

8

UMAN\PXP-3148PB0806REVISION 0

Schneider Canada Services ATV31/ATS48 Profbus DPPXP–3148PB Port Expander

Instruction Guide 08/2006Mississauga, Ontario Canada

2.4 Configuration

2.4.1 Switch Configuration

Four switches are present on PXP3148-PB for configuration. The configuration of switches are as follows:

0000 ATV31

0001 ATS48

0010 to 1111 Reserved for futureimplementation

2.4.2 Communication Settings

PXP-3148PB communicates with ATV31/ATS48 with default settings as follows:

ATV31Baud rate = 19.2KParity = EvenData Bits = 8Stop Bit = 1

ATS48Baud rate = 19.2KParity = OddData Bits = 8Stop Bit = 1

Page 9: ATV31-ATS48 Profbus DP Expander

HARDWARE

9

UMAN\PXP-3148PB0806REVISION 0

Schneider Canada Services ATV31/ATS48 Profbus DPPXP–3148PB Port Expander

Instruction Guide 08/2006Mississauga, Ontario Canada

2.5 Supplied Power

The 24 dc required for the PXP-3138PB can be dervived from the associated inverter or through anexternal Telemecanique ABL series power supplied.Figure 1 shows the wiring required for 24Vdc supplied by the ATV31/ATS48. Please refer to theirrespectve manualFigure 2 shows the wiring required if supplied from an external 24 Vdc sources such as the ABL1 or ABL7Telemecanuque power supplies.

Page 10: ATV31-ATS48 Profbus DP Expander

GETTING STARTED

10

UMAN\PXP-3148PB0806REVISION 0

Schneider Canada Services ATV31/ATS48 Profbus DPPXP–3148PB Port Expander

Instruction Guide 08/2006Mississauga, Ontario Canada

3.1 Introduction to Profibus

For more details on Profibus, please refer chapter 5

3.2 PXP-3148PB Operations

PXP3148-PB allows ATV31/ATS48 to communicate on Profibus DP network as Profibus DP Slave. At the same time itallows remote keypad to communicate with ATV31/ATS48. Power required for remote keypad is also available on remotekeypad port,

Upon Power-Up PXP3148-PB does not have the ATV31/ATS48 Modbus station address and also does not have Profibusslave address in order to communicate on Profibus network. So, it starts scanning node connected on controller port. Forthis PXP3148-PB send Modbus read request for Modbus reference 400001 starting from station address 01 up to 125.ATV31/ATS48 connected on controller port responds when it receive query with its own station address.Normally, PXP3148-PB requires less than 15 seconds to discover the node connected on its controller port. Time requireto discover the node is less if Modbus station address is small (e.g. 01,02,03 etc.). Time require to discover the node ismore (maximum 15 seconds) if Modbus station address is big (e.g. 125). Once ATV31/ATS48 is discovered by PXP3148-PB, Modbus station address of ATV31/ATS48 is assigned as profibus slave station address.

Once Profibus station address is acquired, PXP3148-PB checks for configuration properties of ATS48 (If ATV31 isconnected, it directly enters in data exchange mode). If configuration properties are present, these configurationproperties are transferred to ATS48 and then it enters in data exchange mode. For more information on configurationproperties, please refer section (3.2.1).

During data exchange, if communication break occurs due to power to ATV31/ATS48 is removed, communication cablefault etc. Then this error is reported to profibus master (for details see section 4.2)

Both the Profibus master requests and Remote keypad requests are serviced by PXP3148-PB on time-sharing basis.

PX3148-PB has two areas for profibus communication namely, Input area and Output area. Profibus master access thesetwo areas for exchanging data. The term Input and Output are referred with respect to Profibus Master. Input is an inputto Profibus Master and output is an output from Profibus Master.PXP-3148PB fetches data from ATV31/ATS48 and writes this data to Input area. Further, profibus master reads this datafrom input area. Profibus master writes data in Output area and PXP-3148PB transfers this data to ATV31/ATS48.

Size of Input area is 100 words and reference is given to each word for simplicity. For example 1st word of input area isreferred as I000, 2nd word of input area is referred as I001 and so on.Size of output area is 100 words and reference is given to each word for simplicity. For example 1st word of output area isreferred as O000, 2nd word of output area is referred as O001 and so on.

Page 11: ATV31-ATS48 Profbus DP Expander

GETTING STARTED

11

UMAN\PXP-3148PB0806REVISION 0

Schneider Canada Services ATV31/ATS48 Profbus DPPXP–3148PB Port Expander

Instruction Guide 08/2006Mississauga, Ontario Canada

If configuration properties are never written in ATS48, PXP-3148PB waits for configuration properties before actual dataexchange. Once the configuration properties are written in PXP-3148PB, it starts data exchange.

Memory map for ATV31 and ATS48 are given as follows

ATV31:

Designation Speed Controller Description Profibus wordVariables Address

CMDD 8601 DRIVECOM command register O001

LFRD 8602 Online speed reference (RPM) O002

CMI 8504 Internal command register O003

ETAD 8603 Status word I002

FRHD 8505 Signed ramp output I003

RFRD 8604 Motor speed I004

FRH 3203 Frequency reference I005

RFR 3202 Output frequency I006

LCR 3204 Motor current I007

ULN 3207 Supply voltage I008

THR 9630 Motor thermal state I009

THD 3209 Speed controller thermal state I010

LFT 7121 Last fault I011

3.2.1 Writing configuration properties

Configuration properties are application specific and written to ATS48 only once after power on. Configuration propertiesare stored in flash memory of PXP-3148PB. On power up, PXP-3148PB read these configuration properties from flashmemory and transfer to ATS48. Even though ATS48 in a field is replaced by new ATS48 or another ATS48, user need nothave to write configuration properties again as they are already present in internal flash memory of PXP-3148PB. Insuch a cases user have to power cycle PXP-3148PB once.

For writing configuration properties,User should write (0x0000) to O000.Then user should write application specific values in O001 to O016 (as described in parameter table) using ProfibusMaster.Then user should write (0x0001) to O000.

Page 12: ATV31-ATS48 Profbus DP Expander

GETTING STARTED

12

UMAN\PXP-3148PB0806REVISION 0

Schneider Canada Services ATV31/ATS48 Profbus DPPXP–3148PB Port Expander

Instruction Guide 08/2006Mississauga, Ontario Canada

ATS48:

Parameter Modbus Register Description Profibus word

IN 4026 Nominal motor current O001

ILT 4039 Limiting current O002

ACC 4043 Acceleration ramp time O003

TQO 4037 Initial starting torque O004

STY 4029 Stop type O005

DEC 4044 Deceleration ramp time O006

EDC 4038 Freewheel threshold O007

BRC 4041 Braking torque O008

EBA 4042 Braking time O009

THP 4034 Motor thermal protection O010

TLI 4036 Torque limit O011

CLP 4107 Torque control O012

LSC 4027 Stator loss compensation factor O013

4028 Voltage boost O014

4047 Deceleration Gain O015

4056 Line frequency O016

400 CMD word O017

458 Status word I002

4067 Motor power factor I003

4064 Motor thermal state I004

4062 Motor current I005

4068 Operating time I006

4072 Active power I007

4063 Motor torque I008

4200 Last fault I009

4065 Phase rotation direction I010

Configuration Properties Output Word

Input Word

Page 13: ATV31-ATS48 Profbus DP Expander

DIAGNOSTIC

14

UMAN\PXP-3148PB0806REVISION 0

Schneider Canada Services ATV31/ATS48 Profbus DPPXP–3148PB Port Expander

Instruction Guide 08/2006Mississauga, Ontario Canada

State Description

1 Scanning ATV31 / ATS48

2 Configuration / Firmware upgrade

3 Waiting for configuration properties (ATS48)

4 Data Exchange

4.2 Significance of Word I001

The word I001 gives the status of inverter.

Value Description

0x000 ATV31/ATS48 is communicating with PXP-3148PB

0x001 No Communication

4.3 LED STATUS:

At power on, PXP-3148PB starts scanning node that are connected on controller port from stationaddress 1 to 125. OK LED is lit green at this time.If PXP-3148PB doesn’t get response from any of the station, it enters in a configuration (download) mode.The OK led flashes green at this stage. It remains in configuration (download) mode for nearly 15 seconds.This mode is use for firmware upgrade.After the 15 seconds it again starts scanning for the node. This cycle continues until PXP-3148PB gets theresponse from any station. Other LEDs will remain off until the cycle is repeating.After getting response from ATV31/ATS48, PXP-3148PB starts communicating with the it.Inverter port LED flashes green at this stage. Profibus DPV0 LED starts flashing green once it is configure and communicating on the Profibus DP netwrok.After a normal communication , if the cable is removed from Profibus port or Inverter port the correspondingLED turns Red.Remote Keypad LED starts flashing green upon connecting Remote K/Pad to the associated port.

Page 14: ATV31-ATS48 Profbus DP Expander

16

UMAN\PXP-3148PB0806REVISION 0

PROFIBUS

Schneider Canada Services ATV31/ATS48 Profbus DPPXP–3148PB Port Expander

Instruction Guide 08/2006Mississauga, Ontario Canada

5.1 Setup Of PXP-3148PB with Siemens S7 Profibus Master

1. If the slaves including the PXP3148PB is not of Siemens family, you need to install the GSD file for it.H/W configuration – Option – Install New GSDYou can see the GSD file in Additional Field Devices in Hardware Catalog.

2. Next step is to form the Profibus Network.Refer Hardware Catalog for selecting the devices:(a) In Rack 0, slot 2, user should enter CPU (i.e. Siemens Master)(b) Slave module is added in front of Master module.

Page 15: ATV31-ATS48 Profbus DP Expander

17

PROFIBUS

UMAN\PXP-3148PB0806REVISION 0

Schneider Canada Services ATV31/ATS48 Profbus DPPXP–3148PB Port Expander

Instruction Guide 08/2006Mississauga, Ontario Canada

Page 16: ATV31-ATS48 Profbus DP Expander

18

UMAN\PXP-3148PB0806REVISION 0

PROFIBUS

Schneider Canada Services ATV31/ATS48 Profbus DPPXP–3148PB Port Expander

Instruction Guide 08/2006Mississauga, Ontario Canada

Step 3Download the configuration to PLC.

Page 17: ATV31-ATS48 Profbus DP Expander

19

PROFIBUS

UMAN\PXP-3148PB0806REVISION 0

Schneider Canada Services ATV31/ATS48 Profbus DPPXP–3148PB Port Expander

Instruction Guide 08/2006Mississauga, Ontario Canada

4. After downloading is complete, and communication is established, the BF and SF LEDs goes off.

5. You can monitor the variables as PLC – Monitor/Modify variables.

Page 18: ATV31-ATS48 Profbus DP Expander

20

UMAN\PXP-3148PB0806REVISION 0

PROFIBUS

Schneider Canada Services ATV31/ATS48 Profbus DPPXP–3148PB Port Expander

Instruction Guide 08/2006Mississauga, Ontario Canada

PROFIBUS is a vendor-independent, open fieldbus standard for a wide range of applications in manufacturing, processand building automation. Vendor independence and openness are guaranteed by the PROFIBUS standard EN 50170. WithPROFIBUS, devices of different manufacturers can communicate without special interface adjustments.The PROFIBUSfamily consists of three compatible versions:

High speed PROFIBUS-DPDP stands for Decentralised Periphery. It is optimised for high speed and low cost interfacing,especially designed for communication between automation control systems and distributed I/Oat the device level.

Process Automation PROFIBUS-PAPA stands for Process Automation. It permits sensors and actuators to be connected on onecommon bus line even in intrinsically-safe areas. It permits data communication and powersupply over the bus using 2-wire technology according the international standard IEC 1158-2.

Higher level PROFIBUS-FMSFMS stands for Fieldbus Message Specification. This version is the general purpose solution forcommunication tasks at a higher level. Powerful services open up a wide range of applicationsand provide great flexibility. It can also be used for extensive and complex communications tasks.

Uniform bus access PROFIBUS-DP and PROFIBUS-FMS use the same transmission technology and a uniform busprotocol access protocol. Thus, both versions can be operated simultaneously on the same cable.

However, FMS field devices cannot be controlled by DP masters or vice versa.

Note: It is not possible to exchange one of these family members by another familymember. This will cause faulty operation.

The rest of this section only describes PROFIBUS-DP.Protocol architecture.

DP- Profiles

DP- Extentions

DP- Basic Functions

Not Defined

Field Bus Data Link (FDL)

RS-485 / Fiber optics

User Interface Layer(7) Application Layer(6) Presentation Layer(5) Session Layer(4) Transport Layer(3) Network Layer(2) Data Link Layer(1) Physical Layer

5.2 Introduction To Profibus

Page 19: ATV31-ATS48 Profbus DP Expander

21

PROFIBUS

UMAN\PXP-3148PB0806REVISION 0

Schneider Canada Services ATV31/ATS48 Profbus DPPXP–3148PB Port Expander

Instruction Guide 08/2006Mississauga, Ontario Canada

Layer 1, 2 and user PROFIBUS-DP uses layers 1 and 2, and the user interface. Layers 3 to 7 are notinterface defined. This streamlined architecture ensures fast and efficient data transmission. The

application functions which are available to the user, as well as the system and devicebehaviour of the various PROFIBUS-DP device types, are specified in the user interface.

Transmission medium RS-485 transmission technology or fibre optics are available for transmission. RS-485transmission is the most frequently used transmission technology. Its application areaincludes all areas in which high transmission speed and simple inexpensive installation

High-speed, inexpensive are required. Twisted pair shielded copper cable with one conductor pair is used.

Easy installation The RS-485 transmission technology is very easy to handle. Installation of the twistedpair cable does not require expert knowledge. The bus structure permits addition andremoval of stations or step-by-step commissioning of the system without influencing theother stations. Later expansions have no effect on stations which are already in operation. Transmission speeds between 9.6 kbit/s and 12 Mbit/s can be selected. Oneunique transmission speed is selected for all devices on the bus when the system iscommissioned.

Cable length The maximum cable length depends on the transmission speed The specified cablelengths are based on type-A cable. The length can be increased by the use of repeaters.The use of more than 3 repeaters in series is not recommended.

5.1.2 Device Types

PROFIBUS distinguishes between master devices and slave devices.

Master devices Master devices determine the data communication on the bus. A master can sendmessages without an external request, as long as it holds the bus access right (thetoken). Masters are also called active stations in the PROFIBUS standard.

DPM1, DPM2 There are two types of master devices: DP master class1 (DPM1) and DP master class2(DPM2). A DPM1 is a central controller which exchanges information with thedecentralised stations (i.e. DP slaves) within a specified message cycle. DPM2 devicesare programmers, configuration devices or operator panels. They are used during commissioning, for configuration of the DP system, or for operation and monitoring purposes.

Slave devices Slave devices are peripheral devices. Typical slave devices include input/output devices,valves, drives, and measuring transmitters. They do not have bus access rights and theycan only acknowledge received messages or send messages to the master whenrequested to do so. Slaves are also called passive stations.

Page 20: ATV31-ATS48 Profbus DP Expander

22

UMAN\PXP-3148PB0806REVISION 0

PROFIBUS

Schneider Canada Services ATV31/ATS48 Profbus DPPXP–3148PB Port Expander

Instruction Guide 08/2006Mississauga, Ontario Canada

5.1.3 PROFIBUS-DP Charactristics

5.1.3.1 Bus Access Protocol

Layer 2 The bus access protocol is implemented by layer 2. This protocol also includes datasecurity and the handling of the transmission protocols and messages.

Medium Access Control The Medium Access Control (MAC) specifies the procedures which determinewhen a station is permitted to transmit data. A token passing procedure is used tohandle the bus access between master devices, and a polling procedure is used tohandle the communication between a master device and its assigned slave device(s).

Token passing The token passing procedure guarantees that the bus access right (the token) isassigned to each master within a precisely defined time frame. The token message, aspecial message for passing access rights from one master to the next master, mustbe passed around the logical token ring - once to each master - within a specified targetrotation time. Each master executes this procedure automatically. A user can onlychange the target rotation time, but is not recommended.

Polling procedure The polling or master-slave procedure permits the master, which currently owns thetoken, to access its assigned slaves. The picture below shows a possible configurationThe configuration shows three active stations (masters) and six passive stations(slaves).

The three masters form a logical token ring. When an active station receives the tokenmessage, it can perform its master role for a certain period of time. During this time itcan communicate with all assigned slave stations in a master- slave communicationrelationship, and a DPM2 master can take the initiative to communicate with DPM1master stations in a master-master communication relationship.

Multi-peer communication In addition to logical peer-to-peer data transmission, PROFIBUS-DP provides multi-peercommunication (broadcast and multicast).Broadcast communication : An active station sends an unacknowledged message to

all other stations (masters and slaves).Multicast communication : An active station sends an unacknowledged message to a

predetermined group of stations (masters and slaves).

Page 21: ATV31-ATS48 Profbus DP Expander

23

PROFIBUS

UMAN\PXP-3148PB0806REVISION 0

Schneider Canada Services ATV31/ATS48 Profbus DPPXP–3148PB Port Expander

Instruction Guide 08/2006Mississauga, Ontario Canada

5.1.3.2 Data Throughput

Transmission time At 12 Mbit/s, PROFIBUS-DP requires only about 1 ms for the transmission of512 bits of input data and 512 bits of output data distributed over 32 stations.The figure below shows the typical PROFIBUS-DP transmission time dependingon the number of stations and the transmission speed. The data throughputwill decrease when more than one master is used.

5.1.3.3 Diagnostic Functions

Extensive diagnostics The extensive diagnostic functions of PROFIBUS-DP enable fast location of faultsThe diagnostic messages are transmitted over the bus and collected at themaster. These messages are divided into three levels:

Device related diagnostics 1. Device related diagnosticsThese messages concern the general operational status of the whole device(e.g. overtemperature or low voltage).

Module related 2. Module related diagnosticsdiagnostics These messages indicate that a fault is present in a specific I/O range (e.g. an

8-bit output module) of a station.

Channel related 3. Channel related diagnosticsThese messages indicate an error at an individual input or output (e.g. shortcircuit on output 5).

5.1.3.4 Protection Mechanism

Time monitoring PROFIBUS-DP provides effective protection functions against parameterisationerrors or failure of the transmission equipment. Time monitoring is providedat the DP master and at the DP slaves. The monitoring interval is specifiedduring the configuration.

At the master 1. Protection mechanism at the master.The DPM1 master monitors data transmission of its active slaves with theData_Control_Timer. A separate control timer is used for each slave. This timerexpires when correct data transmission does not occur within the monitoringinterval.If the master’s Auto_Clear mode is enabled, the DPM1 exits the ’Operate’state, switches the outputs of all assigned slaves to fail-safe status, andchanges to its ’Clear’ state.

Page 22: ATV31-ATS48 Profbus DP Expander

24

UMAN\PXP-3148PB0806REVISION 0

PROFIBUS

Schneider Canada Services ATV31/ATS48 Profbus DPPXP–3148PB Port Expander

Instruction Guide 08/2006Mississauga, Ontario Canada

At the slave 1. Protection mechanisms at the slave.The slave uses the watchdog control to detect failures of the master or the transmissionline. If no data communication with the master occurs within the watchdog controlinterval, the slave automatically switches its outputs to the fail-safe status. Thismechanism can be enabled or disabled for each individual slave.Also, access protection is available for the inputs and outputs of the DP slaves operating in multi-master systems. This ensures that direct access can only be performed bythe authorised master. For other masters, the slaves offer an image of their inputs andoutputs, which can be read by any master, even without access rights.

5.1.3.5 Network States

PROFIBUS-DP distinguishes four different network states.

Off-line 1. Off-lineCommunication between all DP participants is stopped.

Stop 2. StopCommunication between DPM1 and DP slaves is stopped. Only communicationbetween DPM1 and DPM2 is possible.

Clear 3. ClearDPM1 master attempts to set parameters, check the configuration, and subsequentlyperform data exchange with its associated DP-slaves. The data exchange comprisesreading the inputs of the DP-slaves and writing zero’s to the outputs of the DP-slaves.

Operate 4. OperateDPM1 master exchanges data with its assigned slaves, inputs are read and outputs arewritten. Beside this, the DPM1 cyclically sends its local status to all assigned DPslaves (with a multicast message) at a configurable time interval.

Auto_Clear When an error occurs during the data transfer phase of the DPM1, the ‘Auto_Clear’configuration setting determines the subsequent actions. If this parameter is set tofalse, the DPM1 remains in the ‘Operate’ state. If set to true, the DPM1 switches theoutputs of all assigned DP slaves to the fail-safe state and the network state changes tothe ‘Clear’ state.

Page 23: ATV31-ATS48 Profbus DP Expander

25

PROFIBUS

UMAN\PXP-3148PB0806REVISION 0

Schneider Canada Services ATV31/ATS48 Profbus DPPXP–3148PB Port Expander

Instruction Guide 08/2006Mississauga, Ontario Canada

5.1.4 Device Data Base Files

GSD-file To achieve straightforward configuration of a PROFIBUS-DP network, the characteristicfeatures of a device are specified in a file. This file is called a GSD-file(Gerätestammdaten file). The language of the GSD file is expressed with the last letterfrom the extension, *.GS?:

Default : = GSDEnglish : = GSEDeutsch : = GSGItalian : = GSIPortugees : = GSPSpanish : = GSS

The GSD files are prepared individually by the vendor for each type of device, accordingto a fixed format. Some parameters are mandatory, some have a default value andsome are optional. The device data base file is divided into three parts:

General section 1. General specificationsThis section contains the vendor name, the device name, hardware- and softwarerelease versions, station type and identification number, protocol specificationand supported baud rates.

DP-master section 2. DP master-related specificationsThis section contains all parameters which only apply to DP master devices(e.g. maximum memory size for the master parameter set, maximum numberof entries in the list of active stations, or the maximum number of slaves themaster can handle).

DP-slave section 3. DP slave-related specificationsThis section contains all specification related to slaves (e.g. minimum timebetween two slave poll cycles, specification of the inputs and outputs, andconsistency of the I/O data).

Configurator The device data base file of each device is loaded in the configurator anddownloaded to the master device. Refer to the Operation Manual of thePROFIBUS-DP Master Unit for usage of the GSD file in the master’sconfiguration software.GSD files are usually supplied with each unit. Alternatively, GSD files can bedownloaded from the Internet, either from the manufacturer’s site, or from theGSD library of the PROFIBUS Nutzerorganisation at http://www.profibus.com.

5.1.5 Profiles

Exchanging devices To enable the exchange of devices from different vendors, the user data hasto have the same format. The PROFIBUS-DP protocol does not define theformat of user data, it is only responsible for the transmission of this data. Theformat of user data may be defined in so called profiles. Profiles can reduceengineering costs since the meaning of application-related parameters isspecified precisely. Profiles have been defined for specific areas like drivetechnology, encoders, and for sensors / actuators.

Page 24: ATV31-ATS48 Profbus DP Expander

Schneider Canada Services ATV31/ATS48 Profbus DPPXP–3148PB Port Expander

Instruction Guide 08/2006Mississauga, Ontario Canada

Electrical equipment should be installed, operated, serviced, andmaintained only by qualified personnel. No responsibility is assumed bySchneider Electric for anyconsequences arising out of the use of thismaterial.

© 2006 Schneider Electric All Rights Reserved

6675 Rexwood RoadMississauga, OntarioL4V 1V1 CanadaTel.: (905) 678-7000Fax: (905) 678-8583

Head Office / Siège social

19 Waterman AvenueToronto, OntarioM4B 1Y2 Canadawww.schneider-electric.ca