Unknown control commnad in the o word

More
5 years 1 month ago #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

 

Please Log in to join the conversation.

More
5 years 1 month ago #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.

Please Log in to join the conversation.

Time to create page: 0.129 seconds
Powered by Kunena Forum