# Parametric programming with user input

I was wondering if anyone can tell me if gsender can run parametric programs requiring user input?

I had created a program at a previous job that would ask me the stock dimensions when I ran the program then cut a dado .5" inside the edges based off that. Is this something I can do in gsender?

Here are a few lines from that code…

``````E80000=0
``````

\$0 JIG THICKNESS=
L0=E80000+\$
L1=L0-12.1995
E80001=0
\$0 STOCK THICKNESS=
L2=E80001+\$
L3=L2+L1

N90 G59 X-105. Y-51.5841 ZL3

(----------CUSTOM INPUTS----------)

``````E80000=0
``````

\$0 Panel Length on X Axis
L4=E80000+\$
E80000=0
\$0 Panel Width on Y Axis
L5=E80000+\$

(----------VARIABLES----------)

VAR
[FEED]=100
[TOOLDIA]=.5
[DEPTH]=L2
[STARTY]=L5+.25
[STARTX]=[L4/2]+.5
[RAMPSTART]=X[STARTX]-.5 Z-[DEPTH] F[100]
[XLENGTH1]=-.25
[XLENGTH2]=L4+L2
[YWIDTH]=-.25
[FINISHX]=[STARTX]-L2
[RETRACT]=1.0
[CLEAR]=G0Z0X0Y0
ENDV

Thanks

Not with prompts as a program, but it looks like it might be doable with a custom macro.

I will be interested to follow this idea. I have a macro that probes the cylindrical tail stock on my Rotary axis and determines Y zero and through circular trigonometry calculates (surprisingly accurately, based on A/sin(a) triangular relationship) Z zero for the centre line. Knowing, or asking the user, for the diameter of the cylinder before starting moves etc would make the macro much stronger - ie: is the tailstock/live centre being probed, or is the headstock/chuck being probed.

I’m not too familiar with macros (I’ve only made one to move the router ‘out of my way’ in gsender).

Can you explain further, would you reference the custom macro in the gcode file?