PLC-lang / rusty

Structured Text Parser and LLVM Frontend
GNU Lesser General Public License v3.0
199 stars 53 forks source link

Mention CFC support in documentation and in Readme.md #970

Open riederm opened 11 months ago

riederm commented 11 months ago

we should start to call this a iec61131-3 compiler, no longer a structured-text compiler.

TheColonel2688 commented 11 months ago

Sorry for being pedantic. You're right it is not just a ST compiler anymore, but CFC isn't part of the IEC.

It should be and I think it should replace FBD but it isn't yet.

ghaith commented 11 months ago

You're right that CFC is not part of the norm, it is however very similar to FBD. What we are missing from FBD IIRC are networks. The network chain can however be modeled relatively well using CFC execution orders. In fact you can easily convert from FBD into CFC by moving every network to a set of execution orders.

The persistence suggested by the PLC-Open XML for FBD actually describes CFC. I have not checked the 61131-10 yet to see if that's the same but the this is enough I think to consider it at least a semi-official language.

TheColonel2688 commented 11 months ago

Thanks for the reply.

That is interesting, I will have to read thru the FBD section of the IEC Standard and also OpenPLC XML.