Rockwell Automation 1785 PLC-5 User Manual Page 84

  • Download
  • Add to my manuals
  • Print
  • Page
    / 186
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 83
Selecting Interrupt Routines
Chapter 7
7-2
Program Execution States
User programs in the Classic PLC-5 processor are always in one of the
following five states: completed, ready, executing, waiting, or faulted.
Completed State
Program has completed execution
or has not yet started execution
Ready State
Program would be executing if it were of a higher priority;
all programs pass through this state; there can be
several programs in this state at any given time
Executing State
Program is executing; only
one program can be in this
state at one time
Waiting State
Program is ready for execution but is waiting
for some event to occur (such as an input to
transition or a timer to complete)
Completed State
Program has completed execution
or has not yet started execution
Has a new program
(e.g., an MCP, STI, PII)
with a higher priority
become ready?
Yes
No
Does the program fault?
Yes
No
Faulted State
A runtime error
has occurred within
the program
Does an appropriate fault routine
Yes
choose to clear the fault?
No
Program counter is
adjusted to point to
next instruction
All active user programs
are aborted and processor
enters faulted state
Does the program request
Yes
No
a remote block transfer?
(STI and PII routines only)
While block transfer is taking place,
a rescheduling operation is performed
and lowerpriority programs are executed
Rescheduling Operation
Rescheduling Operation
Rescheduling Operation
(unless all other executions are prohibited by
a UID/UIE zone around the block transfer)
Waiting State
Page view 83
1 2 ... 79 80 81 82 83 84 85 86 87 88 89 ... 185 186

Comments to this Manuals

No comments