- Posts: 75
- Thank you received: 0
My Z touch off probe subroutine error
4 years 4 months ago #245973
by Craig E
My Z touch off probe subroutine error was created by Craig E
Hello, I am having trouble setting up my Zaxis tool touch block. I have it running but it faults after it finishes the second G38.2 touch off. The error I get is Unknown word where unary operation could be. If I comment out the G38.2 stuff and do a simple move with this button and subroutine it works fine.
[attachment
=46786]Touch_Plate.ini[/attachment]
Attachment not found
Attachment not found
Attachment not found
Attachment not found
Attachment not found
Please Log in to join the conversation.
4 years 4 months ago #245983
by Hakan
Replied by Hakan on topic My Z touch off probe subroutine error
# is not a comment. Use ";" instead.
Please Log in to join the conversation.
4 years 4 months ago #245998
by Craig E
Replied by Craig E on topic My Z touch off probe subroutine error
Sorry I am not following will you please use it in a command so I can understand? I have always used # to comment out stuff in the .INI, dose it not work in subroutines?
Please Log in to join the conversation.
4 years 4 months ago #246010
by mgm
Replied by mgm on topic My Z touch off probe subroutine error
No, in g-code files it is different.
As Hakan already said you use the " ; " there.
as an example:
As Hakan already said you use the " ; " there.
as an example:
Code:
; MACROCOMMAND=
; MACRODEFAULTS=
; MACROIMAGE=go_to_home.svg,1,1
O<go_to_home> sub
G0 G53
G28 Z0
G28 X0 Y0
O<go_to_home> endsub
M2
Please Log in to join the conversation.
4 years 4 months ago #246023
by Craig E
Replied by Craig E on topic My Z touch off probe subroutine error
Thank you Hakan and mgm it is clear to me now.
Please Log in to join the conversation.
4 years 4 months ago #246118
by Craig E
Replied by Craig E on topic My Z touch off probe subroutine error
A quick update. The issue was actually that I had activated the Classic Ladder and checked probe in the Advanced Tab in PnCConf wizard and forgot that I did that.
Once I turned off did that and uncommented the other issue everything worked.
Thanks for the help!
Once I turned off did that and uncommented the other issue everything worked.
Thanks for the help!
Please Log in to join the conversation.
Time to create page: 0.093 seconds
