Task_Isactive - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

Task_IsActive

The Task_IsActive instruction determines if the specified task is currently in execution.
Instruction
Task_IsActive
Determine Task
Status
Variables
Name
Meaning
TaskName
Task name
Out
Judgement
Bit strings
TaskName
Out
OK
Function
The Task_IsActive instruction determines if the task specified with TaskName is currently in execution
or on standby. "On standby" means that a high-priority task was started after this task was started, so
processing has been interrupted.
If it is being executed or on standby, the value of judgment Out is TRUE. If it is not being executed, the
value of Out is FALSE.
Precautions for Correct Use
• You cannot use a variable to which a text string was assigned for TaskName. Directly specify a text
string.
• If this instruction is used in a ladder diagram, the value of Out changes to FALSE if an error occurs in
the previous instruction on the rung.
• An error occurs in the following case. The value of Out does not change.
• The task specified with TaskName does not exist.
NJ-series Instructions Reference Manual (W502)
Name
FB/FUN
FUN
I/O
Description
Input
Task name
Output
TRUE: Task is in execution
or on standby.
FALSE: Not active
Graphic expression
(@)Task_IsActive
EN
Out
TaskName
Valid range
63 bytes max. (62 sin-
gle-byte alphanumeric
characters plus the final
NULL character)
Depends on data type.
Integers
2 Instruction Descriptions
ST expression
Out:=Task_IsActive(
TaskName);
Unit
Default
''
---
---
---
Times, durations,
dates, and text strings
2
OK
2-873

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents