<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to CNC Jumps G20 - SMC_NCInterpreter and long time to process</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/a426426033/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Motion/thread/a426426033/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Motion/thread/a426426033/</id><updated>2024-08-03T14:10:43.039000Z</updated><subtitle>Recent posts to CNC Jumps G20 - SMC_NCInterpreter and long time to process</subtitle><entry><title>CNC Jumps G20 - SMC_NCInterpreter and long time to process</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/a426426033/?limit=25#cb03" rel="alternate"/><published>2024-08-03T14:10:43.039000Z</published><updated>2024-08-03T14:10:43.039000Z</updated><author><name>murdemon</name><uri>https://forge.codesys.com/u/murdemon/</uri></author><id>https://forge.codesys.com2fb62da96a584ecbc94321f60e17e59f599e1626</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;N10 G01 X100 Y100 F100&lt;br/&gt;
N20 G00 X300 Y100 F100&lt;br/&gt;
N30 G00 X300 Y300 F100&lt;br/&gt;
N40 G00 X100 Y300 F100&lt;br/&gt;
N50 G00 X100 Y100 F100 + $R1$&lt;br/&gt;
N60 G75&lt;br/&gt;
N70 G20 L10&lt;br/&gt;
N100 M30&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CNC Jumps G20 - SMC_NCInterpreter and long time to process</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/a426426033/?limit=25#e3eb" rel="alternate"/><published>2024-08-03T14:08:56.585000Z</published><updated>2024-08-03T14:08:56.585000Z</updated><author><name>murdemon</name><uri>https://forge.codesys.com/u/murdemon/</uri></author><id>https://forge.codesys.com9f2178815f86aa9a6ee70812e51c31855c6c7578</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Best way.. in CNC program before G20 jump, set G75. And for fbCheckVel execute if fbInterpreter.bWorking AND fbInterpreter.bLastObjectWasAdministrative; and same for Interpolator. &lt;br/&gt;
"&lt;br/&gt;
.....&lt;br/&gt;
dumm := fbInterpreter.bWorking AND fbInterpreter.bLastObjectWasAdministrative;&lt;/p&gt;
&lt;p&gt;//Check velociteses.&lt;br/&gt;
fbCheckVel(bExecute := (&lt;em&gt;fbInterpreter.bDone or&lt;/em&gt;) dumm,&lt;br/&gt;
    bAbort := gCNC.bCycleStop,&lt;br/&gt;
    poqDataIn := fbInterpreter.poqDataOut);&lt;br/&gt;
"&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CNC Jumps G20 - SMC_NCInterpreter and long time to process</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/a426426033/?limit=25#3c0a" rel="alternate"/><published>2023-09-20T20:11:15.895000Z</published><updated>2023-09-20T20:11:15.895000Z</updated><author><name>dwpessoa</name><uri>https://forge.codesys.com/u/dwpessoa/</uri></author><id>https://forge.codesys.coma58770c6ac9734c144092dfc1391666ea2b381e1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I am studying and developing a Softmotion+CNC system for a machine that executes multiple pieces. The G code program is written by the machine operator and each cycle execute 1 piece. The programs are large, exceeding 1000 lines and using up to 8 axes (X, Y, Z, A, B, C, P and Q).&lt;/p&gt;
&lt;p&gt;The machine needs to run cyclically, executing N pieces (selected by the Operator)... so I tested it using Looping and counters (G36 G37 and G20) and it worked, but it takes a long time to process, and the more pieces I need, the longer the processing time and this is totally impracticable.&lt;/p&gt;
&lt;p&gt;I found &lt;a class="" href="https://forge.codesys.com/forge/talk/Engineering/thread/3de9e02e20/"&gt;this&lt;/a&gt; solution which was very good, and for a few cycles it works well, but for 99999 pieces of a program with 1000 lines, it doesn't work very well...&lt;/p&gt;
&lt;p&gt;Another solution I tested is to maintain the interpolator with an automatic restart, that is, I load the program without looping (without G20) and give it another start as soon as it finishes. This partially resolved it, but there is still a delay in processing SMC_NCInterpreter in each restart :(.&lt;/p&gt;
&lt;p&gt;Another solution I thought of is to manually create the SMC_GEOINFO structure and then reuse it, avoinding the Interpreter, but reading the documentation and checking the structure filled by standard blocks, I noticed that there doesn't seem to be a "JUMP" function in the structure! In other words, the SMC_NCInterpreter actually keeps copying and copying the program section for each jump (G20)... If I repeat a 10-line program 1000 times, I will have a structure with more than 10000 lines... possibly this is the cause of take so long to process.&lt;/p&gt;
&lt;p&gt;Has anyone ever had a problem like this? I believe the same thing happens with typical applications with manipulator robots using Codesys in continuous cycles, and I would like to know if there is any solution, or even if I am misinterpreting the G20 question in SMC_GEOINFO.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>