Creating a sample project
12/14 MN05003004Z-EN
54
Writing a program
As described in the description of the task on Page 47, a logical
AND combination is to be made between input I0.0 and input I2.7.
The result of this logical operation is to be presented at output
Q0.3.
X
Select the “POUs” tab and double click on the “PLC-PRG”
element. The declaration and program window will be opened.
X
Create the declaration and the program, as shown in the
following diagram, and then compile the project.
X
Load the project into the controller.
X
Test the project.
I0.0
AND
Q0.3
I2.7
Figure 74: Program and declaration window
Figure 75: Compiled program
Summary of Contents for XC-CPU101 Series
Page 18: ...II...
Page 22: ...12 14 MN05003004Z EN 4...
Page 42: ...12 14 MN05003004Z EN 24...
Page 64: ...12 14 MN05003004Z EN 46...
Page 88: ...12 14 MN05003004Z EN 70...