39
AUTI422 PLANTSTRUXURE FIELD TO ENTERPRISE LAB EXERCISE Integrated Device configuration and control EtherNet IP and FDT/DTM Technology Rev V2.1

PLANTSTRUXURE Integrated Device ENTERPRISE configuration … · 2016. 3. 17. · Configure BMX NOC 0401 module In the PLC Configuration add the BMX NOC 0401 Ethernet communication

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

  • AUTI422 PLANTSTRUXURE FIELD TO ENTERPRISE LAB EXERCISE

    Integrated Device configuration and control EtherNet IP and FDT/DTM Technology

    Rev V2.1

  • Important User Information Although reasonable care has been taken to provide accurate and authoritative information in this document, no responsibility is assumed by Schneider Electric for any consequences arising out of its use. Competent professional advice or other expert assistance should be obtained with respect to specific applications. Reproduction of the contents of this copyrighted publication, in whole or in part, without written permission of Schneider Electric is prohibited. Schneider Electric wishes to maintain the highest level of quality in instruction on its products. Therefore, Schneider Electric does not authorize the use of this material by any other person or organization, or for any other purpose, unless approved in writing by Schneider Electric headquarters.

    SCHNEIDER ELECTRIC PO BOX 27446 RALEIGH, NC 27611-7446

  • ABSTRACT Schneider Electric has been on a path to migrate today’s automation architectures, to a full Ethernet architecture supporting both protocol Modbus TCP and EtherNet IP, as well as, being open to the most important of the field buses standards. What is the best approach to manage all the devices among these popular networks and field buses in the most transparent way? FDT / DTM will help us to provide a good scalable solution to our users. What is provided by FDT DTM? What do we offer to our users to allow them to leverage the benefits of this technology? This presentation will endeavour to answer to these questions. AUDIENCE This course is primarily designed for Schneider Electric – Application Design Engineers (ADE), System/Solution Architecture Engineer (SAE), and distributor Automation Sales Engineers, to understand what FDT DTM technology is, and how this technology will support our PlantStruxure architectures. COURSE OBJECTIVES After this course participants know the vocabulary about FDT DTM, as Com DTM, Gateway DTM, Master DTM, Device DTM, generic DTM and DTM launcher, what is an FDT container, FDT DTM topology, and how to use DTM with a simple example based on the Unity Pro V6.0 and Advantys DTM. The examples proves the FDT DTM benefit, by providing an easy access to the Advantys island configuration, and the automatic data creation within Unity Pro with accurate information.

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 4 of 4 Rev 2.1

    Table of Contents

    M340 Basic Hardware Configuration ............................................................................... 5

    Update DTM catalog ............................................................................................................. 8

    Configure BMX NOC 0401 module .................................................................................... 10

    EtherNet IP network Configuration ................................................................................... 16

    Symbolize data from generic DTM ..................................................................................... 24

    Defining the I/O size. ........................................................................................................... 25

    Download the applications. .................................................................................................. 33

    Test the application. ............................................................................................................. 34

    Monitor the health of the device. ......................................................................................... 35

    Configure Alias for programming....................................................................................... 35

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 5 of 5 Rev 2.1

    M340 Basic Hardware Configuration Lab Objective: The student will create a new Unity Project that will identify and configure the provided M340 PLC hardware. This base configuration must be completed to enable the remainder of the labs in this session. Open up Unity Pro software and create a new project file. File >> New…

    Select the BMX P342030 M340 CPU Configuration for the new project.

    The Unity Pro Project Browser should now be displayed with a blank workspace. Notice that the project title bar has .

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 6 of 6 Rev 2.1

    -Save the newly created project in the C:/Class directory. Do this from the top windows toolbar menu File >> Save A s. Name the project file as File name: EthernetIP_STB_EDS Save as Type: Unity Pro Files (*.STU) Display the PLC bus from the Project Browser by double clicking on 0 : PLC bus listed under the Configuration sub-directory.

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 7 of 7 Rev 2.1

    Change the Power Supply to match your lab station. First delete the existing default CPS 2000 and the replace it with the CPS 3500. To do this, Right-click on the CPS 2000 then Delete Module. Right-Click on the first empty slot then select New Device.

    Select the correct rack size. Click on node in front of rack >> Replace Rack…

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 8 of 8 Rev 2.1

    Skip over the NOC 0401 Ethernet module for now and configure the discrete and analog modules using the same procedure as above. Your PLC bus should now look like this.

    Update DTM catalog

    Before configuring the BMX NOC 0401 modules, check that FDT DTM hardware is updated. To do this you will need to open the hardware catalog: Tools >> H ardware Catalog

    FYI: The Hardware Catalog will launch and be docked on the left portion of your screen. To improve visibility, you can resize the viewing pane or Right Click the title bar to Dock the pane elsewhere on your screen.

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 9 of 9 Rev 2.1

    You Hardware Catalog should now appear something like this. Select the DTM catalog tab below.

    The display field may come up blank or contain a long list of available DTMs. To be certain that all DTMs within your PC have been identified and catalogued into the new Unity project you will need to select the External Update Tool to scan through the PC. This will launch an FDT/DTM Catalog dialog box, select Update to start the query. This may take a few minutes to update.

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 10 of 10 Rev 2.1

    At the end of the process scroll through the many DTMs found in the search. Now Close the FDT/DTM Catalog dialog box and click on Reload catalog in the DTM catalog tab.

    ����Note: This is an important step in the process. In order for Unity to add the newly found DTMs to your Unity Project you MUST complete this final Reload catalog step!

    Configure BMX NOC 0401 module

    In the PLC Configuration add the BMX NOC 0401 Ethernet communication module which supports EtherNet IP protocol:

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 11 of 11 Rev 2.1

    When adding a module, the DTM is automatically identified and linked to that module.

    ����Note: This is the only way to create a link between DTM and NOC module Never configure the NOC DTM directly from the DTM browser. There is no way to link the DTM to the NOC modules afterward. The DTM Alias name: is set by default as shown in the following screen.

    You can explore the other properties tags i.e. Device information, DTM information, and Protocol information to see some of the data associated with the DTM.

    Close the Hardware Catalog.

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 12 of 12 Rev 2.1

    Double-click the NOC0401 Ethernet IP module to launch the configuration editor.

    Select Channel 0 sub-directory of BMX NOC 0401 to enter the configuration table data. The table default is shown below.

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 13 of 13 Rev 2.1

    Change the configuration Inputs and Outputs for the following %MW index: values.

    Inputs %MW index: starting address is set to 200 and Max size to 50

    Outputs %MW index: starting address is set to 250 and Max size to 50

    On M340 Start address must be set on even word (due to the 32 bits alignment) Note: When changes are made to the Inputs/Outputs table the Update application button becomes grayed out and is no longer available to select.

    Validate the new configuration by clicking on the ‘check mark’ on the top toolbar:

    Once the changes have been validated the Update application button once again available to select. Click on Update application button. This will create the Input and output structure that will manage the slave connections.

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 14 of 14 Rev 2.1

    Go to the Project Browser and note that there are some new Derived Data Types associated with the NOC module.

    Now double-click on the Variables & FB instances. Expand the new variables to display the entire structure and sub-components.

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 15 of 15 Rev 2.1

    Input structure M_NOC0401_IN.HEALTH_BITS_IN[0] is an Array of [0..31] OF BYTES which displays the health bit of each slave (max 256 = 8 bits by 32 bytes).

    Output structure M_NOC0401OUT.HEALTH_BITS_OUT[0] is an Array of [0..31] OF BYTES which allows to control the connection of each slave on or off.

    Close the Data Editor and the NOC configuration window.

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 16 of 16 Rev 2.1

    EtherNet IP network Configuration After module creation open the DTM browser. Tools >> DTM Browser

    A new node M_NOC0401 is displayed under the root node Host PC. A default address is given () Open the Ethernet configuration (double click or contextual menu)

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 17 of 17 Rev 2.1

    The M_NOC0401 - fdtConfiguration screen allows configuration of the following: Channel Properties Source Address: Port of the PC which will be used for connection to the EtherNet IP network. Change it to () depending on the lab station you have been assigned. Ask your instructor if you are not sure.

    EtherNet/IP Network Detection: Range of the addresses to scan during a field discovery

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 18 of 18 Rev 2.1

    Modbus network detection: Range of the addresses to scan during a field discovery

    Channel Properties >> Switch configuration M340 module has an integrated 4 ports switch here you can enable or disable the ports, configure the baud rate for each port and the quality of service (QoS)

    TCP/IP module configuration Enter the Ethernet IP address of the NOC 0401 module: () depending on the lab station you have been assigned. Ask your instructor if you are not sure. 11>)

    We will use the Static mode but BOOTP, Flash memory and DHCP can be used.

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 19 of 19 Rev 2.1

    Other services like SNMP (Simple Network Management Protocol) and QoS (Quality of Service) can be configured here.

    EtherNet/IP Local slaves Local slave nodes allow using the module as an I/O adapter. It can be then, accessed by other EtherNet/IP devices. External parameters from the Master would be required to complete this setup. Device list Next we are going to create our STB island in the DTM Browser to populate a first device in the list. Select OK and close the M_NOC0401 – ftdConfiguration screen.

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 20 of 20 Rev 2.1

    Look in your DTM Browser window and you now see that the Host PC has just the NOC0401 module with the new IP address assigned.

    Right click the M_NOC0401 node in the DTM Browser and scroll down to find the STBNIC2212(fromEDS) DTM from the contextual Add menu:

    Click Add DTM

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 21 of 21 Rev 2.1

    Select OK to validate the selection with the default Alias name: STBNIC2212_from_EDS aAnd generate the modification. The DTM Browser should reflectreflex this change.

    Double-click on the M_NOC0401 module to manage the parameters of the newly created IP slave. This will open the M_NOC0401 – ftdConfiguration Editor. Scroll down to view the Device List:

    Note that the default EIP address is )

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 22 of 22 Rev 2.1

    Select slave [003] STBNIC2212_from_EDS and the in the workspace area open the Address Setting tab and make the following changes:

    Select Apply or OK to validate the changes. The new slave 3 has been updated in the Address Server. To verify scroll up and click the Address Server under Services to see that a new device has been created.

    Close the M_NOC0401 – ftdConfiguration Editor.

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 23 of 23 Rev 2.1

    Return to the DTM Browser and right-click on the EtherNet IP STBNIC2212 slave and Open .

    Verify that the STBNIC2212_from_EDS is set up to Read Input / Write Output Data . If not, then remove connection and then Add connection with this is setting.

    Double-click Read Input / Write Output Data to view the Group/Parameters in the General tab . Change the Ethernet IP parameters for this slave to accommodate the demo STB island. Double-click the fields below and change the Input size: 24 words, Output size: 7 words. The default RPI is currently set to 12 msec, however we do not require such a rapid RPI – (Request Packet Interval) so change it to something more moderate: 100 msec. Select OK to validate the changes. Then Rebuild All Project under the Build menu.

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 24 of 24 Rev 2.1

    Examine the Project Browser and see that within the Derived Data Types Unity has created two new variable type for the STB island.

    Symbolize data from generic DTM

    Open the M_NOC0401 DTM.

    Select the STB node in the Device list :

    In the properties tab modify Items Management / Import mode to Manual . You will probably need to scroll down the Properties area to find this select near the bottom of the window.

    Select OK. This will allow us to modify the IO symbols

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 25 of 25 Rev 2.1

    Defining the I/O size. Open the Advantys Configuration Software from the Windows Start menu.

    Create the Advantys configuration corresponding to the simulator. Your instructor can help you

    to do this if needed.

    Click the Island menu, I/O Image Overview .

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 26 of 26 Rev 2.1

    The first tab Fieldbus Image displays the total length of the data exchanged on the bus. Browse both Input Data and Output Data until reaching the bottom.

    Observe the total number of words each.

    In this example: there is a total of 24 words bytes In and 7 bytes words Out.

    Be careful, calculating the size in bytes is not only multiplying the number of words by two. Verify that the last word utilizes both the lower and upper byte. If not, then the actual size requirement must be adjusted. For example, in this configuration: (see the I/O Image Overview chart shown above) The total number of Fieldbus Image input words is 12. The total number of Fieldbus Image outputs words is 4. But the last word is actually only one byte (no data transmitted on the MSB). So the total number of Output data bytes transmitted is: 4 x 2 – 1 = 7. Actual I/O points associated on the STB Island can be identified when they are selected. The first red push button on our demo unit is wired to the STBDDI3230 first input.

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 27 of 27 Rev 2.1

    This input/output data mapping chart represents the Advantys demo unit you are using for this lab.

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 28 of 28 Rev 2.1

    You can use the chart to determine how to symbolize the components of the island. Go back to Unity Pro DTM Browser screen

    Select Items of the STB node from the Device list

    From the Input (bits) tab select the first Offset/Device line select Offset/Connection 2, Position in Byte 0. This specifically assigns Byte 2, Bit 0 which is Input 1 on the DDI3230 (see I/O chart above) Then click on Define Item(s)

    Enter DDI3230_Input_1 and click OK

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 29 of 29 Rev 2.1

    Repeat this process for the next input:

    Enter the Default Item Name Root to DDI3420_inputs (DDI3420 can be replaced by the name of the module of your simulator) .

    Scroll down and Select the 2 byte, 4th bit within the byte to target the first input channel of the DDI3420. (see chart above). Next hold the shift key down to select the 2 byte, 7 Position

    in byte. This will automatically select a total of 4 inputs.

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 30 of 30 Rev 2.1

    Now select the Define Items(S)

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 31 of 31 Rev 2.1

    Enter the following Symbol with the * wild card to provide a variable assignment. The system has created names with automatic numbering. Unfortunately, it is not possible to select the

    starting number…

    Your Input (bit) map will now look something like this.

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 32 of 32 Rev 2.1

    Repeat this process for the Output (bit) to map as follows: DDO3200_Output_1 DDO3200_Output_2

    Validate the modification by OK or Apply. Build the changes in the Unity Project: Build >> R ebuild All Project Once project is successfully built, go back to the Project Browser >> Variables & FB instances. The STB structures created by the DTM have been modified with the symbols previously defined. These variables can now be used to extract bits directly in the PLC program. Alias names can also be defined for all objects.

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 33 of 33 Rev 2.1

    Download the applications.

    Build the application.

    Update the IO image size if required. To do so, observe the total I/O size by clicking the Device List item in the DTM.

    Observe the Input reserved size and Output reserved size item.

    Close the DTM Open Project Browser >> Configuration >> PLC_Bus >> BMX NOC 0401

    Update the size of the inputs and outputs if needed then validate and click the Update application button. Build, connect, transfer all, and run the PLC.

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 34 of 34 Rev 2.1

    Review the STB NIC rotary switches point to the correct position as needed for this lab.

    Set the upper rotary switch to 12(tens), Lower switch to 3(ones). Together this will establish a

    role name for the NIC module to STBNIC2212_123.

    Now recycle power on the STBNIC2212 and wait until it acquires its IP address.

    Test the application.

    Once downloaded, right click the NOC item from the DTM Browser and select Connect . Using the context menu (right click) of the NOC0401,and select the Device » Diagnosis .

    Observe that the STB NIC is connected and healthy.

    With Unity Pro Online, open a new Animation table name STB_Island. The animation table is

    on the project browser window. Right click animation table to create a new one.

    Insert the variables STBNIC2212_from_EDS_IN and STBNIC2212_from_EDS_OUT . Deploy the structure variable: observe that the names created before for the words are now

    available, and each name of bits are in the comments. Most of the parameters from the EDS file can be configured from this screen.

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 35 of 35 Rev 2.1

    Modify the value of the Outputs and observe the result on your simulator.

    Monitor the health of the device.

    In the animation table, add these following structure variables:

    M_NOC0401_IN and MNOC0401_OUT. Deploy the M_NOC0401_IN and see the status of the HEALTH_BITS_IN[Y] where Y is the connection bit defined in the DTM .

    Deploy M_NOC0401_OUT and set the CONTROL_BITS_OUT[Y] to observe what happens.

    Configure Alias for programming

    DDI3230 Input Module first red push button on demo.

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 36 of 36 Rev 2.1

    We can use now the STB hardware for programming a little example in LD Project Browser�Program�Tasks�MAST�Section.

    The name can be shortened using an Alias instead of the structured name.

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 37 of 37 Rev 2.1

    From the data editor customize columns to add two new columns “Alias” and “Alias of”:

    Check the two items Alias and Alias of and use the button marked in red:

    In the data editor after rearranging the size of the columns and enter: Start … as alias of: DDI3230_Input_1 Stop … as alias of: DDI3230_Input_2 Run… as alias of: DDO3200_Output_1

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 38 of 38 Rev 2.1

    As the alias doesn’t exist Unity Pro proposes to create it, validate by Yes. Alias pointing on the same address can be use instead of the long structure name. For each aliased variable and alias, the link information are displayed Alias can be use advantageously in the program.

    Conclusion:

    • A device DTM provides a complete configuration tool that allows creating easily the IO configuration.

    • All variables are populated in the application without the need to configure exchange tables.

    • Using symbolized Variables allows modifying the configuration with address remapping without impact on the application.

    • Symbolisation of extracted bit allows a simple use of documented data for programming

    • Aliases simplify the programming, allowing to modify the name of locked variables

  • PlantStruxure – FDT/DTM Configuration

    Schneider Electric Page 39 of 39 Rev 2.1

    End of PlantStruxure – FDT/DTM Configuration Lab.