Omron CJ2 CPU UNIT SOFTWARE User Manual page 133

Cj2 cpu unit software
Hide thumbs Also See for CJ2 CPU UNIT SOFTWARE:
Table of Contents

Advertisement

Section Names
The section name will be "Section@" with serial numbers starting from 1 automatically allocated as
the suffix. The names can be changed using user definitions.
Advantages of Dividing Programs into Sections
Dividing programming into sections offers the following advantages.
• Programming can be uploaded from the CPU Unit one section at a time. If one section of the pro-
gramming is uploaded in advance, the time required to start online editing will be shortened. Only
one section of the program can be downloaded at a time for online editing. It is also not possible to
download sections one at a time.
• Sections can be moved to change the order of execution of the overall program, they can be
moved to other programs, and they can be copied on the project tree.
This enables standardizing programming modules that are smaller than the overall program.
File Memory Files Related to Sections
Sections are included in the CX-Programmer project file (.CXP). The section names, section com-
ments, and program comments for one CPU Unit are stored in the program index file (PRO-
GRAMS.IDX).
Additional Information
Tasks are used to control whether task program are executed. On the other hand, sections are
divisions created at a lower level in user-defined programs. Sections are created mainly to make
programming easier to understand, as in the following application examples.
• Initial processing and main processing can be divided into different sections in one task when
the same processing is required whenever the task is executed.
• The normal program area and subroutines can be divided into sections.
CJ2 CPU Unit Software User's Manual
5 Understanding Programming
5
5-41

Advertisement

Table of Contents
loading

Table of Contents