504bloke
Lifetime Supporting Member
On the most part All the time........
Gerry said:377 views
68 votes
...what does that signify?
S7Guy said:
I just took a look at the last large project I did. The actual number of executed instructions per scan is 155,000 (plus or minus a few thousand due to some routines only being executed as needed). I took liberal advantage of subroutines and indirect addressing to make my code clear and manageable, and I ended up with about 20,000 lines of actual code. I haven't worked with a processor that doesn't handle subroutines, but I can't even imagine it would be much fun to maintain large programs without them. Even on the small programs I've done, I always end up with at least an OB1, some FCs, and a couple of DBs. And the fact that I can drag and drop these routines from project to project really speeds things up when making code updates.
I do not agree. Did you read my previous post? There is absolutely nothing wrong with breaking the program into "sections" that are called what the section handles. I have some programs with 25-30 sections and have yet to find anyone who has problems following what I have done.A perfet example of why to use subroutines..(Or in the case of CLX "Sceduled task's"..can you imagine the poor sparke trying to troubleshoot and having to wade thru 20,000 lines of programing??The mind boggles..
Any time someone added a rung to the program, all of the default rung comments were offset by however many rungs they added to the program.
It is of course always possible that in Tom's case that people were performing online edits without saving the file offline...so next time they went online and did an upload, the online logic would merge with the offline comments, and quite naturally get screwed up.
It is of course always possible that in Tom's case that people were performing online edits without saving the file offline...so next time they went online and did an upload, the online logic would merge with the offline comments, and quite naturally get screwed up.
RSLogix 5/500 allows you the option of attaching the comment to the File/Rung number, or to the Output Address whichever you prefer.