![background image](http://html.mh-extra.com/html/omron/sysmac-cp-series/sysmac-cp-series_user-manual_742262046.webp)
4 Understanding Programming
4-2
CP2E CPU Unit Software User’s Manual(W614)
4-1
Programming
User programs are created by using the CX-Programmer.
The user programs consist of the following parts.
•
Programs
A program consists of more than one instruction and ends with an END instruction.
•
Tasks (Smallest Executable Unit)
A program is assigned to an interrupt task to execute it. (In the CX-Programmer, the interrupt task
number is specified in the program properties.)
Tasks include cyclic tasks (executed with normal cyclic processing), interrupt tasks (executed when
interrupt conditions have been completed) and scheduled interrupt tasks (executed at specified inter-
vals).
The CP2E can use only one cyclic task.
•
Sections
When creating and displaying programs with the CX-Programmer, the one program can be divided
into any number of parts.
Each part is called a section.
Sections are created mainly to make programs easier to understand.
•
Subroutines and Function Blocks
You can create subroutines and function blocks within a program.
The user programs are saved in a project file (.CXP) for the CX-Programmer along with other parame-
ters, such as the symbol table, PLC Setup data, and I/O memory data.
Programs can be written using only ladder programs.
4-1-1
User Programs
Structure of User Programs
User Program Data
Programming Languages
Содержание SYSMAC CP Series
Страница 1: ...USER S MANUAL Cat No W614 E1 01 SYSMAC CP Series CP2E E D CP2E S D CP2E N D CP2E CPU Unit Software ...
Страница 3: ......
Страница 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Страница 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Страница 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Страница 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Страница 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Страница 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Страница 577: ......