<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to G54/G55/G56 with 3-axis cnc problem</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/69da004775/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Motion/thread/69da004775/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Motion/thread/69da004775/</id><updated>2021-11-24T00:29:44.154000Z</updated><subtitle>Recent posts to G54/G55/G56 with 3-axis cnc problem</subtitle><entry><title>G54/G55/G56 with 3-axis cnc problem</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/69da004775/?limit=25#d12b/460d" rel="alternate"/><published>2021-11-24T00:29:44.154000Z</published><updated>2021-11-24T00:29:44.154000Z</updated><author><name>omeo</name><uri>https://forge.codesys.com/u/omeo/</uri></author><id>https://forge.codesys.comf6604ccd8483b8bb2bdb4c9fa078dfae1515e653</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks you a lot! Insert G17 on gcode then it works fine.&lt;br/&gt;
pbyBuffer^&lt;span&gt;[0]&lt;/span&gt;.piStartpos is cause by ncd.piStartPosition, After give it the axis actual position it also works perfect.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>G54/G55/G56 with 3-axis cnc problem</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/69da004775/?limit=25#d12b" rel="alternate"/><published>2021-11-23T18:43:52.922000Z</published><updated>2021-11-23T18:43:52.922000Z</updated><author><name>Fless</name><uri>https://forge.codesys.com/u/fless/</uri></author><id>https://forge.codesys.combcf3370b42d0ba0a0f9794d7f8a1d63a1cedb5d9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;try setting 3d mode with G17 or G16 before you enable smooth path preprocessing (g51).&lt;br/&gt;
this should fix your issues with 0 values for dZ &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>G54/G55/G56 with 3-axis cnc problem</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/69da004775/?limit=25#02db" rel="alternate"/><published>2021-11-23T14:15:09.552000Z</published><updated>2021-11-23T14:15:09.552000Z</updated><author><name>omeo</name><uri>https://forge.codesys.com/u/omeo/</uri></author><id>https://forge.codesys.com6dd81bf2e9dd47dd5f7c1843b19f6e8549939a77</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;br/&gt;
I have check the process, PathTask to generate a poqpath give cnc, then ipo going position calc.&lt;br/&gt;
By trace ipo.poqDataIn^.nReadPos, When problem happen its 0. So i check poqPath^.pbyBuffer^&lt;span&gt;[0]&lt;/span&gt;.piStartPos and poqPath^.pbyBuffer^&lt;span&gt;[0]&lt;/span&gt;.piDestPos, Its different. but its should be same i guess cuz no any movement command before g54.&lt;br/&gt;
So i add line in preparepath:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;IF ncd.bDone THEN &lt;/span&gt;
&lt;span class="err"&gt;    poqPath^.pbyBuffer^[0].piStartPos:=poqPath^.pbyBuffer^[0].piDestPos;&lt;/span&gt;
&lt;span class="err"&gt;END_IF&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Then it works fine.&lt;/p&gt;
&lt;p&gt;BUT, When i try enable smoothpath( need modify program), it got same problem like this post start. I guess there is a public function called in NCDecoder and SmoothPath, so they have the same problem.&lt;br/&gt;
SmoothPath poqDataOut maybe calc in movement( not start), so i cannot force startpos to destpos.&lt;br/&gt;
I cannot see code in cnc, any suggesting is very useful. For any who want test it, here is project of smoothpath enabled in attachments. if running once, you can see agiBufferSmooth&lt;a class="alink" href="/forge/talk-ru/1/"&gt;[1]&lt;/a&gt;.piStartPos.dZ is 50 and agiBufferSmooth&lt;a class="alink" href="/forge/talk-ru/1/"&gt;[1]&lt;/a&gt;.piDestPos.dZ is 0, it make speed problem i think.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>G54/G55/G56 with 3-axis cnc problem</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/69da004775/?limit=25#1710/74fd" rel="alternate"/><published>2021-11-23T12:47:04.856000Z</published><updated>2021-11-23T12:47:04.856000Z</updated><author><name>omeo</name><uri>https://forge.codesys.com/u/omeo/</uri></author><id>https://forge.codesys.comc554e71a7e42c4b774572ec470e1607a8dcbb191</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;br/&gt;
Thanks for you reply.&lt;/p&gt;
&lt;p&gt;Its cause by Z axis control speed too much. I had try to make AxisZ.fSWMaxVelocity=500, trace result show it got 350mm/s.&lt;br/&gt;
But i had set rncf.fDefaultVelFF=100, So any axis speed should not greater than 100mm/s theoretically.&lt;/p&gt;
&lt;p&gt;period of the ripples about 500ms. it should cause by speed too large.&lt;br/&gt;
rActualSpeed not use in this template, This code is from another large project.&lt;/p&gt;
&lt;p&gt;You can try simulate on your computer, Should have same result. We have test it on rpi and x86 rte, got same problem.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>G54/G55/G56 with 3-axis cnc problem</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/69da004775/?limit=25#1710" rel="alternate"/><published>2021-11-23T11:08:38.777000Z</published><updated>2021-11-23T11:08:38.777000Z</updated><author><name>Fless</name><uri>https://forge.codesys.com/u/fless/</uri></author><id>https://forge.codesys.comb410ecb2450b9528a1a38b314f3a0e9d52b01ac4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;G51 doesn't work because you don't call SMC_SmoothPath 😏&lt;/p&gt;
&lt;p&gt;can your axis handle the speeds?&lt;br/&gt;
a move from 0,0,0 to 10,10,50 means fast z speed.&lt;br/&gt;
while move to 50,50,50 divides the speed to all axes.&lt;/p&gt;
&lt;p&gt;what is the period of the ripples? does it change with different speed settings?&lt;br/&gt;
are you doing anything weird with 'rActualSpeed'?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>G54/G55/G56 with 3-axis cnc problem</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/69da004775/?limit=25#05c6" rel="alternate"/><published>2021-11-23T02:59:48.214000Z</published><updated>2021-11-23T02:59:48.214000Z</updated><author><name>omeo</name><uri>https://forge.codesys.com/u/omeo/</uri></author><id>https://forge.codesys.com10afc4598eb2266627e0039134ea1b6b885a16be</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;br/&gt;
I have try to make a cnc using codesys, We need g54 to shifting Coordinate System. But Z-Axis got unusual movement. Here is a simple g-code to show problem:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;N010 G90&lt;/span&gt;
&lt;span class="err"&gt;N020 G54 X10 Y10 Z50&lt;/span&gt;
&lt;span class="err"&gt;N030 G0 X0 Y0 Z0&lt;/span&gt;
&lt;span class="err"&gt;N040 G1 X10 Y0&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;(You can see trace image and project file in Attachments.)&lt;br/&gt;
But after change N020 to G54 X50 Y50 Z50 then it works fine like magic.&lt;br/&gt;
agiBufDecoder seems fine but ipo.piSetPosition not ok. If enable G51(smoothpath),  agiBufSmooth also got z=0 state, It's unusual.&lt;br/&gt;
So I think the problem cused by NCDecoder. Its only happend on XYZ system.&lt;br/&gt;
Please help me if you have any idea. Thanks.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>