abishur
I noticed that when I opened a saved program to view the XML that it's structure was very similar to the XML structure used in Unity Pro, the software used to program Schneider-Electric's products.  Is there any tool that can import or translate the differences rather than re-creating the code from scratch?
Reply 0 0
thiagoralves
PLCopen Editor follows the PLCopen xml standard. If Unity Pro is following the same standard, then the programs should be compatible with each other. Have you tried opening a Unity pro project directly? Do you get errors when you try to do that?
Reply 0 0
abishur
Unity Pro is not using the same standard, they're just very similar.  For example, a local INT variable in a POU has the following layout in PLCopen

<pou name="BAS_AI" pouType="functionBlock">
        <interface>
          <localVars>
            <variable name="RAW">
              <type>
                <INT/>
              </type>
            </variable>


While Unity Pro is:

<FBSource nameOfFBType="BAS_AI" version="0.80" dateTime="dt#2019-01-20-15:09:29">
    <attribute name="TypeCodeCheckSumString" value="121A"></attribute>
    <attribute name="TypeSignatureCheckSumString" value="3C25"></attribute>
<privateLocalVariables>
      <variables name="Bad_Internal" typeName="BOOL">
        <comment>Interal Bit indicating scaned raw value is not trustworthy</comment>
      </variables>


There are some obvious key differences, but I was curious if anyone had written a translation script as Unity Pro is a pretty common PLC programmer, but PLCOpen is an extremely useful tool to have in your PLC tool belt as well.  Also, the above only works for the exported User defined function blocks, the full file is some proprietary format by Schneider-Electric, but the ability to recreate function blocks in a quick import would have been crazy useful.  I can upload an entire code section if anyone is interested in working out its feasibility.  It is admittedly beyond my programming abilities or time availability.  
Reply 0 0
Reply