STI (Selectable Timed Interrupts) function

It's pretty much just what it says. The documentation for any of the processors that use the STI (PLC5, SLC5, MicroLogix) explains the STI pretty well. You may want to read through that and then post any specific questions you have.

Keith
 
here’s a quick explanation that has helped quite a few people ...



suppose that we have an operation in our program which MUST be done at a specific rate ... for example: we need to execute a PID instruction once each 100 milliseconds ...



now suppose that the regular scan time of our program fluctuates ... and sometimes it takes quite a bit more than 100 milliseconds between subsequent scans ... in this case, our PID operation might suffer ...



now suppose that we place the PID instruction in a new subroutine ... instead of using the customary JSR (Jump to Subroutine) instruction to send the processor over to execute the new file, we set the file up as an STI (Selectable Timed Interrupt) ... and we set the STI’s setpoint for the required 100 milliseconds ...



now suppose that we watch the processor scan through that LONNNNNG program of ours ... he starts down through the rungs - but as he goes along, he’s continuously keeping an eye on his little wristwatch ... as soon as the STI setpoint elapses, the processor stops what he’s doing in the regular program scan - and goes and executes the rungs contained in the STI file ... then he COMES BACK to where he was in the regular program rungs and picks back up right where he left off ... and the next time the STI setpoint elapses, the processor does the same thing: he leaves the regular program rungs - he goes and executes the STI rungs - he comes back to where he left off in the regular rungs ...


secret handshake: the STI tells the processor to INTERRUPT the regular scan at a TIME which we get to SELECT ... STI = ITS ...



that should be enough to give you the basic ideas ... but ... also consider that any FIELD INPUT and FIELD OUTPUT issues associated with the operations in the STI might also have to be taken care of within the STI ... that’s why you’ll often see rungs with “Immediate Input” and “Immediate Output” instructions included inside the STI file ...



you asked for an example ... I don’t usually post the exercises that I use in my classes - but if you want to call me up, I’ll walk you through one or two over the phone ... if you’ve got a spare system to play with during the call, it should only take about 10 or 15 minutes to nail everything down ...



hope this helps ...
 
Last edited:
Conversion

My question goes along with this but I have not been able to figure it out on my own. How do I convert an STI status function to RS5k? I am assuming I need to use some sort of GSV block but I have not been able to find the appropriate setup for the block for the STI function. Any help would be appreciated.
 

Similar Topics

Hello, I recently started working at a place that uses Emerson/GE. They have installed some newer RSTI-EP remote I/O replacing the old genius...
Replies
0
Views
166
Good day Programmers I have a RSTi-EP CPE100 Standalone Controller from Emerson as well as a STXMBE001 (MODBUS TCP/IP) as a Modbus communication...
Replies
0
Views
623
Pulling my hair out again. I'm using RS Emulate 500 I have read everything I possibly can in the 1400 reference manual. My STI is working, but...
Replies
2
Views
938
Hi all, Trying to set up a new positioner and require a password for a IMI STI STID8FT ?? Any suggestions as we cant get support until the...
Replies
6
Views
2,072
Hi I have the PLC setup as shown on the attached picture and it doesn't seem to work. I expect to see the counter counting to 5 in 5 seconds and...
Replies
14
Views
2,905
Back
Top Bottom