Sorting by Height with S7-1200/1500

Requirements

  • Siemens Edition or Ultimate Edition
  • S7-1200/1500 PLC
  • TIA Portal

This sample provides you with a TIA Portal project ready to download to the PLC and control the Sorting by Height (Basic) scene.

  1. Download the zip archive (top of this page), extract it and open the project in TIA Portal.

  2. Edit the project to match your controller's hardware. Start by expanding the device and then selecting Device configuration.

    device configuration

  3. Right-click the controller and select Change Device.

    change device

  4. Next, select your CPU version from the list.

    select cpu

  5. The detected PLC is now on the Device view. Double-click to open the Properties page.

    click to open properties

  6. On the General tab of the Properties page expand PROFINET interface and select Ethernet addresses. Now, set the PLC's IP address.

    assign ip address

  7. Right-click on the device and select Download to device > Hardware and software (only changes).

    download to device

  8. Start FACTORY I/O, press Ctrl + O, select Scenes on the left panel and open the Sorting by Height (Basic) scene.

    open scene

  9. Press F4 to open the Driver Window. Select Siemens S7-1200/1500 on the driver drop-down list.

  10. Click on CONFIGURATION and insert the PLC's IP address into the Host field.

    driver config

  11. Press Esc to return to the Driver Window. Now, click on CONNECT to connect to the PLC. A successful connection is indicated by a green icon next to the selected driver, as well as next to the driver name displayed on the status bar.

    driver connected

  12. Switch to Run mode and enjoy.

    run