Book a Demo

Author Topic: Code generator addin  (Read 3384 times)

Rogier van Stapele

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Code generator addin
« on: November 23, 2006, 05:05:30 am »
I developed a code generator addin for the PLC language IEC61131-3.

My addin works fine but I can't find the answers to some questions:

Where can I set the extension of the source files that are created? All files have the extension ".h" from Java although I set the default language to my new language.

Where can I find the Multiplicity in a connector's end?

What is the functional difference between an ElementId and an ElementGuid?

Jsc

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: Code generator addin
« Reply #1 on: January 21, 2020, 07:28:28 pm »
Hi,

the first question can be solved by using the MDG Technology. So you can define the .xml as the standard generated file extension.

Otherweise i have also written two templates for the code generation to PLC:

the first ist .xml File for PLCopen; the second ist .xml File in .Zip which are specific for TwinCAT

Are you still working in this object. i am glad to dicuss this thema further.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Code generator addin
« Reply #2 on: January 21, 2020, 08:03:51 pm »
2. t_connector.sourceCard / destCard
3. ID is only local in your database. A fast integer as primary index. GUIDs are preserved over model transfers. Slower search but valid in any model.

q.