I am generating code with PLC coder (targeted to Codesys 3.3 versions) and imported it to a Codesys 3.5 via the Simulink import tool. Most of the code gets correctly imported however there is a part of global variables that are not imported, see below:
Hi all,
I am generating code with PLC coder (targeted to Codesys 3.3 versions) and imported it to a Codesys 3.5 via the Simulink import tool. Most of the code gets correctly imported however there is a part of global variables that are not imported, see below:
<configurations>
<configuration name="EP_PCC_conf">
<resource name="EP_PCC_res">
<globalvars constant="true" name="GVL">
<variable name="SS_OUTPUT">
<type>
<sint>
</sint></type>
<initialvalue>
<simplevalue value="3">
</simplevalue></initialvalue>
</variable>
<variable name="SS_START">
<type>
<sint>
</sint></type>
<initialvalue>
<simplevalue value="2">
</simplevalue></initialvalue>
</variable>
<variable name="SS_INITIALIZE">
<type>
<sint>
</sint></type>
<initialvalue>
<simplevalue value="0">
</simplevalue></initialvalue>
</variable>
<variable name="POS_ZCSIG">
<type>
<usint>
</usint></type>
<initialvalue>
<simplevalue value="1">
</simplevalue></initialvalue>
</variable>
<variable name="UNINITIALIZED_ZCSIG">
<type>
<usint>
</usint></type>
<initialvalue>
<simplevalue value="3">
</simplevalue></initialvalue>
</variable>
<variable name="SS_DISABLE">
<type>
<sint>
</sint></type>
<initialvalue>
<simplevalue value="6">
</simplevalue></initialvalue>
</variable>
<variable name="SS_STEP">
<type>
<sint>
</sint></type>
<initialvalue>
<simplevalue value="1">
</simplevalue></initialvalue>
</variable>
</globalvars>
<globalvars name="GVL_NON_CONST">
</globalvars></resource>
</configuration>
</configurations>
Why does it not get imported? Is this because the version mismatch?
Thank you in advance,
Omar