2 Instruction Descriptions
2-870
NJ-series Instructions Reference Manual (W502)
GetMyTaskStatus
The GetMyTaskStatus reads the status of the current task.
* Negative numbers are excluded.
Instruction Name FB/FUN Graphic expression ST expression
GetMyTaskStatus Read Current Task
Status
FUN GetMyTaskStatus(
LastExecTime,
MaxExecTime,
MinExecTime,
ExecCount,
Exceeded,
ExceedCount);
Variables
Name Meaning I/O Description Valid range Unit Default
Out Return value
Output
Always TRUE TRUE only
---
---
LastExec
Time
Last task exe-
cution time
Last task execution time of
the current task
Depends on data type.* ns
MaxExec
Time
Maximum task
execution time
Maximum task execution
time of the current task
MinExec
Time
Minimum task
execution time
Minimum task execution
time of the current task
ExecCount Task execu-
tion count
Number of task executions
of the current task
Depends on data type.
---
Exceeded Task period
exceeded flag
TRUE: The last execution of
the current task was not
completed within the task
period.
FALSE: The last execution
of the current task was com-
pleted within the task period.
Exceed-
Count
Task period
exceeded
count
The number of times the
current task has exceeded
the task period.
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
Out OK
LastExec
Time
OK
MaxExec
Time
OK
MinExec
Time
OK
(@)GetMyTaskStatus
EN ENO
Out
LastExecTime
MaxExecTime
MinExecTime
ExecCount
Exceeded
ExceedCount