Reputation: 1434
Is function block diagram that is used for programming plc systems a form of functional programming?
Upvotes: 2
Views: 1044
Reputation: 369
One way to approach this, is looking at the Wikipedia page for functional programming.
2 Concepts
2.1 First-class and higher-order functions 2.2 Pure functions 2.3 Recursion 2.4 Strict versus non-strict evaluation 2.5 Type systems
To sum up, for FBD programming, we have:
So, that's a big no I'm afraid
Upvotes: 3
Reputation: 1230
No, it is not. What puts functional programming apart is that it treats computation as the evaluation of mathematical functions (see Wikipedia). The function blocks in PLC programming is simply a convenient way to group and reuse code in a manner that enables even "non-programmers" to use it.
Upvotes: 1