JSR vs MCP

DanielCamacho

Lifetime Supporting Member
Join Date
Mar 2005
Location
Querétaro
Posts
208
In the AB PLC 5 what is the difference in using JSR's from the main program file to call other files and using the MCP to set the file scan order?

Is one more efficient than the other?

I have seen both used and both work well, but I perfer the MCP method to make the program a little cleaner...

Thanks in advance for your comments...
 
I just had this discussion with the engineer at our local rep.

Between each MCP there is an I/O update. There are times when you may want this, but is does lengthen the scan time.

With the JSR there aren't any, but it is not as clean.

He said some people make the mistake of doing both which will greatly increase scan time.
 
Understood...

msinclair said:
You can skip the IO update between MCP programs by setting the bits in S:78.

That seems like the best of both worlds, if you want the program to only update the I/O once per program scan...

There are some applications, I think, where I want my I/O updated asap...

Thanks to you both...

(y)
 

Similar Topics

Jsr
We have a motor control JSR with Input and Output parameters, There are 36 motors that are controlled by the same JSR. What or how can I view...
Replies
8
Views
534
I intend to pass a BOOL array to an ST routine (for loop) to count the true bits. (should never have used a Bool array, lesson learned) The ST...
Replies
10
Views
870
Currently, I have a 1769-L36ERM that is being using to control a machine with 15 servos. Due to the nature of the process, the code is very...
Replies
9
Views
1,571
I have this program: ZIP (.rss inside no documentation). PDF (Italian documentation). Allen Bradley SLC5/03 PLC. I want to know how is the...
Replies
8
Views
2,063
Is there a difference of behavior between the PLC5 and the Logix series when it comes to JSR behavior? Assuming I do nothing to this bit...
Replies
19
Views
2,859
Back
Top Bottom