0003 Profibus Setup Q Series A7NP

Embed Size (px)

Citation preview

  • 7/29/2019 0003 Profibus Setup Q Series A7NP

    1/19

    Technical reference documentation.

    Created on 15/04/2009

    Version: 1

    Created By: Christian Warren

    Checked: Andy Esworthy

    Certified by: Andy Esworthy

    1

  • 7/29/2019 0003 Profibus Setup Q Series A7NP

    2/19

    Technical reference documentation.

    Created on 15/04/2009

    Version: 1

    Created By: Christian Warren

    Checked: Andy Esworthy

    Certified by: Andy Esworthy

    2

    Wiring.

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

  • 7/29/2019 0003 Profibus Setup Q Series A7NP

    3/19

    Technical reference documentation.

    Created on 15/04/2009

    Version: 1

    Created By: Christian Warren

    Checked: Andy Esworthy

    Certified by: Andy Esworthy

    3

    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 willdepend on the cards position in the rack. Click OK when satisfied.

  • 7/29/2019 0003 Profibus Setup Q Series A7NP

    4/19

    Technical reference documentation.

    Created on 15/04/2009

    Version: 1

    Created By: Christian Warren

    Checked: Andy Esworthy

    Certified by: Andy Esworthy

    4

    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.

  • 7/29/2019 0003 Profibus Setup Q Series A7NP

    5/19

    Technical reference documentation.

    Created on 15/04/2009

    Version: 1

    Created By: Christian Warren

    Checked: Andy Esworthy

    Certified by: Andy Esworthy

    5

    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 theyhave been highlighted in the image below.

  • 7/29/2019 0003 Profibus Setup Q Series A7NP

    6/19

    Technical reference documentation.

    Created on 15/04/2009

    Version: 1

    Created By: Christian Warren

    Checked: Andy Esworthy

    Certified by: Andy Esworthy

    6

    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 programshows the contents of the function block.

    NB: It is important that either I/O mapping OR Dedicated instructions are selected NOT both.

  • 7/29/2019 0003 Profibus Setup Q Series A7NP

    7/19

    Technical reference documentation.

    Created on 15/04/2009

    Version: 1

    Created By: Christian Warren

    Checked: Andy Esworthy

    Certified by: Andy Esworthy

    7

    Dedicated instructions for data exchange.

  • 7/29/2019 0003 Profibus Setup Q Series A7NP

    8/19

    Technical reference documentation.

    Created on 15/04/2009

    Version: 1

    Created By: Christian Warren

    Checked: Andy Esworthy

    Certified by: Andy Esworthy

    8

  • 7/29/2019 0003 Profibus Setup Q Series A7NP

    9/19

    Technical reference documentation.

    Created on 15/04/2009

    Version: 1

    Created By: Christian Warren

    Checked: Andy Esworthy

    Certified by: Andy Esworthy

    9

    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.

  • 7/29/2019 0003 Profibus Setup Q Series A7NP

    10/19

    Technical reference documentation.

    Created on 15/04/2009

    Version: 1

    Created By: Christian Warren

    Checked: Andy Esworthy

    Certified by: Andy Esworthy

    10

    In the I/O Mapping window, select the slave and under Buffer MIT-Address select the head device forreceiving 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.

  • 7/29/2019 0003 Profibus Setup Q Series A7NP

    11/19

    Technical reference documentation.

    Created on 15/04/2009

    Version: 1

    Created By: Christian Warren

    Checked: Andy Esworthy

    Certified by: Andy Esworthy

    11

    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 theGX Configurator DP software as previously shown.

    NB: It is important that either I/O mapping OR Dedicated instructions are selected NOT both.

  • 7/29/2019 0003 Profibus Setup Q Series A7NP

    12/19

    Technical reference documentation.

    Created on 15/04/2009

    Version: 1

    Created By: Christian Warren

    Checked: Andy Esworthy

    Certified by: Andy Esworthy

    12

    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.

  • 7/29/2019 0003 Profibus Setup Q Series A7NP

    13/19

    Technical reference documentation.

    Created on 15/04/2009

    Version: 1

    Created By: Christian Warren

    Checked: Andy Esworthy

    Certified by: Andy Esworthy

    13

    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 controlfunction block.

  • 7/29/2019 0003 Profibus Setup Q Series A7NP

    14/19

    Technical reference documentation.

    Created on 15/04/2009

    Version: 1

    Created By: Christian Warren

    Checked: Andy Esworthy

    Certified by: Andy Esworthy

    14

    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.

  • 7/29/2019 0003 Profibus Setup Q Series A7NP

    15/19

    Technical reference documentation.

    Created on 15/04/2009

    Version: 1

    Created By: Christian Warren

    Checked: Andy Esworthy

    Certified by: Andy Esworthy

    15

    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.

  • 7/29/2019 0003 Profibus Setup Q Series A7NP

    16/19

    Technical reference documentation.

    Created on 15/04/2009

    Version: 1

    Created By: Christian Warren

    Checked: Andy Esworthy

    Certified by: Andy Esworthy

    16

    PPO types.

  • 7/29/2019 0003 Profibus Setup Q Series A7NP

    17/19

    Technical reference documentation.

    Created on 15/04/2009

    Version: 1

    Created By: Christian Warren

    Checked: Andy Esworthy

    Certified by: Andy Esworthy

    17

    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.

  • 7/29/2019 0003 Profibus Setup Q Series A7NP

    18/19

    Technical reference documentation.

    Created on 15/04/2009

    Version: 1

    Created By: Christian Warren

    Checked: Andy Esworthy

    Certified by: Andy Esworthy

    18

    QJ71PB92V I/O Devices.

  • 7/29/2019 0003 Profibus Setup Q Series A7NP

    19/19

    Technical reference documentation.

    Created on 15/04/2009

    Version: 1

    Created By: Christian Warren

    Checked: Andy Esworthy

    Certified by: Andy Esworthy

    19

    QJ71PB92V Buffer memory areas for data exchange.