modular programming

exiled

Member
Join Date
Jun 2002
Location
England
Posts
131
3) Organize the logic steps into sections or groups of related steps to allow "modular" prgramming


Sorry guys this may seem a dim question, but what do you mean when you refer to "modular programming"
i try to organise my codes into relevent sections that control individual processes (i write for refrigeration) such as compressors, liquid pumps, coolers, safteys ect. is that the correct way?
 
That is exactly what I menat by the phrase. There are variousl interpretations, of course. Some guys (myself included) organize by system components the way you do, with perhaps some additional "modules" specifically for alarm handling, data conversion, etc.

Other guys create modules for reading input data, writing all outputs, all control loops, and so on.

It really doesn't matter as long as the grouping is logical, consistent, and properly commented.

My intent was to simply encourage dividing the program into sections or stages that can be solved abnd de-bugged more or less in separate chunks - you can't create the entire program in your head in one step. In some cases the chunks are subroutines, in some cases they are enabled by master control relays, and in some cases the related rungs of logic are simply kept together in the program for convenience and simplicity. Again, it isn't important as long as you properly comment so anyone can follow the logic.
 

Similar Topics

dear list, i am currently about to introduce some kind of software library at my workplace. the idea is that someone writes for example a...
Replies
5
Views
5,082
hey all, i'm looking for an elegant way to programm modularly in ladder on mitsubishi q series. the amount of software being developed at the...
Replies
4
Views
6,221
I've used AOI and User Defined Data Types, but I haven't created one yet. I have a lot of repetitive MOV commands to take a select number of...
Replies
4
Views
374
Hi all, First post on here. I'm an automation engineer and I have plenty of experience with Allen Bradley, Siemens and Fanuc etc. Constantly...
Replies
4
Views
2,946
I don't normally ask for help but this one has me stumped. We are designing a machine with 4 stations each have a 24 pin connector with 6 inputs...
Replies
3
Views
1,758
Back
Top Bottom