# Need a gcode file with an arc that has z-axis movement

**URL:** <https://forums.maslowcnc.com/t/need-a-gcode-file-with-an-arc-that-has-z-axis-movement/7810>\
**Category:** Uncategorized\
**Created:** [November 22, 2018, 4:19pm UTC](https://forums.maslowcnc.com/t/need-a-gcode-file-with-an-arc-that-has-z-axis-movement/7810 "2018-11-22T16:19:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![madgrizzle](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/madgrizzle/32/1372_2.png) [@madgrizzle](https://forums.maslowcnc.com/u/madgrizzle)\
**Post date:** [November 22, 2018, 4:19pm UTC](https://forums.maslowcnc.com/t/need-a-gcode-file-with-an-arc-that-has-z-axis-movement/7810/1 "2018-11-22T16:19:11Z")

</div>

I’m testing out a 3d renderer and need a gcode file that has a z-axis movement during an arc movement. I’m not sure how to make one (it doesn’t look like makercam supports it). Can someone post a test file or otherwise make it available to me? I can give you my email address if you have one.

Thanks!

---

<div class="post-metadata">

**Author:** ![Bee](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/bee/32/2160_2.png) [@Bee](https://forums.maslowcnc.com/u/Bee)\
**Post date:** [November 22, 2018, 4:53pm UTC](https://forums.maslowcnc.com/t/need-a-gcode-file-with-an-arc-that-has-z-axis-movement/7810/2 "2018-11-22T16:53:40Z")

</div>

Hey,

I think you could get that by using MeshCAM. They give a 15 day trial license.

Thank you

---

<div class="post-metadata">

**Author:** ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)\
**Post date:** [November 22, 2018, 5:07pm UTC](https://forums.maslowcnc.com/t/need-a-gcode-file-with-an-arc-that-has-z-axis-movement/7810/3 "2018-11-22T17:07:38Z")

</div>

If you’re using firmware from the current Master branch (after PR#477), you can add a Z term to any G2/G3 line to see z axis coordinated movement. Here’s a simple one with two circles that I used to test that PR (G3 goes CCW, G2 goes CW):  
[edit - I added lines to give additional depth to the circles]

```auto
G20 G90
G0 X0 Y0 Z0
G3 X.0 Y0.001 Z-0.5 I1.0 J0.0 F100
G3 X.0 Y0.001 Z-1.05 I1.0 J0.0 F100
G3 X.0 Y0.001 Z-1.5 I1.0 J0.0 F100
G0 X0 Y0
G2 X.0 Y0.001 Z-1.0 I-1.0 J0.0 F100
G2 X.0 Y0.001 Z-0.5 I-1.0 J0.0 F100
G2 X.0 Y0.001 Z0.0 I-1.0 J0.0 F100
G0 X0 Y0
M2

```

---

<div class="post-metadata">

**Author:** ![madgrizzle](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/madgrizzle/32/1372_2.png) [@madgrizzle](https://forums.maslowcnc.com/u/madgrizzle)\
**Post date:** [November 22, 2018, 5:20pm UTC](https://forums.maslowcnc.com/t/need-a-gcode-file-with-an-arc-that-has-z-axis-movement/7810/4 "2018-11-22T17:20:45Z")

</div>

Thanks!

This look correct?

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/maslowcnc/original/2X/8/86420ff234d2fd239c03ca72cf013c03fd336487.png)

---

<div class="post-metadata">

**Author:** ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)\
**Post date:** [November 22, 2018, 5:24pm UTC](https://forums.maslowcnc.com/t/need-a-gcode-file-with-an-arc-that-has-z-axis-movement/7810/5 "2018-11-22T17:24:53Z")

</div>

👍💯😄…

---

<div class="post-metadata">

**Author:** ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)\
**Post date:** [November 24, 2018, 12:30am UTC](https://forums.maslowcnc.com/t/need-a-gcode-file-with-an-arc-that-has-z-axis-movement/7810/6 "2018-11-24T00:30:40Z")

</div>

> [@madgrizzle](#):
>
> This look correct?

I hope this gets into the default docker image soon 😁.  
I haven’t mastered the process of rolling my own, and the default docker image is sort of hard-coded into webMCP’s update button, isn’t it?  
While I’m wishing, how about making either the ‘Running’ or ‘Responsive’ button trigger an action to open localhost:5000?

---

<div class="post-metadata">

**Author:** ![madgrizzle](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/madgrizzle/32/1372_2.png) [@madgrizzle](https://forums.maslowcnc.com/u/madgrizzle)\
**Post date:** [November 24, 2018, 1:48am UTC](https://forums.maslowcnc.com/t/need-a-gcode-file-with-an-arc-that-has-z-axis-movement/7810/7 "2018-11-24T01:48:22Z")

</div>

I’m back in town tomorrow. But I’ve been thinking of how to do a system that does an auto build of the dockers.

I think I can add the auto load… I’ll look into it.
