- Posts: 1111
- Thank you received: 0
[Solved] G5 G5.2 parametric
9 years 1 month ago #98478
by bkt
[Solved] G5 G5.2 parametric was created by bkt
But is possible using G5 or G5.2 with parameter?
Continuosly receive these error: Failed inizialize Circle9 ....
regards
Giorgio
Continuosly receive these error: Failed inizialize Circle9 ....
regards
Giorgio
Please Log in to join the conversation.
9 years 1 month ago #98484
by andypugh
Replied by andypugh on topic G5 G5.2 parametric
G-code?
Please Log in to join the conversation.
9 years 1 month ago #98501
by bkt
Replied by bkt on topic G5 G5.2 parametric
Code:
...
#29 =0
#<_startx> = -500
#<_starty> = -300
....
o110 while[#29 LT 5]
#<_myvar1startx> = [#<_startx> + [93*#29]]
#<_myvar1startx> = [#<_starty> + [58*#29]]
G0 X#<_myvar1startx> Y#<_myvar1starty>
F#<_myfeed> (fixed)
G5.2 P5 X#<_myvar1startx> Y#<_myvar1starty> L3
X[#<_myvar1startx> + 200] Y[#<_myvar1starty> +100] P5
X[#<_myvar1startx> +300] Y[#<_myvar1starty> +150] P5
X#<_myvar1endx> Y#<_myvar1endy> P5
G5.3
.....
#29 = [#29 +1]
o110 endwhile
Please Log in to join the conversation.
9 years 1 month ago #98506
by andypugh
Replied by andypugh on topic G5 G5.2 parametric
Having modified your code to include the missing variables, it works.
So I suspect that the problem might be the values in those missing variables. Maybe you are creating a zero-radius circle or something like that?
So I suspect that the problem might be the values in those missing variables. Maybe you are creating a zero-radius circle or something like that?
Please Log in to join the conversation.
9 years 1 month ago #98517
by bkt
Replied by bkt on topic G5 G5.2 parametric
sorry, what means for
not see missing variables in that piece of gcode .... you means these, or i have missing other var?
These is right for you? because my code work whitout error in prewiew on axis, but when try to run I've got the error.
Or maybe the nurbs must be a closed line?
regards
giorgio
Having modified your code to include the missing variables, it works.
not see missing variables in that piece of gcode .... you means these, or i have missing other var?
Code:
G21
#29 =0
#<_startx> = -500
#<_starty> = -300
#<_myvar1startx> = 0
#<_myvar1starty> = 0
#<_myfeed> = 20000
#<_myvar1endx> = 800
#<_myvar1endy> = 1000
G0 X#<_startx> Y#<_starty>
o110 while[#29 LT 5]
#<_myvar1startx> = [#<_startx> + [93*#29]]
#<_myvar1starty> = [#<_starty> + [58*#29]]
G0 X[#<_myvar1startx>-5] Y[#<_myvar1starty>-5]
F#<_myfeed> (fixed)
G5.2 P5 X#<_myvar1startx> Y#<_myvar1starty> L3
X[#<_myvar1startx> + 200] Y[#<_myvar1starty> +100] P5
X[#<_myvar1startx> +300] Y[#<_myvar1starty> +150] P5
X#<_myvar1endx> Y#<_myvar1endy> P5
G5.3
#29 = [#29 +1]
o110 endwhile
M30
These is right for you? because my code work whitout error in prewiew on axis, but when try to run I've got the error.
Or maybe the nurbs must be a closed line?
regards
giorgio
Please Log in to join the conversation.
9 years 1 month ago #98518
by bkt
Replied by bkt on topic G5 G5.2 parametric
ok ... I've understand the problem ...
Maybe you are creating a zero-radius circle or something like that?Code:G0 X[#<_myvar1startx>-5] Y[#<_myvar1starty>-5]
Please Log in to join the conversation.
Time to create page: 0.186 seconds
