<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Testing of Codesys program</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/65703b6d61/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/65703b6d61/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/65703b6d61/</id><updated>2023-12-08T23:32:59.050000Z</updated><subtitle>Recent posts to Testing of Codesys program</subtitle><entry><title>Testing of Codesys program</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/65703b6d61/?limit=25#4c52" rel="alternate"/><published>2023-12-08T23:32:59.050000Z</published><updated>2023-12-08T23:32:59.050000Z</updated><author><name>snhatton</name><uri>https://forge.codesys.com/u/snhatton/</uri></author><id>https://forge.codesys.com030976b59e4de62b047e67fbb436f24741bd68d1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;There is a tool called test manager that is part of the Professional Developer's Edition of CODESYS. I would take a look at this tool for your testing purposes. There is a free 30-day trial so you can evaluate if the tool will meet your needs before investing in the license. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Testing of Codesys program</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/65703b6d61/?limit=25#418c" rel="alternate"/><published>2023-12-07T14:58:00.886000Z</published><updated>2023-12-07T14:58:00.886000Z</updated><author><name>jegerjon</name><uri>https://forge.codesys.com/u/jegerjon/</uri></author><id>https://forge.codesys.comd3584f659738fd21e6bc65d1a3e61e89a459fd80</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have a simulation function that toggle xSimActive.&lt;/p&gt;
&lt;p&gt;I map all IO variables to "IO GVLs" when xSimActive=0.&lt;br/&gt;
I map IO corresponding SimIO GVL to "IO GVLs" when xSimActive=1.&lt;/p&gt;
&lt;p&gt;Then I write code for the simulation program that runs when xSimActive=1.&lt;br/&gt;
Typically increase flow corresponding to pump speed, simulate tankfilling corresponding to flow and so on. &lt;/p&gt;
&lt;p&gt;I made a FC that require a correct code to activate simulation to avoid unintended activation by service dept. &lt;br/&gt;
When comissioned remove any possibility to activate simulation. &lt;/p&gt;
&lt;p&gt;Super when officetesting and supporting service dept. &lt;br/&gt;
+ cheap as it requires no additional equipment, and it is easier to support customer later on in the life cycle as you can test proposed changes without setting up a testlab. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Testing of Codesys program</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/65703b6d61/?limit=25#f69b" rel="alternate"/><published>2023-12-07T14:57:53.970000Z</published><updated>2023-12-07T14:57:53.970000Z</updated><author><name>jegerjon</name><uri>https://forge.codesys.com/u/jegerjon/</uri></author><id>https://forge.codesys.com5acafc713a885f80ae229e955aa57fe27c86aebc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have a simulation function that toggle xSimActive.&lt;/p&gt;
&lt;p&gt;I map all IO variables to "IO GVLs" when xSimActive=0.&lt;br/&gt;
I map IO corresponding SimIO GVL to "IO GVLs" when xSimActive=1.&lt;/p&gt;
&lt;p&gt;Then I write code for the simulation program that runs when xSimActive=1.&lt;br/&gt;
Typically increase flow corresponding to pump speed, simulate tankfilling corresponding to flow and so on. &lt;/p&gt;
&lt;p&gt;I made a FC that require a correct code to activate simulation to avoid unintended activation by service dept. &lt;br/&gt;
When comissioned remove any possibility to activate simulation. &lt;/p&gt;
&lt;p&gt;Super when officetesting and supporting service dept. &lt;br/&gt;
+ cheap as it requires no additional equipment, and it is easier to support customer later on in the life cycle as you can test proposed changes without setting up a testlab. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Testing of Codesys program</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/65703b6d61/?limit=25#0cc2" rel="alternate"/><published>2023-12-07T07:49:50.054000Z</published><updated>2023-12-07T07:49:50.054000Z</updated><author><name>ofey</name><uri>https://forge.codesys.com/u/ofey/</uri></author><id>https://forge.codesys.com927e1c6b2f4f199896f1683a346dc9596629a4f1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi! I thought to here with you guys what you think is the best way to test the program in my scenario.&lt;br/&gt;
I have some PLC programs that have been made and deployed on different PLC's. The program has added the specific devices and IO that is applicable. I have made a test environment for everything outside of the PLC, ie. the same SCADA system that is talking to the PLC, and a program running locally is simulating the plant (level regulation of different tanks). &lt;br/&gt;
Pr. now I have had to manually change the variables that are reading/writing values from the IO so they read/write via OPC instead. I also have to change the device tree from the specific PLC rack, to the soft PLC. So I kind of end up with two different programs that I have to maintain. &lt;/p&gt;
&lt;p&gt;I was just wondering if you believe there is an easier way to do this. So I can have the exactly same program and kind of switch between the soft mode, and the "real" mode.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>