12/14 MN05003004Z-EN476 Creating a sample projectThe following example aims to help you learn how to use theeasySoft CoDeSys software. You create a project by creating aconfiguration and a program. You can then test out the projectafter it has been downloaded.The configuration is created in the easySoft CoDeSys configurationeditor. A distinction is made between local and central I/Os:The local (digital) inputs and outputs are integral parts of the CPUmodule, implemented on the power supply board. They arealready pre-configured in the configuration editor.The central inputs/outputs are implemented in the signal modules,which can be joined up via the module rack. Configure them to suitthe requirements of the application. The available XI/OC signalmodules can be used.Connect appropriate CANopen fieldbus participants to theCANopen interface.The basis for the configuration is the following hardware layout.TaskMake a logical AND linkage of inputs I0.0 and I2.7 on the XC100.The result of this logical operation should be presented at outputQ0.3.The second step is to read in the inputs/generate the outputs,using a CAN Master.Activate the appropriate CAN libraries before linking the CANMaster [VAR] module into the controller configuration. Thissequence will not take place automatically, but must be explicitlycarried out by the user.ProcedureSetting up a target systemAfter starting easySoft CoDeSys, create a new file:X Select the menu item ‹File r New›.X Answer the query about saving the old project.Select the target system. In the example, the system XC-CPU101-C64K-8DI-6DO has been selected.Figure 60: Hardware layout for the sample project%IX0.0 %QX0.3 %IX2.7Figure 61: Save old project?