Flags Related To Tasks - Omron CS1G/H-CPUxx-EV1 Programming Manual

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxx-EV1:
Table of Contents

Advertisement

Using Tasks
Instructions Not Allowed in Interrupt Tasks
4-2-3

Flags Related to Tasks

Flags Related to Cyclic Tasks
Task Flags
(TK00 to TK31)
Task 3
Disabled
Task Flag for task 3
Mnemonic
FOR/NEXT
FOR/NEXT
IL/ILC
INTERLOCK/INTERLOCK CLEAR
SBS/SBN/RET
SUBROUTINE CALL/SUBROUTINE ENTRY/SUBROUTINE
RETURN
MCRO/SBN/RET
MACRO/SUBROUTINE ENTRY/SUBROUTINE RETURN
BPRG/BEND
BLOCK PROGRAM BEGIN/BLOCK PROGRAM END
STEP S/STEP
STEP DEFINE
The following instructions cannot be placed in interrupt tasks. Any attempt to
execute one of these instructions in an interrupt task will cause the ER Flag to
turn ON and the instruction will not be executed.The following instructions can
be used if an interrupt task is being used as an extra task.
Mnemonic
TKON(820)
TKOF(821)
STEP
SNXT
STUP
DI
EI
The operation of the following instructions is unpredictable in an interrupt task:
TIMER: TIM and TIMX((550), HIGH-SPEED TIMER: TIMH(015) and
TIMHX(551), ONE-MS TIMER: TMHH(540) and TMHHX(552), ACCUMULA-
TIVE TIMER: TTIM(087) and TTIMX(555), MULTIPLE OUTPUT TIMER:
MTIM(543) and MTIMX(554), LONG TIMER: TIML(542) and TIMLX(553),
TIMER WAIT: TIMW(813) and TIMWX(816), HIGH-SPEED TIMER WAIT:
TMHW(815) and TMHWX(817), PID CONTROL: PID(190), FAILURE POINT
DETECTION: FPD(269), and CHANGE SERIAL PORT SETUP: STUP(237).
The following instructions cannot be used in the power OFF interrupt task
(they will not be executed even if they are used and the Error Flag will not turn
ON):
READ DATA FILE: FREAD(700), WRITE DATA FILE: FWRIT(701), NET-
WORK SEND: SEND(090), NETWORK RECEIVE: RECV(098), DELIVER
COMMAND: CMND(490), PROTOCOL MACRO: PMCR(260).
The following flag work only for normal cyclic tasks. They do not work for extra
cyclic tasks.
A Task Flag is turned ON when a cyclic task in READY status and is turned
OFF when the task is in Disabled (INI) or in Standby (WAIT) status. Task num-
bers 00 to 31 correspond to Task Flags TK00 to TK31.
Cycle
READY
Instruction
Instruction
TASK ON
TASK OFF
STEP DEFINE
STEP NEXT
CHANGE SERIAL PORT SETUP
DISABLE INTERRUPT
ENABLE INTERRUPT
Cycle
READY
Section 4-2
Cycle
Standby
171

Advertisement

Table of Contents
loading

Table of Contents