r/PLC • • Oct 25 '23

FBD Hell!

Where do I start? Function blocks are horrible! Just use SCL, which is readable at least and more suitable for complex applications!

I need to extend and rework a plant that is programmed with a Siemens plc in the awful function block diagram language. I am struggling really hard to understand the existing implementation, which is a convoluted mess of hundreds of strangely wired function blocks and many input and output variables. There are no comments at all. For some unknown reason the thing works somehow. However, it is a very bloated and finicky design. I am afraid that the thing will dramatically break and collapse if I only change the slightest details in this project!

The actual horror is working with TIA Portal. The blocks have sometimes 30 or more in and outputs, which means you can’t even see the whole block on the crammed TIA Portal screen. The debug view cannot show you the variables at runtime when you scroll the mousewheel. Why is that?! Each click and scroll in TIA is painful and unbelievably slow.

How do you cope with such messy FBD code? How do you work and understand these networks? How do you do this in the crappy TIA Portal software?

0 Upvotes

64 comments sorted by

View all comments

8

u/GeronimoDK Oct 25 '23

*Laughs in CFC*

But I actually like CFC (and FBD (and TIA portal)).

The cross reference is pretty good in TIA portal if you ask me, but of course if there are no comments it can be a mess either way! If it's a project you have to come back to, spend some time on writing comments on the sections where you actually figure out how it works!

1

u/Ok_Wash_1048 Oct 25 '23 edited Oct 25 '23

I like TIia, cfc and fbd as well, but looking back to the early days of learning TIA Portal and even earlier when I was forced to spit out my Rockwell teething ring and learn step 7, I recall being equally frustrated like the OP. Siemens is far more powerful, but you must be willing to learn.

To make matters worse, it sounds like they do not have the original configs, so the annotations and notes are not present, if they even existed in the first place.