qtpyvcp stored parameters

More
13 Sep 2020 14:11 - 13 Sep 2020 14:13 #182012 by anfänger
Hi,,

maybe this is stupid question again, but where can I din a list of stored parameters qtpyvcp ist using?
The reason is simple I want to know what tool was in the spindle before shutdown.
qtpyvcp ist restoring the the tool after homing. But I would like to know the tool number before homing.
And I think qtpyvcp is doing this with a parameter.

I have a m-code restoring the tools in atc after startup and I want to know if one of the tools is in the tool changer.
The reason for this is, I need to cool the bearings if my tool changer and want to set the signal while powering up.
I can manage already when changing tools, but not on startup.

Thanks Patrick
Last edit: 13 Sep 2020 14:13 by anfänger.

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

More
13 Sep 2020 15:49 - 13 Sep 2020 16:31 #182017 by TurBoss
Replied by TurBoss on topic qtpyvcp stored parameters
persistent data is stored with the "data_manager" plugin

read: github.com/kcjengr/qtpyvcp/blob/master/q...s/tool_table.py#L156
write: github.com/kcjengr/qtpyvcp/blob/master/q...s/tool_table.py#L205



kudos go to @KCJ
Last edit: 13 Sep 2020 16:31 by TurBoss.
The following user(s) said Thank You: KCJ, anfänger

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

More
14 Sep 2020 05:40 #182053 by anfänger
Replied by anfänger on topic qtpyvcp stored parameters
Thanks,
can I access the „data_manager“ from M-Code?
Or otherwise fill the widget from python?
At the moment I am filling my atc widget this way:

#1 = 0
o130 while [#1 LT 12]
    #1 = [#1+1]
    #2 = #[5189+#1]
    (DEBUG, EVAL[vcp.getWidget{"dynatc"}.store_tool{#1, #2}])
o130 endwhile

And I want something like this (it‘s happening before homing, so qtpyvcp did not set the tool in spindle yet):
#1 = 0
o130 while [#1 LT 12]
    #1 = [#1+1]
    #2 = #[5189+#1]
    o135 if [#<tool_in_spindle]> eq #2] 
               M135 P1
    o135 endif
    (DEBUG, EVAL[vcp.getWidget{"dynatc"}.store_tool{#1, #2}])
o130 endwhile

As an alternative to M135 I can manipulate a hal button

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

Moderators: KCJLcvette
Time to create page: 0.113 seconds
Powered by Kunena Forum