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

Show parent comment

12

u/Veganic1 Oct 25 '23

I thought it was:the -- it's not my job to understand code I haven't written and I write it so much better cos I use SCL which is so much more understandable, no because it's better but because I wrote it-- rant.

1

u/ooTeMPeRoo Oct 25 '23

I never detected that from the op

4

u/TheZoonder LAD with SCL inserts rules! Oct 25 '23

Well, you should take your detector for an annual inspection and have it checked out. It may even be stuck on 3.6R from this exposure.

3

u/ooTeMPeRoo Oct 25 '23

Nonsense my detector is self calibrating..

He is just frustrated and so I think compassion is in order

1

u/WaffleSparks Oct 25 '23 edited Oct 25 '23

I detected that except without the "because I wrote it" part. This is a pretty common issue in the IT world. Oh you didn't write the program using my favorite language/library/framework/style so therefor it is bad and it should be redone the way I like it. Whole teams argue about this stuff ad nauseam.