Unknown control commnad in the o word

More
13 Sep 2021 03:22 - 14 Sep 2021 13:46 #220392 by dansawyer
The system is 2.8. There is an error load:
Unknown control commnad command in the o word.
The reference it the line with the *** I have edited and removed the extranious lines.
I have tried several attempts to resolve this but unable to. Any help appreciated.
Thank you, Dan

/ comment - 2.5 inch diameter - 1 inch tool - no comp
#1 = 0
#<_tool_dia> = .25
#<_inner_dia> = 3.10
#<_outer_dia> = 5.590
#<_hole_offset> = [5.10/2]
#<_angle> = 0
#<_count> = 6
o1                             ; Main program 1
  g01 z1 f20
  g01 x0 y0               ; return to center
  o4 while [#<_count> gt -1]
     #<_count> = [#<_count> -1]
     M98 p100
******
  o4 endwhile
  g01 z1.0 f25 ; lift tool
  g01 x0 y0   f25       ; return to center
M2                            ; End main program
o100   / holes
/  g01 x sin [#<_angle> * #<_hole_offset> ] y cos [#<_angle> * #<_hole_offset>]
  g01 z0 f20
/  g01 z -.30 f3
  g01 z1.0 f25
  #<_angle> = [#<_angle> + 60]
M99

 
Last edit: 14 Sep 2021 13:46 by dansawyer. Reason: Remove extranious lines. Make error case focused only on error / correct title

Please Log in or Create an account to join the conversation.

More
13 Sep 2021 23:19 #220529 by dansawyer
This was the result of using a '/' as a comment separator in a subroutine. When the '/' was changed to a ';' the program loaded.
The following user(s) said Thank You: Aciera

Please Log in or Create an account to join the conversation.

Time to create page: 0.071 seconds
Powered by Kunena Forum