Siemens PLC Client - SIMATIC STEP 7

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-Mind Software Suite using the SIMATIC Manager STEP7 software.

Software and Hardware Prerequisites

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

  • IPC or host for Mech-Mind Vision System

  • Network cable

Software

  • Siemens PLC programming software SIMATIC Manager Step7 V5.6.

  • Mech-Mind Software Suite: 1.7.0 or above.

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

Hint

MM_Interface_Step7.AWL file is located in xxx\Mech-Mind Software Suite-x.x.x\Mech-Center\Robot_Interface\Siemens Snap7\Simatic Manager-STEP7 in the installation directory of Mech-Mind Software Suite.

PLC Project Building and Deployment

Create a PLC Project

  1. Open the software SIMATIC Manager, click the button icon_4 in the upper left corner, enter the project name and storage path in the pop-up window.

    ../../../_images/build_plc_12.png
  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.

    ../../../_images/build_plc_22.png
  3. In the blank space of the hardware configuration interface, click the right mouse button and select Insert Object ‣ SIMATIC 300 ‣ RACK-300 ‣ Rail to insert the mounting rail.

    ../../../_images/build_plc_32.png
  4. In the second row slot of the mounting rail, right-click, 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.

    ../../../_images/build_plc_42.png
  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 .

    ../../../_images/build_plc_51.png
  6. After clicking icon_1 Compile and Save on the title bar, close the Hardware Configuration window.

    ../../../_images/build_plc_6.png

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 symbol Mech-Mind Interface, and select an unoccupied number for the DB number in the address column.

    ../../../_images/import_s7_interface_1.png

    After adding the new symbol, as shown in the figure below, click the button icon_2 Save after confirming the settings are correct.

    ../../../_images/import_s7_interface_2.png
  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.

    ../../../_images/import_s7_interface_3.png

    After importing the file, it will look like this:

    ../../../_images/import_s7_interface_4.png
  3. Right-click and select MM_Interface_Step7 , select Compile , and close the window after the compilation is successful.

    ../../../_images/import_s7_interface_5.png
  4. Select Blocks , right-click and select Details , and you can find that Mech-Mind Interface has been imported successfully.

    ../../../_images/import_s7_interface_6.png
  5. Right-click SIMATIC 300 in the project section on the left. Click the button icon_3 Download on the tool bar to download the project to the CPU.

    ../../../_images/import_s7_interface_7.png

Configure and Start Communication

  1. Click Robot and Interface Configuration on the toolbar of Mech-Vision.

  2. Select Listed robot from the Select robot drop-down menu, and then click Select robot model.

  3. Select the robot model that you use, and then click Next.

  4. Select the following options and click Apply.

    • Interface Type: Standard Interface

    • Protocol: Siemens PLC Client

    • PLC IP address: according to the setting in SIMATIC Manager

    • Slot number: 2

    • DB number: 200

  5. 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.

  6. The PLC is successfully connected if the following message is displayed in the Console tab of Mech-Vision Log panel:

    Connect to PLC server successfully

    If not, please check the configuration and check whether the physical connection is normal.

  1. Start the deployed Mech-Vision and Mech-Viz projects.

Hint

For the specific usage of DB and interface communication instructions, please refer to Siemens PLC and Commands .