Today is...
Saturday, August 19, 2017
Welcome to, the global online
community of automation professionals.
Featured Video...
Featured Video
Watch an animation of a conveyor stacking operation demonstrating the use of a move on a gear command.
Our Advertisers
Help keep our servers running...
Patronize our advertisers!
Visit our Post Archive
PLC Coding
i need help to write a small program for a tank level display (no pump)

1. Which language is appropriate?
2. How can some one get me a sample programme so i can enter/i/os to suit my PLC?


By Bob Peterson on 7 August, 2017 - 12:10 pm

I will try to answer both of your questions.

Presumably by "language" you are referring to what type of coding you will be doing, for instance - ladder logic. I don't think it makes much difference for MOST control projects as long as the guys who have to maintain it are able to do so. that is why ladder logic is so popular as it is pretty universal and there are a bazillion guys that can maintain such systems. If you are instead referring to language as English, German, etc., I would again suggest it be based on what language the people maintaining it use. It does me little good to get a program documented in Russian since I cannot read Russian.

As for sample programs, most manufacturers have sample programs available on their web sites.

I think you need to be more specific about your question. What type of PLC do you want to use? What type of level do you use? switch or transmitter?

I guess you are new in PLC. The first step is determine type of PLC you use, then you can learn about programming ladder.

A PLC is a controller only that (with the correct I/O) can handle a continuous level signal from a level transmitter. But only a couple PLCs in a market of hundreds has an integral HMI for displaying data. So programming a PLC for level also includes having and programming an HMI to display a level value.

There might be a more basic solution - no PLC, just a digital indicator.

Presumably the tank has a level measuring instrument with an electronic output. If the output is a typical industrial output like 0-5V or 4-20mA, then a digital indicator can be scaled to display either level or volume.