Bad character '0' used - Setting up touch plate

More
03 Feb 2021 00:17 - 03 Feb 2021 00:19 #197496 by ReduX_Hz
Hey everyone, new to the forums here.

I am trying to set up a touch plate and am using HAL for the first time (learning a lot). I followed this video on how to add it, and when I click the Z Touch Plate button I get "Bad character '0' used" error in the lower right.

I was wondering if someone could take a look at my config to see if I have something spelled wrong, or a 0 for a O somewhere.

I appreciate anyone taking the time to look!

drive.google.com/drive/folders/1mfCYCocj...FgXpP2MY?usp=sharing
Last edit: 03 Feb 2021 00:19 by ReduX_Hz.

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

More
03 Feb 2021 06:29 #197522 by Michael
I can't look at this on my phone currently as the file type is unsupported.

But I get this error when I have a bad line of g code entered. Something like G1 F35 Z0. instead of G1 F35 Z0

Linuxcnc doesn't accept a decimal without numbers behind it. .450 or 0.450 are fine but when you enter a 0. something it wants more numbers or no decimal of it's just zero. Being a touch off I am guessing you have this typo in there somewhere.

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

More
03 Feb 2021 23:02 #197604 by andypugh
0 <z_touch> sub
G10 L20 P0 Z0		(set current Z = 0)
G91					(switch to relative coordinates)
G38.2 Z-10 F25		(probe down using a fast feedrate)
G92 Z5.0			(set Z = plate thickness)
G0 Z.1 F10			(move up by 0.1mm)
G38.2 Z-1 F1		(2nd pass: probe down using a slow feedrate to get better accuracy)
G92 Z5.0			(set Z = plate thickness)
G90					(switch to absolute coordinates)
G0 Z10 F25			(move to 10mm above work piece)
0 <z_touch> endsub

You have "zero" <z_touch> in two places, it should be "O <z_touch>"

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

More
08 Feb 2021 20:57 #198069 by ReduX_Hz
Sorry for the delayed reply, I just became a Dad a couple of day ago and am now catching up on computer stuff.

I will go back and check both of those things. Thank you guys!

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

Time to create page: 0.097 seconds
Powered by Kunena Forum