Touch plate error

More
5 years 4 months ago #212455 by cmorley
Replied by cmorley on topic Touch plate error
if the command takes lmore then 5 seconds to finish - that will cause an error... not sure why it would be the parameter missing error though.

Does that sound like it might be the problem?

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

More
5 years 4 months ago #212619 by mb_cnc
Replied by mb_cnc on topic Touch plate error
Myscion, I tried hard coding the search velocity with various values and the error message always displays. When displaying the code in message windows it all appears correct. Interestingly the routine has been updating the offset table and positioning the machine correctly so really it's mostly just an annoyance. So if the function is working correctly then what? Maybe it's not exiting the function clean and throwing the error? Not sure.

thanks

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

More
5 years 4 months ago #212621 by mb_cnc
Replied by mb_cnc on topic Touch plate error
Cmorley, I tried speeding up the search and home velocities to test but still the same error message. Good idea to test.

thanks

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

More
5 years 4 months ago #212872 by cmorley
Replied by cmorley on topic Touch plate error

Myscion wrote: I'm battling this right now too, good to see I'm not going crazzy! The strange thing is the Vesa Probe widget works great! This is with QTDragon_HD on the master branch.

.


So I am looking at master, around line 905 and it is different from what you quoted.
So either your master branch is old or you are not using linuxcnc's version or you modified something.
Can you paste the code snip it
Chris

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

More
5 years 4 months ago #213040 by mb_cnc
Replied by mb_cnc on topic Touch plate error
Here is the code, it is from qtdragon_handler.py. master unmodified.

thanks

    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")

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

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