Fixed scan time in ML1200

Mikey

Member
Join Date
Feb 2003
Posts
10
Is it possible to have a set scan time in AB Micrologix 1200.

If so how do you do it?

Regards
 
To the best of my knowledge there is no specific way to run with fixed scan time on the ML series. There are ways you may be able to reasonably emulate this action, though.

Look at this thread for possible ideas. This thread ultimately addressed a different problem but it may give you some ideas.

http://www.plctalk.net/qanda/showthread.php?t=12206

Another thought might be to look at a delta of S:4 and use that to hold you off. You wouild need to use a JMP to stay in a loop at the end of your program. You would also need to handle rollover of the clock. But you could fix the scan time that way.

Keith
 
Last edited:
Use an STI subroutine for the functions that you need to have run on a periodic schedule. A Selectable Timed Interrupt is a subroutine that will execute at a selected rate, for example, once every 100 milliseonds. When the interrupt occurs, the main program is suspended, the STI routine (and any subroutines it calls) is executed. Then control return back to whatever the PLC was doing prior to the interrupt.

The STI routines are just a little bit different in the ML than in the SLC. Instead of setting up the STI under processor status, you set it up under function files.

ML-STI.GIF


Enter the number of the Subroutine at PFN. Set UIE to 1 (you can permanently set it or turn it on and off programatically). Enter the number of milliseconds between executions at SPM.

Refer to the ML documentation in the AB library for more information
http://literature.rockwellautomation.com/idc/groups/public/documents/webassets/browse_category.hcst
 
Last edited:

Similar Topics

Hello, I use a Siemens Sinamics G120C inverter in combination with a S7-1200 cpu. I use the Main Setpoint with the Providrive option and send...
Replies
8
Views
735
Hiya, I have a project coming up using a unimotion servo linear actuator with a Schneider PLC (tm251) Are there any blocks available in the...
Replies
0
Views
962
Does anyone know of a free program I can use to upload the program from an AB SLC 500 Fixed and read the error code? I don't want to do any work...
Replies
1
Views
1,579
I am looking for a standalone (no PLC required) servo drive that I can set up to follow an incremental encoder at a fixed ratio AND will allow me...
Replies
7
Views
5,010
I am needing to connect a fixed style SLC-500 to an ethernet network for data collection to an OPC Server. I see the Fixed Style SLC-500 has an...
Replies
7
Views
2,573
Back
Top Bottom