PLC, HMI, SCADA, INVERTERS, TUTORIALS, INDUSTRIAL AUTOMATION

13:48
Schneider Electric ATV71 on Profibus with Siemens CPU 315-2 PN/DP Configuration with TIA Portal

ATV71 on profibus with TIA portal V11.pdf 11/2012

Tele0956.gsd

TELE09CD.gsd  

GHD Global Help Desk 

The goal of this document is to describe the configuration of ATV71 on Profibus with Siemens CPU 315-2 PN/DP with TIA Portal V11.

Network Topology used for this example 

ATV71 configuration 
Telegram Overview 
The Profibus DPv1 card (VW3A3307S371) for Altivar 61 / 71 drives only supports types 3, 4, 5 and 8 PPO format (Parameter-Process Data-Object) 

PPO cyclic frames contain the periodic variables that are used for 2 types of service: 
• I/O exchanges (PZD);
• Aperiodic exchanges (PKW) for parameter setting, configuration and diagnostics.
PKW aperiodic exchanges are included in the cyclic  frames and do not require special frames. An aperiodic exchange is used to read or write a parameter. The Altivar 61 / 71 PKW service does not conform to Profidrive. 
For PPO type 5 and 8, there are 10 PZD for input and output in the frame, but only 8 in input and 8 in output can be used with ATV71. The 2 last PZD are not used. 


Drive configuration 
In this example, we will configure the PPO type 5. 
The cyclic data by default will be kept.  
NCA1 = 8501 (CMD)  NMA1 = 3201(ETA) 
NCA2 = 8602 (LFRD)  NMA2 = 8604(RFRD) 
 The drive will be configured to be command by PLC via Profibus. 
 Drive command menu 
CHCF = SIM 
FR1 = COM card 
 
Drive Communication scanner menu 

PLC configuration 

Create a new project 

Configure the device 

Add a new device

Select the PLC type

Add the ATV71 Profibus GSD file

Follow the instruction to add the GSD file 
Note:  
For the ATV71 we have 2 type of Profibus card. 
It’s important to use the GSD file corresponding to your Profibus card. 

Profibus DPV0 card (ref : VW3A3307) 

Profibus DPV1 card (ref : VW3A3307S371)

If you don’t use the GSD file in relation with your card reference, the network will not work.

Configure the DP port 
Double click on the DP port 

Configure the interface type to Profibus and a add new subnet 

In network view, add the ATV71 device from catalogue 

In the ATV71 device view, we select the Telegram to be used  
Here PPO type 5 – 4 aperiodic and 10 periodic

We have now the ATV71 and his telegram configured.

Inside the ATV71, define the Subnet and the device address (in our case 1) 

he cyclic exchange have to be configured in the drive (in communication scanner menu) 
 
NCA1 = 8501 (CMD)  NMA1 = 3201(ETA) 
NCA2 = 8602 (LFRD)  NMA2 = 8604(RFRD) 
 
Here we kept the default value, but drive parameter can be added in empty field. 

In the network, view assign the PLC1 as master for the ATV71 Click on “Not assigned” in ATV71 and select the PLC interface 

The ATV71 is now link and the Telegram address Input and output is defined.

The I address and O address for the PPO type 5 are define 

Add OB block to avoid PLC stop in case of rack fault of I/O fault. 

We will add OB82 and OB86

Create PLC tag 
Add a new PLC tag and rename it 

The PPO type 5 input / output began at address 256 

The PKW part will be 256 up to 263 and cyclic exchange (NCAx and NMAx) will be 264 up to 282.

Even if in this table we have a monitoring mode, it’s does not allow monitoring and using the input and output. 

To do monitoring and writing of telegram, we have to use the “Watch and Force” table. 
Create a new table and rename it. 

Inside this table we will add the tag define previously but we special syntaxes for using. 
We add the same tag name but in adding “:p” at the end. 

At this step the configuration is done. We can compile and download the program to the PLC. 
Result after Download and connect:

Monitor and command the ATV71 
When the monitoring is activated 
We can see the ATV71 status word NMA1 = 16#250

tart the Drive 
With PPO type 5, the drive follow the CIA 402, so to start we need to give a speed reference (in NCA2) and send the value, 16#6, 16#7 and then 16#F in the NCA1. 

To send a value, write it and with right click on it, select Modify now. 

Step 1 
I write CMD = 16#6 and LRFD = 16#300

The ATV71 status word change 

Step 2 
I write CMD = 16#7 

The ATV71 status word change

Step 3 
Finally I write CMD = 16#F 

The ATV71 Start. We can monitor the status word and the output speed

Using of PKW to read and write drive parameters 
The following table lists the controller-to-drive parameters in the input PKW area

The following table lists the drive-to-controller parameters in the output PKW area 

Example to read ACC parameters (address 9001) 
In Output PKE we write 9001 (dec) 
In Output R/W we write 1 (for read request) 
 
The result is located in Input PWE2 ---> 30 (for 3.0 sec) 

Example to Write ACC parameters (address 9001) 
 In Output PKE we write 9001 (dec) 
 In Output R/W we write 2 (for write request) 
 In Output PWE2 we write 35 (to write 3.5sec in ACC) 

We can check the result

We have ATV71 cyclic communication OK. The NCAX and NMAX can be used inside a program. 
It’s also possible to manage the PKW in order to read and write other drive parameters. 

Категория: SCHNEIDER ELECTRIC | Просмотров: 71 | Добавил: gt7600 | Теги: ATV71, PROFIBUS, GSD, Schneider Electric, siemens | Рейтинг: 5.0/1
Всего комментариев: 0
avatar