ControlLogix; Ladder vs FunctionBlock

Ron the bon

Member
Join Date
May 2005
Posts
13
Hi everybody,

Until now I worked only with ladder logic. Now I have a program with function blocks. It looks more complicate, e.g. you have to put the block BNOT to invert a bit.

Well, here is the quwstion: wich way to program is better, ladder or function blocks?

Thanks

Ron
 
The traditional answer to your question is that ladder is better for sequential tasks where you are controlling many events that occur one after the other, and/or are interlocked with timers. A typical example might be some form of machine control where pieces are feed through a machine which then carries out a series of actions one after the other. The key here is that the information being processed primarily relates to events or periods.

Function block is best suited to applications where the task is continuous in nature. A typical example might be some form of heating or chemical process. A water treatment plant where levels, pH's, pressures are being continously controlled on a continuous flow of water is a good application for function block. The key here is that the dominant information being processed relates to analog variables.

Neither language is innately "better". Ladder is remarkably versatile and is the most popular "default" language because most engineers are very practised with it. By contrast function block is definitely the better language for analog dominated applications. Most modern processors allow the user to choose what language they want to write in, and to choose at the routine level, ie sequences can be written in ladder routine, and analog processing in an FB routine, all inside the same program.

The only other consideration is the usual "what about the maintenance guy trying to troubleshoot it at 2am?". Well only you can decide what policy applies as per you local conditions. It is worth noting that inside North America ladder logic probably accounts for >85% of the logic written, whereas in Europe the number may be much less, as a guess around 50%, with FB and other languages such as Structured Text being a lot more prevalent.
 
Well,

I don't really understand why the FB can be "better" with analog values.
In my point of view I can use a sub-routine with inputs and outputs.

Thanks for your answer Philip

Ron the bon
 
in my years i went to school i had the choice between ladder FBD and STL to program in and i found it easier to program in FBD than to program in ladder. i think that there is no better and worse i think it all depends n what you are the most formilliar with. and i thought that in the most of the software programs you can choose what language you want to program in and adjust view if you dicide to continue in an other language(i know mitsubishi and siemens do it for sure)
 
I don't really understand why the FB can be "better" with analog values.


Quite simple. You get a much better picture of the analog value flow. For example, when you cascade PID loops in ladder the only connection between the loops that you see (most PLCs) is the same address/tag. When cascading loops in FBD you see a connection (a line) from the output of the master to the slave's SP input.

On the other hand interlocks/conditions are easier to understand in ladder.

Simply put, use the right language for the task at hand.

Good luck,

(8{)} ( .)

(yosi)
 

Similar Topics

With this upcoming project, since I am really a "C"/"C++" programmer and *not* a PLC/Ladder programmer, I would like to use Structured Text for my...
Replies
80
Views
26,536
I created a new program task under that I created 2 ladder files. My first ladder does not have the 1 flag in the ladder icon designating it is...
Replies
8
Views
4,248
Is it possible to export a routine programmed in structured text and import it into a ladder routine?
Replies
2
Views
2,900
Hi all, Is there a equivalent function block that do the same as MOV function in ladder? Thanks.
Replies
5
Views
2,353
I am making some changes in a control logix PLC program that an engineering programmed for my company. In the program they have used the same I/O...
Replies
15
Views
7,457
Back
Top Bottom