Santosh
Is there any way we can plug in a custom code (C Code) generator to OpenPLC editor ?  We have a custom hardware, custom OS, so was wondering if we can use it with a custom code generator.
Reply 0 0
thiagoralves
What do you mean by custom code generator?
Reply 0 0
Santosh
We want to generate c code for a custom software stack.
Reply 0 0
Santosh
I mean, can we read the logic from the editor in an intermediate form and then generate custom code for custom target environment.
Reply 0 0
thiagoralves
You sure can. The editor spits out Structured Text code as the intermediate language. You can make a Structured Text interpreter or compiler for your platform and have it running
Reply 0 0
Santosh
Thanks thiagoralves for the reply. Can you please point point me to a reference to output Structured Text specification which OpenPLC outputs.
Reply 0 0
thiagoralves
Structured Text is defined on the IEC 61131-3 standard. You can find plenty of resources about that online. You can get the Structured Text output from OpenPLC Editor when you click on the orange down arrow ("generate PLC program")
Reply 0 0
Reply