Touch plate error

More
06 Jun 2021 22:32 #211365 by mb_cnc
Touch plate error was created by mb_cnc
Hello, When running the touch plate routine I'm getting the error message "Parameter file name not found" and the tool table file isn't getting updated with the new length.

SilverDragon
Linuxcnc 2.9 from buildbot.

thanks

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

More
06 Jun 2021 23:11 #211386 by andypugh
Replied by andypugh on topic Touch plate error
This sounds like a mis-match between your INI file and the files in your config.

Can you paste the _exact_ error message, including which file is not found, and also attach the INI file from your config folder?

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

More
09 Jun 2021 01:54 #211577 by mb_cnc
Replied by mb_cnc on topic Touch plate error
Andy, thanks for the reply. Here is what I think you were asking for but I'm not sure what file is missing? Or could it be a missing parameter and not a file?

--- Qtvcp Screen Started on: Tue, Jun 08 2021 07:41:17 PM ---
Tue08 19:41 Machine OFF
Tue08 19:41 Hard limits tripped
Tue08 19:41 Tool 0: No Tool
Tue08 19:41 Machine ON
Tue08 19:42 Loaded tool 5
Tue08 19:42 Tool 5: 12D X 12S X 35CL X 75L X 3F X US STRAIGHT
Tue08 19:42 Touchoff to touchplate started
Tue08 19:42 Parameter file name is missing
Tue08 19:43 Saving Status file to status_07:43:36_PM.txt
Tue08 19:43 Saving Status file to status_07:43:37_PM.txt
Attachments:

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

More
09 Jun 2021 04:53 #211588 by cmorley
Replied by cmorley on topic Touch plate error
I get that message alot when linuxcnc aborts -I haven't trued to track it done yet.
The parameter file name is fine (in my case - in master)

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

More
11 Jun 2021 14:21 #211809 by andypugh
Replied by andypugh on topic Touch plate error
[RS274NGC]
#PARAMETER_FILE = qtdragon.var
PARAMETER_FILE = linuxcnc.var

Does the linuxcnc.var file exist?

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

More
12 Jun 2021 03:26 #211849 by mb_cnc
Replied by mb_cnc on topic Touch plate error
Andy, yes the file linuxcnc.var does exist in the machine config folder. I created another machine with pncconf as a test and it is coming up with the same error as well?

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

More
13 Jun 2021 15:28 #211946 by mb_cnc
Replied by mb_cnc on topic Touch plate error
The error happens during the running of the touch plate routine. It is after the measurement step and what seems to be a missing formula variable, missing file or a writing error. Not sure? Any help would be appreciated.

thanks

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

More
15 Jun 2021 22:52 #212150 by andypugh
Replied by andypugh on topic Touch plate error
Can you show us the code of the touch plate routine? Is it built-in to Silverdragon?

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

More
17 Jun 2021 03:00 #212255 by mb_cnc
Replied by mb_cnc on topic Touch plate error
I searched and It seemed built in so I downloaded the source code to see. Here is what seems to be the code located in qtdragon_handler.py.

def touchoff(self, selector):
if selector == 'touchplate':
z_offset = float(self.w.lineEdit_touch_height.text())
elif selector == 'sensor':
z_offset = float(self.w.lineEdit_sensor_height.text()) - float(self.w.lineEdit_work_height.text())
else:
self.add_status("Unknown touchoff routine specified")
return
self.add_status("Touchoff to {} started".format(selector))
max_probe = self.w.lineEdit_max_probe.text()
search_vel = self.w.lineEdit_search_vel.text()
probe_vel = self.w.lineEdit_probe_vel.text()
ACTION.CALL_MDI("G21 G49")
ACTION.CALL_MDI("G10 L20 P0 Z0")
ACTION.CALL_MDI("G91")
command = "G38.2 Z-{} F{}".format(max_probe, search_vel)
if ACTION.CALL_MDI_WAIT(command, 10) == -1:
ACTION.CALL_MDI("G90")
return
if ACTION.CALL_MDI_WAIT("G1 Z4.0"):
ACTION.CALL_MDI("G90")
return
ACTION.CALL_MDI("G4 P0.5")
command = "G38.2 Z-4.4 F{}".format(probe_vel)
if ACTION.CALL_MDI_WAIT(command, 10) == -1:
ACTION.CALL_MDI("G90")
return
command = "G10 L20 P0 Z{}".format(z_offset)
ACTION.CALL_MDI_WAIT(command)
command = "G1 Z10 F{}".format(search_vel)
ACTION.CALL_MDI_WAIT(command)
ACTION.CALL_MDI("G90")
Attachments:

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

More
18 Jun 2021 04:28 #212308 by cmorley
Replied by cmorley on topic Touch plate error
I can get this error message by aborting running code.
but not in all qt screens.

with print statements I can see the cc code is getting the right ini/param file.
This is a mystery.

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

Moderators: cmorley
Time to create page: 0.117 seconds
Powered by Kunena Forum