Task Control Instructions - Omron SYSMAC CS Series Instruction & Reference Manual

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

3. Instructions

Task Control Instructions

TKON/TKOF
Instruction
TASK ON
TASK OFF
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
N
Task number
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.)
 Operand Specifications
Word addresses
Area
CIO
WR
HR
N
---
---
---
Flags
Name
Error Flag
Related Auxiliary Area Words and Bits
Name
Task Flags
1038
Mnemonic
Variations
TKON
@TKON
TKOF
@TKOF
TKON
TKON(820)
N: Task number
N
Block program areas
Step program areas
OK
OK
Description
AR
T
C
DM
EM
---
---
---
---
---
Label
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.
Address
TK00 to TK127
Function
code
820
Makes the specified task executable.
821
Puts the specified task into standby status.
Subroutines
OK
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
---
---
OK
---
Operation
• 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.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
TKOF
TKOF(821)
N: Task number
N
SFC action or
Interrupt tasks
transition programs
Not allowed
OK
Data type
Size
---
1
Registers
Pulse
TK
CF
bits
Indirect
IR
using IR
---
---
---
---
Contents
TR
bits
---
---

Advertisement

Table of Contents
loading

Table of Contents