# Creation of Macros

**URL:** <https://forum.sienci.com/t/creation-of-macros/6336>\
**Category:** ❓ Question\
**Created:** [July 22, 2022, 8:54pm UTC](https://forum.sienci.com/t/creation-of-macros/6336 "2022-07-22T20:54:06Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arrow.slinger](https://forum.sienci.com/letter_avatar_proxy/v4/letter/a/a6a055/32.png) [@Arrow.slinger](https://forum.sienci.com/u/Arrow.slinger)\
**Post date:** [July 22, 2022, 8:54pm UTC](https://forum.sienci.com/t/creation-of-macros/6336/1 "2022-07-22T20:54:06Z")

</div>

Good day to all,  
As a user of UGS and now getting into the Gsender which I like better I am having some issues with creating macros as I could in UGS. Here is an example of one without the coordinates in it so please understand it is an example.  
G21; G90; $H; G0 X-258.73 Y-153.20 Z-9.08; G10 P0 L20 X0 Y0 Z0

I cannot get this to work in Gsender. If anyone could help me get this to work it would be great. I have a lot of repeatable starting points and would like to be able to use the macro function in Gsender.

Thanks

---

<div class="post-metadata">

**Author:** ![Jake](https://forum.sienci.com/user_avatar/forum.sienci.com/jake/32/2491_2.png) [@Jake](https://forum.sienci.com/u/Jake)\
**Post date:** [July 23, 2022, 2:39am UTC](https://forum.sienci.com/t/creation-of-macros/6336/2 "2022-07-23T02:39:20Z")

</div>

Hello @Arrow.slinger and welcome to the forum! I personally don’t have an answer for you, however I am sure someone will chime in. Great group of folks here! Again, welcome………  
Jake

---

<div class="post-metadata">

**Author:** ![Rusty\_golfer](https://forum.sienci.com/user_avatar/forum.sienci.com/rusty_golfer/32/675_2.png) [@Rusty\_golfer](https://forum.sienci.com/u/Rusty_golfer)\
**Post date:** [July 25, 2022, 12:30am UTC](https://forum.sienci.com/t/creation-of-macros/6336/3 "2022-07-25T00:30:29Z")

</div>

Is each command on its own line? eg  
G21  
G90  
$H  
G0 X-258.73 Y… Z…  
If not, at each semi-colon put them on a separate line.  
Russ

---

<div class="post-metadata">

**Author:** ![Arrow.slinger](https://forum.sienci.com/letter_avatar_proxy/v4/letter/a/a6a055/32.png) [@Arrow.slinger](https://forum.sienci.com/u/Arrow.slinger)\
**Post date:** [July 25, 2022, 1:38am UTC](https://forum.sienci.com/t/creation-of-macros/6336/4 "2022-07-25T01:38:17Z")

</div>

Ok here is the other issue. I have to zero after homing then run the macro for it to go to the point I want it to. If you don’t the macro will over shoot the target location. Is there a fix for that?

---

<div class="post-metadata">

**Author:** ![Arrow.slinger](https://forum.sienci.com/letter_avatar_proxy/v4/letter/a/a6a055/32.png) [@Arrow.slinger](https://forum.sienci.com/u/Arrow.slinger)\
**Post date:** [July 25, 2022, 1:40am UTC](https://forum.sienci.com/t/creation-of-macros/6336/5 "2022-07-25T01:40:20Z")

</div>

The macro is working if it is line by line so thank you for that

---

<div class="post-metadata">

**Author:** ![Rusty\_golfer](https://forum.sienci.com/user_avatar/forum.sienci.com/rusty_golfer/32/675_2.png) [@Rusty\_golfer](https://forum.sienci.com/u/Rusty_golfer)\
**Post date:** [July 25, 2022, 10:34pm UTC](https://forum.sienci.com/t/creation-of-macros/6336/6 "2022-07-25T22:34:33Z")

</div>

Try in the macro after $H to set xy(z) zero then rest of commands  
G10 L20 P2 X0…  
Russ

---

<div class="post-metadata">

**Author:** ![Arrow.slinger](https://forum.sienci.com/letter_avatar_proxy/v4/letter/a/a6a055/32.png) [@Arrow.slinger](https://forum.sienci.com/u/Arrow.slinger)\
**Post date:** [July 25, 2022, 11:05pm UTC](https://forum.sienci.com/t/creation-of-macros/6336/7 "2022-07-25T23:05:46Z")

</div>

Yea I tried that but it would not work at all. Just started writing macros so I am not that good at it yet

---

<div class="post-metadata">

**Author:** ![Arrow.slinger](https://forum.sienci.com/letter_avatar_proxy/v4/letter/a/a6a055/32.png) [@Arrow.slinger](https://forum.sienci.com/u/Arrow.slinger)\
**Post date:** [July 25, 2022, 11:07pm UTC](https://forum.sienci.com/t/creation-of-macros/6336/8 "2022-07-25T23:07:52Z")

</div>

Thank you and I am sure you are right. There are people here with way more knowledge then me

---

<div class="post-metadata">

**Author:** ![Rusty\_golfer](https://forum.sienci.com/user_avatar/forum.sienci.com/rusty_golfer/32/675_2.png) [@Rusty\_golfer](https://forum.sienci.com/u/Rusty_golfer)\
**Post date:** [July 26, 2022, 4:07pm UTC](https://forum.sienci.com/t/creation-of-macros/6336/9 "2022-07-26T16:07:40Z")

</div>

Edit: This will work after you’ve run the homing cycle.  
G21  
G90  
G54 (sets workspace P1)  
G92 X0Y0Z0 (sets current/home position)  
G0 X15 Y15 Z2 (Rapid go to)

Tapping Go XY0 will return to the G92 coordinates.  
If adding $H at start doesn’t work then suggest running homing cycle then above macro. Try & see.  
Russ

OLD Note; Will look at it when I’ve finished current carve. I don’t have limit switches but within the macro you should be able to set zero, move & reset zero. Did you put G10 L20…X0 / Y0 on individual lines? That was how I got mine to work.

---

<div class="post-metadata">

**Author:** ![Arrow.slinger](https://forum.sienci.com/letter_avatar_proxy/v4/letter/a/a6a055/32.png) [@Arrow.slinger](https://forum.sienci.com/u/Arrow.slinger)\
**Post date:** [July 30, 2022, 3:48pm UTC](https://forum.sienci.com/t/creation-of-macros/6336/10 "2022-07-30T15:48:38Z")

</div>

Thanks I will give that a try

---

<div class="post-metadata">

**Author:** ![chrismakesstuff](https://forum.sienci.com/user_avatar/forum.sienci.com/chrismakesstuff/32/10759_2.png) [@chrismakesstuff](https://forum.sienci.com/u/chrismakesstuff)\
**Post date:** [August 6, 2025, 7:16pm UTC](https://forum.sienci.com/t/creation-of-macros/6336/11 "2025-08-06T19:16:36Z")

</div>


