4 Understanding Programming
4-6
CP2E CPU Unit Software User’s Manual(W614)
4-2
Tasks, Sections, and Symbols
There are basically two types of tasks.
Task settings must be made to use interrupt tasks with a CP2E CPU Unit.
With the CX-Programmer, programs can be created and displayed in functional units called sections.
Any program in a task can be divided into sections.
Sections improve program legibility and simplifies editing.
I/O memory area addresses or constants can be specified by using character strings registered as symbols.
The symbols are registered in the symbol table of the CX-Programmer.
Programming with symbols enables programming with names without being aware of the addresses.
The symbol table is saved in the CX-Programmer project file (.CXP) along with other parameters, such
as the user programs.
There are two types of symbols that can be used in programs.
z
Global Symbols
Global symbols can be accessed from all ladder programs in the PLC.
z
Local Symbols
Local symbols can be accessed from only one task. They are assigned to individual tasks.
4-2-1
Overview of Tasks
Task type
Description
Applicable
programming
language
Execution condition
Cyclic task
Executed once per cycle
Ladder diagram
Only one for the CP2E.
(Normally, the user does not have to con-
sider this.)
Interrupt tasks
Executed when a specific
condition occurs. The process
being executed is interrupted.
Ladder diagram
An interrupt task is placed into READY
status when the interrupt condition
occurs. A condition can be set for the fol-
lowing interrupt tasks.
•
Scheduled interrupt tasks
•
I/O interrupt tasks
4-2-2
Overview of Sections
4-2-3
Overview of Symbols
Symbols
Symbol Types
Содержание 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: ......