Electronics-Related.com
Forums

plc automatic code generator

Started by edgar suarez kummers August 12, 2012
Good day nice people:

Please does anyone of you know about a plc automatic code generator.

Thank you very much for your answer

edgar
edgar suarez kummers wrote:
> Good day nice people: > > Please does anyone of you know about a plc automatic code generator.
From what input description? Gate level diagram? Ladder logic? And for which PLC should it generate the output? There is the IEC 61131-3 standard for PLCs, but there are a lot of things which are implementation dependant, so I guess a general automatic code generator for all PLCs is impossible. -- Frank Buss, http://www.frank-buss.de electronics and more: http://www.youtube.com/user/frankbuss
On Sun, 12 Aug 2012 09:44:15 -0700 (PDT), edgar suarez kummers
<edgarkummers@gmail.com> wrote:

>Please does anyone of you know about a plc automatic code generator.
Usually a code generator expects a description what to do and generates a code that a target device can actually execute. However, this requires that you have solved the problem at some level and the generator will then generate the code. If you are familiar to formulate the problem solution in some kind of Algol 60, Pascal or Modula like pseudo code, you could use IEC 1131/61131 Structured Text (ST), which then generates ladder diagrams etc. However, _you_ have to solve the problem and then tell some code generating system about it and it might generate some machine executable version of it. Do not expect that a "code generator" will solve the problem for you.
edgar suarez kummers wrote:

> Good day nice people: > > Please does anyone of you know about a plc automatic code generator. > > Thank you very much for your answer > > edgar
If you're talking about "Programmable Logic Controllers" yes, but if something else? I don't know maybe? Are you talking about a cross compiler? Jamie
upsidedown@downunder.com wrote:

> On Sun, 12 Aug 2012 09:44:15 -0700 (PDT), edgar suarez kummers > <edgarkummers@gmail.com> wrote: > > >>Please does anyone of you know about a plc automatic code generator. > > > Usually a code generator expects a description what to do and > generates a code that a target device can actually execute. > > However, this requires that you have solved the problem at some level > and the generator will then generate the code. > > If you are familiar to formulate the problem solution in some kind of > Algol 60, Pascal or Modula like pseudo code, you could use IEC > 1131/61131 Structured Text (ST), which then generates ladder diagrams > etc. > > However, _you_ have to solve the problem and then tell some code > generating system about it and it might generate some machine > executable version of it. > > Do not expect that a "code generator" will solve the problem for you. >
Ha.. How about STL used in the Festo's and alike systems!>. now that is something to teach .. Jamie
On Sun, 12 Aug 2012 20:26:36 +0300, upsidedown@downunder.com wrote:

>On Sun, 12 Aug 2012 09:44:15 -0700 (PDT), edgar suarez kummers ><edgarkummers@gmail.com> wrote: > >>Please does anyone of you know about a plc automatic code generator. > >Usually a code generator expects a description what to do and >generates a code that a target device can actually execute. > >However, this requires that you have solved the problem at some level >and the generator will then generate the code. > >If you are familiar to formulate the problem solution in some kind of >Algol 60, Pascal or Modula like pseudo code, you could use IEC >1131/61131 Structured Text (ST), which then generates ladder diagrams >etc. > >However, _you_ have to solve the problem and then tell some code >generating system about it and it might generate some machine >executable version of it. > >Do not expect that a "code generator" will solve the problem for you. >=20
Perzactly. ?-)
On Mon, 13 Aug 2012 20:39:03 -0400, Jamie
<jamie_ka1lpa_not_valid_after_ka1lpa_@charter.net> wrote:

>upsidedown@downunder.com wrote: > >> On Sun, 12 Aug 2012 09:44:15 -0700 (PDT), edgar suarez kummers >> <edgarkummers@gmail.com> wrote: >>=20 >>=20 >>>Please does anyone of you know about a plc automatic code generator. >>=20 >>=20 >> Usually a code generator expects a description what to do and >> generates a code that a target device can actually execute. >>=20 >> However, this requires that you have solved the problem at some level >> and the generator will then generate the code. >>=20 >> If you are familiar to formulate the problem solution in some kind of >> Algol 60, Pascal or Modula like pseudo code, you could use IEC >> 1131/61131 Structured Text (ST), which then generates ladder diagrams >> etc. >>=20 >> However, _you_ have to solve the problem and then tell some code >> generating system about it and it might generate some machine >> executable version of it. >>=20 >> Do not expect that a "code generator" will solve the problem for you. >> =20 > >Ha.. > > How about STL used in the Festo's and alike systems!>. now that is=20 >something to teach .. > >Jamie
I tried searching for what you might talking about and got a bunch of maybe irrelevant stuff. How about a link? ?-)
josephkk wrote:

> On Mon, 13 Aug 2012 20:39:03 -0400, Jamie > <jamie_ka1lpa_not_valid_after_ka1lpa_@charter.net> wrote: > > >>upsidedown@downunder.com wrote: >> >> >>>On Sun, 12 Aug 2012 09:44:15 -0700 (PDT), edgar suarez kummers >>><edgarkummers@gmail.com> wrote: >>> >>> >>> >>>>Please does anyone of you know about a plc automatic code generator. >>> >>> >>>Usually a code generator expects a description what to do and >>>generates a code that a target device can actually execute. >>> >>>However, this requires that you have solved the problem at some level >>>and the generator will then generate the code. >>> >>>If you are familiar to formulate the problem solution in some kind of >>>Algol 60, Pascal or Modula like pseudo code, you could use IEC >>>1131/61131 Structured Text (ST), which then generates ladder diagrams >>>etc. >>> >>>However, _you_ have to solve the problem and then tell some code >>>generating system about it and it might generate some machine >>>executable version of it. >>> >>>Do not expect that a "code generator" will solve the problem for you. >>> >> >>Ha.. >> >> How about STL used in the Festo's and alike systems!>. now that is >>something to teach .. >> >>Jamie > > > I tried searching for what you might talking about and got a bunch of > maybe irrelevant stuff. How about a link? > > ?-)
It was a punt remark but here it is. http://elektra-ku.lt/attachments/File/Studentams/Programming_STL.PDF Jamie

On Sunday, 12 August 2012 12:44:15 UTC-4, edgar suarez kummers  wrote:
> Good day nice people: > > > > Please does anyone of you know about a plc automatic code generator. > > > > Thank you very much for your answer > > > > edgar
You can check put www.scadacontinuum.com it does automatic PLC code generation plus tags for wonderware in touch, ifix, and ftview. They have a free trial
On Monday, August 13, 2012 at 12:44:15 AM UTC+8, edgar suarez kummers wrote:
> Good day nice people: > > Please does anyone of you know about a plc automatic code generator. > > Thank you very much for your answer > > edgar
Take a look at this example project on github: https://github.com/factory-x/fx-example It does full code generation including sequences, actions, transitions, ... The API manual is available here: https://factory-x.io/v2/api/