1115
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Task Control Instructions
3
TKON/TKOF
Example Programming
z TKON
z TKOF
TKON
3
END
END
(Example 1)
Task 1
(Example 2)
Task 1
Task 3
END
Interrupt task 10
Task 3
TKON
1
END
END
0.00
0.00
When CIO 0.00 is ON in this
example, task number 3 is made
executable in task number 1.
Task number 3 is
executable in the
same cycle.
Task number 1 is executed
in the next cycle.
When CIO 0.00 is ON in
this example, task number
1 is made executable in
task number 3.
TKON
8010
0.01
When 0.01 is ON,
interrupt task 10 is
made executable as
an added task.
TKOF
3
END
END
(Example 1)
Task 1
(Example 2)
Task 1
Task 3 Task 3
TKOF
1
END
END
0.00
When CIO 0.00 is ON in this
example, task number 3 is put
into standby status in task
number 1.
Task number 3 is in standby
status in the same cycle,
i.e., it is not executed in the
current or following cycles.
Task number 1 is in standby
status in the next cycle, i.e.,
it is executed in the current
cycle but not in following
cycles.
When CIO 0.00 is ON in this
example, task number 1 is put
into standby status in task
number 3.
0.00