EasyManua.ls Logo

Omron CJ2 CPU UNIT SOFTWARE - Page 107

Omron CJ2 CPU UNIT SOFTWARE
670 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
5-15
5 Understanding Programming
CJ2 CPU Unit Software User’s Manual
5-2 Tasks
5
5-2-2 Cyclic Tasks
Additional Information
All Condition Flags (ER, CY, Equals, AER, etc.) and instruction conditions will be cleared at the
beginning of a task. Therefore, Condition Flags cannot be read between two tasks.
Interlocks (e.g., IL and ILC instructions), jumps (e.g., JMP, CJP, and JME instructions), and
subroutines (e.g., SBS, RET, and SBN instructions) must be completed within each individual
task. For example, jumping cannot be performed from one task to another. If subroutines will
be used by more than one tasks, use global subroutines (GSBS(750), GRET(752), or
GSBN(751) instructions).
END
END
END
Executed in order starting
at the lowest number.
Cyclic task 0
Cyclic task 1
Interrupt task 5
Interrupt occurs.
Cyclic task n
I/O refresh
Peripheral
processing

Table of Contents

Related product manuals