Download 1763-RM001 - Rockwell Automation

Transcript
Knowledgebase Quick Starts
555
Example
The following example configures the STI to execute sub-routine file #3
(PFN=3) every 2 seconds (SPM=2000). In the subroutine file there is an
ADD instruction simply adding the value of 1 to N7:0 each time the
sub-routine is scanned.
This example also sets the User Interrupt Enable bit and the Auto Start
bit allowing the STI to execute.
IMPORTANT: Ladder Logic Subroutine file #3 must be created in
order for this example to work. If the subroutine is not created the CPU
will fault due to a STI Error Code 1 - Invalid File Number for PFN has
been entered.
Notes on using Interrupt bits
If the Auto Start bit (AS) is set this will start the interrupt on power up
and set the Timed Interrupt Enabled bit (TIE) automatically, allowing the
interrupt to execute. Shown in the example above.
Publication 1763-RM001D-EN-P - September 2011