Вы находитесь на странице: 1из 19

Technical reference documentation.

1
Created on 15/04/2009 Version: 1 Created By: Christian Warren Checked: Andy Esworthy Certified by: Andy Esworthy

Technical reference documentation.

Wiring.

Connect the PLC end with a 9 pin D-sub Profibus connector, the inverter end has screw terminals and should be connected as shown below.

2
Created on 15/04/2009 Version: 1 Created By: Christian Warren Checked: Andy Esworthy Certified by: Andy Esworthy

Technical reference documentation.

Setup in GX Configurator DP.


In the configuration software select the correct master and slave combination.

Double click the master and check that the following window is set as shown. The starting I/O number will depend on the cards position in the rack. Click OK when satisfied.

3
Created on 15/04/2009 Version: 1 Created By: Christian Warren Checked: Andy Esworthy Certified by: Andy Esworthy

Technical reference documentation.


Double click on the slave module and set as shown below, the FDL Address will depend on what station number has been set on the slave, these should be the same number.

In the slave parameter settings window click on Select Modules and in the following window select the PPO type required, in this example PPO type 1 is selected, click OK once selection has been made.

4
Created on 15/04/2009 Version: 1 Created By: Christian Warren Checked: Andy Esworthy Certified by: Andy Esworthy

Technical reference documentation. Mapping.


There are 2 methods for mapping; data can be mapped using dedicated instructions or it can be mapped using I/O mapping in GX Configurator DP.

PLC program.
In the following, references will be made to the certain areas of the PLC program, to help find these areas they have been highlighted in the image below.

5
Created on 15/04/2009 Version: 1 Created By: Christian Warren Checked: Andy Esworthy Certified by: Andy Esworthy

Technical reference documentation. PLC program using dedicated instructions.


Click on the body of MAIN_PRG_LD, the following code has been written.

The code above initiates the startup sequence, start the data transfer and transfers data using the dedicated instructions, explained on pages 7 and 8. A simple function block has been created (DP_INV_CONT) to control the inverter, the following program shows the contents of the function block. NB: It is important that either I/O mapping OR Dedicated instructions are selected NOT both.

6
Created on 15/04/2009 Version: 1 Created By: Christian Warren Checked: Andy Esworthy Certified by: Andy Esworthy

Technical reference documentation. Dedicated instructions for data exchange.

7
Created on 15/04/2009 Version: 1 Created By: Christian Warren Checked: Andy Esworthy Certified by: Andy Esworthy

Technical reference documentation.

8
Created on 15/04/2009 Version: 1 Created By: Christian Warren Checked: Andy Esworthy Certified by: Andy Esworthy

Technical reference documentation. PLC settings using I/O mapping.


: - Only used for mapping using I/O mapping in GX Configurator DP

Click Setup/PLC and GX IEC Developer (GID) settings and in the following window select items as shown. Click OK

In the main window right click on the slave module and select I/O mapping.

9
Created on 15/04/2009 Version: 1 Created By: Christian Warren Checked: Andy Esworthy Certified by: Andy Esworthy

Technical reference documentation.

In the I/O Mapping window, select the slave and under Buffer MIT-Address select the head device for receiving data from the slave in the input area and the head device for writing data to the slave in the output area. Click OK once selected.

10
Created on 15/04/2009 Version: 1 Created By: Christian Warren Checked: Andy Esworthy Certified by: Andy Esworthy

Technical reference documentation. PLC program using I/O mapping.


: - Only used for mapping using I/O mapping in GX Configurator DP

The example program shown above is the same as the previous program except this program does not Use the dedicated instruction for reading and writing data as this is configured in the GX Configurator DP software as previously shown. NB: It is important that either I/O mapping OR Dedicated instructions are selected NOT both.

11
Created on 15/04/2009 Version: 1 Created By: Christian Warren Checked: Andy Esworthy Certified by: Andy Esworthy

Technical reference documentation. Contents of function block (DP_INV_CONT).


Click on the Body of DP_INV_CONT to view the contents of the control function block as shown below.

The HEX values shown create a binary bit pattern in the inverter for control in STW (TO_INVERTER[5]) word number 5 of PPO1. The value in the variable FREQ is sent to HSW (TO_INVERTER[6]) word number 6 of PPO1, this is where the set frequency is set in the inverter. For more details of the PPO types see pages 16 and 17.

12
Created on 15/04/2009 Version: 1 Created By: Christian Warren Checked: Andy Esworthy Certified by: Andy Esworthy

Technical reference documentation. Variables.


Click on the Header of MAIN_PRG_LD to view the local variable for this part of the program.

Click on the Header of DP_INV_CONT to view the local variables that have been set in the inverter control function block.

13
Created on 15/04/2009 Version: 1 Created By: Christian Warren Checked: Andy Esworthy Certified by: Andy Esworthy

Technical reference documentation.


Click on Global_Vars to view the global variables for the project, in here it is possible to view the Mitsubishi addresses and type of variable corresponding to the identifiers that have been created.

It is important that ARRAYS are set with the correct range for the PPO type selected.

14
Created on 15/04/2009 Version: 1 Created By: Christian Warren Checked: Andy Esworthy Certified by: Andy Esworthy

Technical reference documentation. Inverter Parameters.


It is important so make sure that the Inverter has been set to NET operation mode, in this example the only parameter that has been changed from default is Pr. 340 which has been set to 1.

15
Created on 15/04/2009 Version: 1 Created By: Christian Warren Checked: Andy Esworthy Certified by: Andy Esworthy

Technical reference documentation. PPO types.

16
Created on 15/04/2009 Version: 1 Created By: Christian Warren Checked: Andy Esworthy Certified by: Andy Esworthy

Technical reference documentation.

It is important that PZD enable is set to 1 in order for any control changes to take effect. The values in the words above are converted from and to an equivalent HEX value in the PLC, as shown in the example program.

17
Created on 15/04/2009 Version: 1 Created By: Christian Warren Checked: Andy Esworthy Certified by: Andy Esworthy

Technical reference documentation. QJ71PB92V I/O Devices.

18
Created on 15/04/2009 Version: 1 Created By: Christian Warren Checked: Andy Esworthy Certified by: Andy Esworthy

Technical reference documentation. QJ71PB92V Buffer memory areas for data exchange.

19
Created on 15/04/2009 Version: 1 Created By: Christian Warren Checked: Andy Esworthy Certified by: Andy Esworthy

Вам также может понравиться