Programming; Programming Overview - Omron CJ2 - 02-2010 User Manual

Cj2 cpu unit software
Table of Contents

Advertisement

5-1

Programming

5-1-1

Programming Overview

Structure of User Programs
User programs are created by using the CX-programmer. Programs consist of the following parts.
• Programs
The entire user program consists of multiple programs. Each program ends with an END(001)
instruction.
• Tasks (Smallest Executable Unit)
A program is assigned to a task to execute it. (In the CX-Programmer, the task number is specified in
the properties as a program attribute.) Tasks include cyclic tasks (executed with normal cyclic pro-
cessing), interrupt tasks (executed when interrupt conditions have been completed), scheduled inter-
rupt tasks (executed at specified intervals), and the power OFF interrupt task (executed when the
power is interrupted).
CPU Unit
User program
• 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 generally made to make the pro-
gram easier to understand.
• Subroutines and Function Blocks
In one program, you can create subroutine programs and function blocks.
CJ2 CPU Unit Software User's Manual
5 Understanding Programming
The user program consists of
multiple programs. Each program is
allocated to a task. Tasks are
executed in order of task numbers.
Program
Task 1
Program
Task 2
Program
Task n
Programs are
assigned to tasks
for execution.
5
5-3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents