Skip to main content

Creating the Project and Selecting the PLC Device

  1. Click File → New Project.

  2. In the Templates view, select the Standard Project template.

  3. Specify a name and a storage location for the project and click OK.

    The Standard Project dialog opens for entering the device type and the implementation language of the main program.

  4. In the Device list box, select the CODESYS Control Win entry.

  5. In the PLC_PRG in list box, select Continuous Function Chart (CFC) and click OK.

    The project opens in the CODESYS frame window.

On the left-hand side of the frame window, in the Devices view, you will see the "device tree" (Devices view). The previously selected PLC device is displayed with the default name Device.

The Application object for the application that you will program already exists below the PLC Logic object.

Application already contains an object for the main program PLC_PRG and the Library Manager.

The Library Manager already contains the libraries IoStandard and Standard. The library IoStandard is required for I/O configurations. The library Standard contains all functions and function blocks that are described by the IEC 61131-3 standard.

The Task Configuration object is located at the bottom of the device tree with the MainTask, which controls the processing of PLC_PRG. Visualization objects, for example, can be inserted below the Task Configuration at a later time.

In addition to the libraries IoStandard and Standard, you need the library Util for this sample project:

  1. In the device tree, double-click the Library Manager object.

    The Library Manager opens in its editor.

  2. In the header bar of the editor, click Add Library and specify "Util" in the field for the full text search.

  3. From the search results, select the Util library and click OK to confirm the selection.

    The Util library is added to the Library Manager, and the POUs from the library are available for use in the project.