" Main Routine" in RS500

debeuu2

Lifetime Supporting Member
Join Date
Jun 2014
Location
Georgia
Posts
17
Hello All,
Need Help. I've added a new program to my code, but I can't seem to be able to figure out how to designate one of my subroutines as the Main Routine. I've already created all my JSRs in a subroutine, and would like to simply designate it as the " Main ". Any suggestions?
 
Program 2 is always the primary program. If you wish to concentrate on another then leave program 2 empty except for a JSR to the routine you wish to use primarily.
 
Thanks Bernie,
But, I can't get the 2nd program designated as the primary program. For example, in my new program tree, I have 1st-- program tags, then-- my first routine. When I go to the program properties page---configuration, it will not allow me to select a routine as main.
 
In a SLC 500 (RSL500), only file 2 is the main routine.
There is no way change it.
Copy all your JSR's over to file 2 and you are done.
 
Thanks Bernie and Mike,
So directly under my program tree, I have Program Tags, then my first routine. If I understand you correctly, my first routine ( second in the tree ) is my main routine, True or False.
 
Excuse me guys, Im using RS5000, I mistakenly punched in 500 in the subject box.
Sorry,
Does that make a difference?
 
Hello All,
Need Help. I've added a new program to my code, but I can't seem to be able to figure out how to designate one of my subroutines as the Main Routine. I've already created all my JSRs in a subroutine, and would like to simply designate it as the " Main ". Any suggestions?


RS500... RS5000... Regardless, why would you refuse to employ the built in Main Routine and insist upon creating one that is separate and different? What do you expect to gain by doing this?
 
Bit Bucket,
I did not choose to forgo the builtin Main Routine. When I added a new program to the Main Task tree, it did not automatically give me a Main Routine. Thus, I'm trying to figure how to install a Main Routine in the program.
 
Hey All,
I figured it out. I had a JSR in the main routine---referencing the main routine, thus 5000 would not allow me to set program 2 as the main routine. I deleted the JSR and waa laa.

Thanks for all of your help.
 

Similar Topics

We have a project that has all the routines viewable but not editable. I just want to force a bit high but cant do it. The only way to do so is...
Replies
2
Views
2,846
Hi All, I am new enough to this group and to PLC's, but I just have set up a new controller with a L36ERM Compact Logix with a 1734-AENTR with...
Replies
0
Views
1,341
I looked every manual on JSR. I know what it does, but I don't know why a subroutine is created and not being called by JSR. Doesn't that mean...
Replies
5
Views
2,010
Hi Guys, I would like to know if there is any advantages for having a single main routine in CONTROLLOGIX 5000. To be more precise, if you have...
Replies
6
Views
5,229
The past week we received a new piece of equipment from Germany which utilizes siemens controls. Typically in our company we use A.B. controls for...
Replies
12
Views
322
Back
Top Bottom