Sorting with CODESYS through OPC DA

Requirements

  • Modbus & OPC Client DA Edition or Ultimate Edition
  • CODESYS 3.5 SP8 (works with demo version)

This sample provides a CODESYS project ready to download to the CODESYS SoftPLC and control the Sorting by Height (Advanced) scene.

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

  2. Start the CODESYS SoftPLC by launching CODESYS Control Win V3.

    codesys softplc

  3. Click on Online > Login (Alt+F8). When prompted to download the program to the PLC, click on Yes. Next, click on Debug > Start (F5).

  4. Copy the file Tutorial (CodeSys).factoryio to Documents\Factory IO\My Scenes on your computer.

  5. Start Factory I/O, press Ctrl + O and open that scene.

  6. Finally, switch to Run mode.