<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Simulation mode and 16bit lib</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/49e61887d5/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/49e61887d5/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/49e61887d5/</id><updated>2020-02-27T21:21:42.816000Z</updated><subtitle>Recent posts to Simulation mode and 16bit lib</subtitle><entry><title>Simulation mode and 16bit lib</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/49e61887d5/?limit=25#b8d8" rel="alternate"/><published>2020-02-27T21:21:42.816000Z</published><updated>2020-02-27T21:21:42.816000Z</updated><author><name>RolandWagner</name><uri>https://forge.codesys.com/u/rowa/</uri></author><id>https://forge.codesys.comdbd1d654887c738531bb5a0be0d1b41142368f92</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In the simulation mode there is a PLC simulated. Thus no external libraries (C libraries) are linked to the application and executed.&lt;/p&gt;
&lt;p&gt;In order to have at least a simulation of the external library functions in the simulation mode, you can of course write a simulation code  .&lt;/p&gt;
&lt;p&gt;What does this mean?&lt;/p&gt;
&lt;p&gt;In order to realize an external library you have to generate a library with FBs, PRGs or FUNs which only contain the declaration part as an interface to your C functions. In case you want to have a simulated function of these objects in the simulation mode, you can add a simulation code in the code part of that functions. So in case you have implemented the object in ST, you can add instead of a pure ";" in the code part some lines of code e.g. for the variable handling of the original C code.&lt;/p&gt;
&lt;p&gt;O.K. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Simulation mode and 16bit lib</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/49e61887d5/?limit=25#80a3" rel="alternate"/><published>2020-02-27T21:21:38.768000Z</published><updated>2020-02-27T21:21:38.768000Z</updated><author><name>nowire75</name><uri>https://forge.codesys.com/u/nowire75/</uri></author><id>https://forge.codesys.com269f64fc1a6e2a186ca3a8e59f288ee9930c6555</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;I have one new question about a library.&lt;/p&gt;
&lt;p&gt;I have make correctly a lib from a C code (follow the 'C_IN_32Bit_E.doc'). In simulation mode my function not work (now I haven't a PLC). Is it correct?&lt;/p&gt;
&lt;p&gt;I need to creata a 16 a 16Bit lib from a C file, is It possible? I need this lib for a WAGO 750-806 CPU.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>