Skip to content

Sorting by Height with WinPLC-Engine


  • MHJ Edition or Ultimate Edition
  • WinPLC-Engine
  • TIA Portal

This sample provides you with a TIA Portal project ready to control the Sorting By Height (Basic) scene using WinPLC-Engine.

  1. Download the zip archive (top of this page) and extract it.

  2. Start WinPLC-Engine, press open and navigate to the mask-314-fio folder of the sample files archive. Open mask-314-fio.maske_ini.

  3. Click on Extras > Properties of the Software PLC

    open winplc properties

  4. On the Settings tab select Net-Interface and click on WinPLC-Engine TCP/IP Settings...

    winplc properties

  5. Choose a network interface from the list. Take notice of the IP Address, you will need it when setting up TIA Portal. Click on OK.

    winplc network

  6. Press Mask > Change to Cyclic to switch WinPLC-Engine to cyclic mode.

    enable cyclic mode

  7. From the extracted files, navigate to the sort-height-basic folder and open the sort-height-basic.ap13 project in TIAPortal.

  8. Expand the device and select Device configuration.

    device configuration

  9. On the General tab of the Properties page expand PROFINET interface and select Ethernet addresses. Enter the previously selected WinPLC-Engine IP address.

    assign ip address

  10. Press Go online.

    go online

  11. Choose PN/IE as the type of PG/PC interface and on PG/PC interface select the network adapter. When scanning completes, select the PLC from the list of compatible devices and press Go online.

    go online

  12. Select Program blocks and click Download to device to transfer the program to WinPLC-Engine.

    download program

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

    open scene

  14. Press F4 to open the Driver window. Select MHJ from the driver drop-down list.


  15. Finally, switch to Run mode.

    switch to run

Back to top