CODESYS - the IEC 61131-3 automation software
https://forum.codesys.com/

Global variables not imported from PLC coder autogenerated code
https://forum.codesys.com/viewtopic.php?f=20&t=9814
Page 1 of 1

Author:  Omar Ampyx [ Tue Jun 18, 2019 1:16 pm ]
Post subject:  Global variables not imported from PLC coder autogenerated code

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/>
</type>
<initialValue>
<simpleValue value="3"/>
</initialValue>
</variable>
<variable name="SS_START">
<type>
<SINT/>
</type>
<initialValue>
<simpleValue value="2"/>
</initialValue>
</variable>
<variable name="SS_INITIALIZE">
<type>
<SINT/>
</type>
<initialValue>
<simpleValue value="0"/>
</initialValue>
</variable>
<variable name="POS_ZCSIG">
<type>
<USINT/>
</type>
<initialValue>
<simpleValue value="1"/>
</initialValue>
</variable>
<variable name="UNINITIALIZED_ZCSIG">
<type>
<USINT/>
</type>
<initialValue>
<simpleValue value="3"/>
</initialValue>
</variable>
<variable name="SS_DISABLE">
<type>
<SINT/>
</type>
<initialValue>
<simpleValue value="6"/>
</initialValue>
</variable>
<variable name="SS_STEP">
<type>
<SINT/>
</type>
<initialValue>
<simpleValue value="1"/>
</initialValue>
</variable>
</globalVars>
<globalVars name="GVL_NON_CONST"/>
</resource>
</configuration>
</configurations>

Why does it not get imported? Is this because the version mismatch?

Thank you in advance,
Omar

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/