×
Siemens Industry Online Support
Siemens AG
Entry type: FAQ Entry ID: 109736536, Entry date: 06/10/2016
(2)
Rate

How, in STEP 7 (TIA Portal), do you configure access to a shared device and the function Module-internal Shared Input / Shared Output (MSI /MSO)?

  • Entry
  • Associated product(s)
The function Module-internal Shared Input / Shared Output (MSI / MSO) allows an input module or output module to make its input or output data available to up to four IO controllers.

The basics of the function Module-internal Shared Input / Shared Output (MSI / MSO) are described in the manual SIMATIC PROFINET PROFINET with STEP 7 V13.

Entry ID 102325771includes an overview of the IO devices that support the MSI / MSO function.

This entry shows how in STEP 7 (TIA Portal) to configure access to a shared device and the MSI / MSO function. You configure the IO controllers either in two separate projects or in one common project.
In this example an S7-1500 CPU and an S7-300 CPU access as IO controllers the input and output data of an ET 200SP as shared device.
An input module and an output module are slotted in the ET 200SP. The S7-1500 CPU is to read the inputs and write the outputs. The S7-300 CPU is to read both the inputs and the outputs.
 

Fig. 1

Configuration in a common project

Proceed as follows to configure both CPUs in a common project:

  1. Create a new project in STEP 7 (TIA Portal).
  2. Add the S7-1500 CPU and the S7-300 CPU to the project.
  3. Configure different addresses for the S7-1500 CPU and the S7-300 CPU. The IP addresses must be in the same IP subnet.
  4. In the "Devices & Networks" editor you open the Network view. Drag and drop the relevant interface module (IM) of the ET 200SP from the Hardware Catalog.
  5. In the "Devices & Networks" editor you open the Device view of the ET 200SP. Drag and drop the input and output modules from the hardware catalog into the corresponding slots of the ET 200SP.
  6. In the Device view of the ET 200SP you mark the output module. The inspector window displays the properties of the output module.
  7. In the "General" tab you navigate to "Module parameters > DQ configuration".
  8. To make a copy of the module for the Shared Device (MSO) you select the setting "1 additional input replication".
      

    Fig. 2
     

  9. In the Device view of the ET 200SP you mark the input module. The inspector window displays the properties of the input module.
  10. In the "General" tab you navigate to "Module parameters > DI configuration".
  11. To make a copy of the module for the Shared Device (MSI) you select the setting "1 additional input replication".
      

    Fig. 3
     

  12. In the "Devices & Networks" editor you open the Network view. Copy the ET 200SP and paste a second ET 200SP in the Network view.
  13. Assign an ET 200SP to the S7-1500 CPU. Assign a second ET 200SP to the S7-300 CPU.
  14. Configure the same IP address for both ET 200SP stations.
      

    Fig. 4
     

  15. In the Device view of the ET 200SP you mark the interface module (IM). The inspector window displays the properties of the interface module.
  16. Navigate to "PROFINET interface [X1] > Ethernet addresses".
  17. Disable the function "Generate PROFINET device name automatically" so that you can enter the PROFINET device name manually. You enter the same device name for both ET 200SPs.
      

    Fig. 5
     
  18. In the Properties of the interface module assigned to the S7-1500 CPU, you open the "General" tab and navigate to "Module parameters > Shared Device".
  19. Define which modules (basic modules) and which copies (MSI/MSO modules) the IO controller is allowed to access.
    In this example the S7-1500 CPU is to set outputs, in other words the S7-1500 (PLC_1) accesses the outputs of the output module. It is for this reason that the output module for the S7-1500 is a basic module.
    The S7-1500 (PLC_1) accesses the copy of the inputs of the input module. It is for this reason that the input module for the S7-1500 is an MSI module.
    Modules or their copies that are to make their data available to the S7-300 (PLC_2) are not to be assigned to any IO controller. Do not assign the interface module to any IO controller.
      

    Fig. 6
      
  20. In the Properties of the interface module assigned to the S7-300 CPU you open the "General" tab and navigate to "Module parameters > Shared Device".
  21. Define which modules (basic modules) and which copies (MSI/MSO modules) the IO controller is allowed to access.
    In this example the S7-300 CPU manages the copy of the outputs of the output module, in other words the S7-300 (PLC_2) accesses the copy of the outputs of the output module. It is for this reason that the output module for the S7-300 is an MSO module.
    The S7-300 (PLC_2) accesses the inputs of the input module. It is for this reason that the input module for the S7-300 is a basic module.
    Modules or their copies that are to make their data available to the S7-1500 (PLC_1) are not to be assigned to any IO controller.
    Do not assign the interface module to any IO controller.
      

    Fig. 7
     

  22. In the "Devices & Networks" editor you open the Device view of the ET 200SP that is assigned to the S7-1500. Here you can change the IO addresses of the basic modules and the MSI/MSO modules.
      

    Fig. 8
     

  23. In the "Devices & Networks" editor you open the Device view of the ET 200SP that is assigned to the S7-300. Here you can change the IO addresses of the basic modules and the MSI/MSO modules.
      

    Fig. 9
     

  24. In the Device view of an ET 200SP you right-click the interface module. In order to assign the configured device name to the ET 200SP you select "Assign device name" in the pop-up menu.
      

    Fig. 10
     

  25. In the project tree you mark the S7-1500 CPU. To load the configuration into the S7-1500 CPU, in the toolbar you click the "Download to device" button.
      

    Fig. 11
     

  26. Load the configuration into the S7-300 CPU.

Configuration in two different projects

Proceed as follows to configure the two CPUs in two different projects.

  1. Create a new project in STEP 7 (TIA Portal).
  2. Add the S7-1500 CPU to the project.
  3. >In the "Devices & Networks" editor you open the Network view. Drag and drop the relevant interface module (IM) of the ET 200SP from the Hardware Catalog.
  4. In the "Devices & Networks" editor you open the Device view of the ET 200SP. Drag and drop the input and output modules from the hardware catalog into the corresponding slots of the ET 200SP.
  5. Assign the ET 200SP to the S7-1500 CPU.
      

    Fig. 12
     

  6. In the Device view of the ET 200SP you mark the output module. The inspector window displays the properties of the output module.
  7. In the "General" tab you navigate to "Module parameters > DQ configuration". To make a copy of the module for the Shared Device (MSO) you select the setting "1 additional input replication".
      

    Fig. 13
     

  8. In the Device view of the ET 200SP you mark the input module. The inspector window displays the properties of the input module.
  9. In the "General" tab you navigate to "Module parameters > DI configuration".
  10. To make a copy of the module for the Shared Device (MSI) you select the setting "1 additional input replication".
      

    Fig. 14
     

  11. In the Properties of the interface module you open the "General" tab and navigate to "Module parameters > Shared Device".
  12. Define which modules (basic modules) and which copies (MSI/MSO modules) the IO controller is allowed to access.
    In this example the S7-1500 CPU is to set outputs, in other words the S7-1500 accesses the outputs of the output module. It is for this reason that the output module for the S7-1500 is a basic module.
    The S7-1500 accesses the copy of the inputs of the input module. It is for this reason that the input module for the S7-1500 is an MSI module.
    Modules or their copies that are to make their data available to the S7-300 are not to be assigned to any IO controller.
    Do not assign the interface module to any IO controller.
      

    Fig. 15
      
  13. Create a second project in STEP 7 (TIA Portal).
  14. Add the S7-300 CPU to the project.
  15. In the "Devices & Networks" editor you open the Network view. Drag and drop the relevant interface module (IM) of the ET 200SP from the Hardware Catalog.
  16. In the "Devices & Networks" editor you open the Device view of the ET 200SP. Drag and drop the input and output modules from the hardware catalog into the corresponding slots of the ET 200SP.
  17. Assign the ET 200SP to the S7-300 CPU.
      

    Fig. 16
     

  18. Create a copy of the output module for the Shared Device (MSO) as described in step 5 above.
  19. Create a copy of the input module for the Shared Device (MSI) as described in step 6 above.
  20. In the Properties of the interface module you open the "General" tab and navigate to "Module parameters > Shared Device".
  21. Define which modules (basic modules) and which copies (MSI/MSO modules) the IO controller is allowed to access.
    In this example the S7-300 CPU manages the copy of the outputs of the output module, in other words the S7-300 accesses the copy of the outputs of the output module. It is for this reason that the output module for the S7-300 is an MSO module.
    The S7-300 accesses the inputs of the input module. It is for this reason that the input module for the S7-300 is a basic module.
    Modules or their copies that are to make their data available to the S7-1500 are not to be assigned to any IO controller.
    Do not assign the interface module to any IO controller.
     

    Fig. 17
     

  22. In both projects you can change the IO addresses of the basic modules and the MSI/MSO modules in the Device view.
      

    Fig. 18
     

  23. You configure the same device name for the ET 200SP in both projects. In the Device view of the ET 200SP you mark the interface module (IM). The inspector window displays the properties of the interface module.
  24. Navigate to "PROFINET interface [X1] > Ethernet addresses". Disable the function "Generate PROFINET device name automatically" so that you can enter the PROFINET device name manually.
      

    Fig. 19
     

  25. In one of the two projects you right-click the interface module in the Device view. In order to assign the configured device name to the ET 200SP you select "Assign device name" in the pop-up menu.
      

    Fig. 20
     

  26. Load the configuration into the S7-1500 CPU and the S7-300 CPU.

Summary

  1. The two IO controllers that access the Shared Device have different IP addresses from the same IP subnet and different names.
  2. Configure the IO device twice. Assign the same IP address for both versions and the same device name.
  3. In both versions of the IO device you configure the same hardware setup and the same number of copies for the Shared Device.
  4. Do not in any version of the IO device assign an IO controller to the interface module.
  5. IO modules or their copies that are assigned in one version of the IO device to an IO controller are not to be assigned to any IO controller in the other versions of the IO device.
  6. If an IO controller is to write to an output module, then you assign the output module directly to the IO controller as basic module. Only one IO controller per output module can write to the outputs.
Security information
In order to protect technical infrastructures, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art IT security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about cyber security, please visit
https://www.siemens.com/cybersecurity#Ouraspiration.