EasyManuals Logo

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 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
Page #1150 background imageLoading...
Page #1150 background image
3. Instructions
1112
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Task Control Instructions
TKON/TKOF
Applicable Program Areas
Operands
N: Task number
• Cyclic tasks:
N must be a constant between 0 and 127 decimal. (Values 0 to 127 specify cyclic tasks 0 to 127.)
• Extra cyclic tasks (CJ2, CS1-H, CJ1-H, CJ1M, and CS1D CPU Units only):
N must be a constant between 8000 and 8255 decimal. (Values 8000 to 8255 specify extra cyclic
tasks 0 to 255.)
z Operand Specifications
Flags
Related Auxiliary Area Words and Bits
Instruction Mnemonic Variations
Function
code
Function
TASK ON TKON @TKON 820 Makes the specified task executable.
TASK OFF TKOF @TKOF 821 Puts the specified task into standby status.
Symbol
TKON TKOF
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage OK OK OK OK Not allowed OK
Operand Description Data type Size
N Task number --- 1
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers
TK CF
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
N --- --- --- --- --- --- --- --- --- --- OK --- --- --- --- --- --- ---
Name Label Operation
Error Flag ER • ON if N is not a constant between 00 and 127 or between 8000 and 8255 (CJ2, CS1-H, CJ1-H, and
CJ1M CPU Units only).
• ON if the task specified with N does not exist.
• ON if TKON(820)/TKOF(821) is executed in an interrupt task.
• OFF in all other cases.
Name Address Contents
Task Flags TK00 to TK127 • These flags are turned ON when the corresponding cyclic task is exe-
cutable and they are OFF when the corresponding cyclic task is not
executable or in standby status.
• TK00 to TK127 correspond to cyclic task numbers 00 to 127.
N: Task number
TKON(820)
N
N: Task number
TKOF(821)
N

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals