<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Are there macros in codeis 3.5?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/49a3d44d91/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/49a3d44d91/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/49a3d44d91/</id><updated>2021-01-19T12:42:48.622000Z</updated><subtitle>Recent posts to Are there macros in codeis 3.5?</subtitle><entry><title>Are there macros in codeis 3.5?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/49a3d44d91/?limit=25#c350/ffea/d457/ca28" rel="alternate"/><published>2021-01-19T12:42:48.622000Z</published><updated>2021-01-19T12:42:48.622000Z</updated><author><name>Papik</name><uri>https://forge.codesys.com/u/papik/</uri></author><id>https://forge.codesys.comced0d63cfe4126774b803bdfe9d4f214b495f560</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;At the moment, I did as the first person advised. I split my program into actions that perform similar functions. If this is the only way to optimize the body of the program in codesys 3.5.&lt;/p&gt;
&lt;p&gt;It's just not very convenient, to get inside the block you need to find it in the project tree. In codesys 2.3, I used macros and when the project was running, you could go inside and so get to the right place.&lt;/p&gt;
&lt;p&gt;I could also give a name as a comment to the macro and it was very convenient. Why did they remove this functionality?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Are there macros in codeis 3.5?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/49a3d44d91/?limit=100#c350/ffea/d457" rel="alternate"/><published>2021-01-19T12:22:12.956000Z</published><updated>2021-01-19T12:22:12.956000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/</uri></author><id>https://forge.codesys.comc6dea1bc1e78c913c00a2a8d1d1f7e5bfeaa83c3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;No idea if it is ok with CFC, but with ST/LD/SFC you can split your code in different routines and then call each one when needed (for exemple, do a Main PRG, and call conditionnaly every other PRG from there).&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Are there macros in codeis 3.5?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/49a3d44d91/?limit=25#c350/ffea" rel="alternate"/><published>2021-01-18T15:31:10.565000Z</published><updated>2021-01-18T15:31:10.565000Z</updated><author><name>papik</name><uri>https://forge.codesys.com/u/papik/</uri></author><id>https://forge.codesys.com98fb77d29f99058fb0b6268d5257dd5f11d04384</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;as I understand there are no macros in 3.5 at all.  For cfc, do I need to hide parts of the code in action?  Will the action in another action work?  What other tips for optimizing project performance can you give?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Are there macros in codeis 3.5?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/49a3d44d91/?limit=25#c350/64bd" rel="alternate"/><published>2021-01-18T15:24:41.825000Z</published><updated>2021-01-18T15:24:41.825000Z</updated><author><name>papik</name><uri>https://forge.codesys.com/u/papik/</uri></author><id>https://forge.codesys.com3ed001918f85d0f083d49425a6050ccd5e142fa2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I use CFC language&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Are there macros in codeis 3.5?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/49a3d44d91/?limit=25#c350" rel="alternate"/><published>2021-01-18T15:15:41.143000Z</published><updated>2021-01-18T15:15:41.143000Z</updated><author><name>i-campbell</name><uri>https://forge.codesys.com/u/i-campbell/</uri></author><id>https://forge.codesys.com9e2286f60b17dea8cdb670af8ff97b4882512774</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Which language are you using?&lt;br/&gt;
In SFC you right click one of the objects and select insert macro after.&lt;br/&gt;
For ST, you would right click in the device tree and add an action or method.  Really this works for any of the languages.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Are there macros in codeis 3.5?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/49a3d44d91/?limit=25#2c78" rel="alternate"/><published>2021-01-18T15:04:00.830000Z</published><updated>2021-01-18T15:04:00.830000Z</updated><author><name>papik</name><uri>https://forge.codesys.com/u/papik/</uri></author><id>https://forge.codesys.come38c263bbacd2a7fc120fa1983cb2747c1c3b689</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello everybody.&lt;/p&gt;
&lt;p&gt;I recently migrated from codesys 2.3 to codesys 3.5.&lt;br/&gt;
In codesys 2.3, I used macros to organize my project, I hid some parts of my code that perform a similar function in macros, so there were only a few macros in PLC_PRG that contained the code. Therefore, the program worked quickly.&lt;/p&gt;
&lt;p&gt;Now for codesys 3.5, I have all the code in PLC_PRG at once and I did not find a way to create a macro in it and place parts of the code that perform similar functions there to optimize the project. Therefore, when I connect to the PLC, the codesys freezes for 10 minutes. Please tell me how this is done in codesys 3.5? And is it possible?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>