Task status service – Rockwell Automation 1336T Function Block Prog. Manual, Series A/B User Manual

Page 59

Advertising
background image

3–11

System Interactions

1336 FORCE — 5.9 August 1995

The compile operation performed during the function block Recall
and the download and compile services are performed as background
tasks. Even though you can perform other service requests while the
execution list is compiling, you should avoid making node value
write requests and link requests during the compilation process.

You can use the Task Status service to determine the current state of
the compiler and the application execution status. The following are
possible states for the compiler:

Value

Task Status

Description

0

Run Mode

The application is executing within the 20
millisecond task interval. No faults have occurred
within the function block portion of functionality.

1

Download in Progress

The previously compiled application is still enabled
and executing within the function block task interval.
One or more downloaded packets have been
received for a new function block program and the
function block system is waiting for more data. The
currently active application is not interrupted until all
packets have been received and the data has been
verified for the new function block program before
compilation.

2

Compilation in

Progress

All packets have been downloaded and the data
verified. The service has initiated a compile.
Compilation can take seconds when a large
application is used.

3

Link Processing

The application is disabled and links between
function blocks and drive parameters are being
established

4

Recall in Progress

A Recall is in progress.

0x00FF

Fault Mode

A function block application has a faulted status.
Function block compile time errors create a soft fault
condition within the drive. The 1336T system
architecture contains a system fault queue that
describes the nature of the fault. SCANport provides
two fault reporting values should the Task Status
word indicate a faulted mode.

The previous application is disabled and will not run
until you correct the fault. You cannot clear function
block compiler faults with the clear faults command
until you correct the function block fault.

You can read the fault queue via GPT, PLC block transfer, or
DriveManager.

Important:

A function block BRAM Init is recommended after any
function block fault other than a function block link
processing fault. If you do perform an Init, you must
also perform a Recall or download a new program.

Task Status Service

Advertising