Siemens PLC Client–Siemens SIMATIC S7 PLC (SIMATIC Manager Step7)

You are currently viewing the documentation for the latest version (2.1.0). To access a different version, click the "Switch version" button located in the upper-right corner of the page.

■ If you are not sure which version of the product you are currently using, please feel free to contact Mech-Mind Technical Support.

This topic provides instructions on setting up the Standard Interface communication based on the Siemens PLC Snap7 protocol between a Siemens SIMATIC S7 PLC and Mech-Vision and Mech-Viz using the SIMATIC Manager STEP7 software.

Hardware and Software Requirements

Hardware

  • The following S7 series PLCs from Siemens are supported:

    • S7-300: Integrated PN network port or CP343-1

    • S7-400: Integrated PN network port or CP443-1

  • Power adapter of 220V AC to 24V DC

  • Mech-Mind Vision System IPC or host

  • Ethernet cable

Software

  • Siemens PLC programming software SIMATIC Manager Step7 V5.6

  • Mech-Vision & Mech-Viz versions: 1.7.0 or above

  • Communication interface file between Vision system and S7: MM_Interface_Step7.AWL

The MM_Interface_Step7.AWL file is stored on the Mech-Mind IPC or host. It is located in Communication Component/Robot_Interface/Siemens Snap7/Simatic Manager-STEP7 in the installation directory where Mech-Vision and Mech-Viz are installed.

Build and Deploy the PLC Project

Create a PLC Project

  1. Open the software SIMATIC Manager, and click the New icon_4 icon in the upper left corner. Enter the project Name and the Storage location in the pop-up window.

    build plc 1
    Do NOT include Chinese characters in the path name.
  2. Right-click MM_Camera_Step7, select Insert New Object  SIMATIC 300 Station. After inserting, right-click and select Open Project to enter the hardware configuration interface.

    build plc 2
  3. Right-click the blank space of the hardware configuration interface, and select Insert Object  SIMATIC 300  RACK-300  Rail to insert the mounting rail.

    build plc 3
  4. Right-click the second row slot of the mounting rail, and select Insert Object, select the module that is consistent with the PLC CPU (the module has to support the PN network port), and the Ethernet Interface Property window will pop up.

    build plc 4
  5. After setting the IP address, click New Subnet (the subnet name can be set as the default name), then select the newly created subnet, and click OK.

    build plc 5
  6. Click Compile and Save icon_1 on the title bar, and close the Hardware Configuration window.

    build plc 6

Import the S7 Communication Interface

  1. Return to the SIMATIC Manager main interface, select S7 Program, right-click, open the Symbols table, add a new Mech-Mind symbol Interface, and select an unoccupied number for the DB number in the address column.

    import s7 interface 1

    After adding the new symbol, the interface should look like the figure below. Confirm the settings and click Save icon_2 .

    import s7 interface 2
  2. Right-click Sources in the project section on the left, select Insert Object  External Source… in turn, select MM_Interface_Step7.AWL in the pop-up window and open it.

    The MM_Interface_Step7.AWL file is stored on the Mech-Mind IPC or host. It is located in Communication Component/Robot_Interface/Siemens PLC/Simatic Manager-STEP7 in the installation directory where Mech-Vision and Mech-Viz are installed.
    import s7 interface 3

    After importing the file, it will look like this:

    import s7 interface 4
  3. Right-click MM_Interface_Step7, select Compile, and close the window after the compilation is successful.

    import s7 interface 5
  4. Select Blocks, right-click and select Details, and you can find that Mech-Mind Interface has been imported successfully.

    import s7 interface 6
  5. Right-click SIMATIC 300 in the project section on the left. Click Download icon_3 on the tool bar to download the project to the CPU.

    import s7 interface 7

Configure and Start Communication

Set up “Robot Communication Configuration”

  1. Ensure that the IP address of the IPC is on the same subnet as the PLC, for instance, 192.168.1.10. Open Command Prompt on the IPC and ping the PLC IP address to check if they are connected successfully.

  2. Click Robot Communication Configuration on the toolbar of Mech-Vision.

  3. In the Robot Communication Configuration window, complete the following configurations.

    1. Click the Select robot drop-down menu, and select Listed robot. Click Select robot model, and select the robot model that you use. Then, click Next.

    2. In the Communication mode area, select Standard Interface for Interface service type, and select Siemens PLC Client for Protocol. Set Slot number to 2, and set DB number (i.e. the ID of “Mech-Mind Interface” in the PLC project) to 200.

    3. Set the PLC IP address to 192.168.1.21 (i.e. the PLC IP address set previously in SIMATIC Manager)

    4. (Optional) Select Auto enable interface service when opening the solution.

    5. Click Apply.

      siemens plc step7

Start Communication

  1. Make sure the Interface Service is started: On the toolbar of Mech-Vision, the Interface Service switch on the far right is flipped and turned to blue. The PLC is successfully connected if the Console tab of Mech-Vision Log panel displays Connect to PLC server successfully. If not, please check the configuration and check whether the physical connection is normal.

    center settings 3
  2. Start the deployed Mech-Vision and Mech-Viz projects.

  3. For the specific usage of DB and interface communication instructions, refer to Siemens PLC. For the usage of the vision system, refer to Siemens PLC Client - Siemens SIMATIC S7 PLC (TIA Portal) Functions.

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.