Hello Guest it is October 09, 2024, 12:53:05 PM

Author Topic: Creating a DRO to show current offset  (Read 10008 times)

0 Members and 1 Guest are viewing this topic.

Creating a DRO to show current offset
« on: January 16, 2022, 05:40:46 PM »
I am hoping someone can point me in a good direction. I am trying to create a DRO for my Mach4 screenset that will show my current offset. Whether it is running in the machine coordinates or a work offset. I am new to Mach and I find that I keep forgetting how the offsets work in Mach. This would just be an easy reminder for myself.
I have created the DRO, and am having trouble getting it to show anything. I read somewhere that I could use the following Pound Var to show the current offset:

local CurrentOffset = mc.mcCntlGetPoundVar (inst, 4014)

I tried putting it in both the "On Modify Script", "On Update Script", and putting it in my screen load script as a function.
I cannot get anything to work.

Can and will someone please help me out?

Thanks