Popular Coding Conventions

Unregistered

Guest
U
I have worked on PLC's for several years purely on a maintenance basis (What's wrong, There it is, Now it's fixed).

I have recently started working for a company writing software from scratch, and additions to existing PLC code.

Are there any generic popular coding conventions, such as:

1. Critical Interlocks.
2. Auto Interlocks.
3. Manual Interlocks.
4. Plant Healthy.
5. Plant Enabled.
6. Drive Logic.

At the moment, until I obtain a degree of confidence over a period of time, I am having to learn cold turkey fashion.

I whole heartedly understand that it varies from application to application. But any tips for a relative newbie to project programming from scratch would be much appreciated.

Cheers in advance.

KB
 
I usually start with developing alarm logic. It's what I like to view as soon as I bring up the logic.

I take it you have started building up I/O tables and constructing program flow, so you have positve direction of where you are heading with your program design, what you want it to do, etc...
 
Yeah, I've got the baisc theme. The process flow I can obtain from the FS.

I have built my IO Schedule for this one particular project. I've started with the E-stop logic, which is mapped to coils which are read into the SCADA application. These are then series up to create an Critical Interlock. The same thing will apply for the Auto/Manual Interlocks. In turn these will be used to drive a System Ready Coil.

This System Ready Coil will be used on each drive along with a 'Drive ON' with the logic specific to the drive after that.

Does this seem like a suitable approach? This is what my last firm used to do (give or take a few things).

Any comments would be useful.

Cheers

KB
 
code

A good programmer is someone who has learned 1)it is the economy of code not its complexity that defines good programing. 2)there is more than one right way to do somthing. 3) if your program is getting long and complex, it is better, somtimes, to start over. If you know the process or machine and how it is suppose to work, it is easier to write code to get it running safely.

Have a good week, dont forget to have fun.....Bruce
 

Similar Topics

Gents and Ladies, I would love to hear from you as to which is a popular RTU/ Telemetry in the industry- Reliable/ User friendly/ Bug free. I...
Replies
1
Views
2,168
This article has a nice shout out to Ladder Logic which has risen 5 places on the IEEE list of most popular programming languages to 34th...
Replies
0
Views
2,013
You all might be interested in IEEE Spectrum’s 2014 Ranking of the Top Programming languages. (hit the button "Show extended rankings") I am...
Replies
32
Views
10,004
I'm just curious as to what most PLC programmers like to see in a PLC program. Ladder Logic Structured Text Function Block
Replies
23
Views
5,478
What is the most popular PLC in the U.S. IS it AB? If not then what Semiens GE?
Replies
14
Views
5,195
Back
Top Bottom