# Error 1 and 2 with variables

**URL:** <https://forum.sienci.com/t/error-1-and-2-with-variables/27646>\
**Category:** ❓ Question\
**Created:** [November 11, 2026, 11:58am UTC](https://forum.sienci.com/t/error-1-and-2-with-variables/27646 "2026-11-11T11:58:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frogs114](https://forum.sienci.com/letter_avatar_proxy/v4/letter/f/76d3ee/32.png) [@Frogs114](https://forum.sienci.com/u/Frogs114)\
**Post date:** [November 11, 2026, 11:58am UTC](https://forum.sienci.com/t/error-1-and-2-with-variables/27646/1 "2026-11-11T11:58:36Z")

</div>

Ran through the troubleshooting steps [here](https://resources.sienci.com/view/gs-gsender-grbl-alarm-error-codes/#error-1-2-20-24-26-28). I dont think its any of those. It has to do with trying to use variables. I tried to follow the macro guide [here](https://resources.sienci.com/view/gs-macros/) and I am not sure where I am going wrong. I have a Shapeoko 5 Pro. If I just enter in the number and delete the variable it works just fine.

Trying to run this:

%hello = 10  
G91 G0 X[%hello]

outputs this in console:

G91 G0 X[%hello]

Bad number format

What am I doing wrong here?

---

<div class="post-metadata">

**Author:** ![KGN](https://forum.sienci.com/letter_avatar_proxy/v4/letter/k/c77e96/32.png) [@KGN](https://forum.sienci.com/u/KGN)\
**Post date:** [November 11, 2026, 2:01pm UTC](https://forum.sienci.com/t/error-1-and-2-with-variables/27646/2 "2026-11-11T14:01:53Z")

</div>

> [@Frogs114](#):
>
> %hello = 10  
> G91 G0 X[%hello]

% defines the variable - using it you just add the name.

So it should be

```auto

%hello = 10
G91 G0 X[hello]

```
