Functioning Fadal conversion from Gmoccapy to Probe Basic

More
3 years 10 months ago #259676 by Lcvette
this is from the sim for M13 which is home carousel subroutine:

o<m13> sub

; Move tool carousel CW until ATC zero
; Parameter #5170 is used to track the current tool pocket (persistently)
(print, o<M13> P#<p>)

(DEBUG, EVAL[vcp.getWidget{"dynatc"}.atc_message{"REFERENCING"}])

M64 P3 ; Move Motor FWD
M66 P3 L1 Q20
O120 if [#5399 LT 0]
    (abort, failed to home carousel)
    M65 P3; stop motor
O120 endif
#5170 = 1
M65 P3 ; Stop motor
#5171 = 1

(DEBUG, EVAL[vcp.getWidget{"dynatc"}.atc_message{}])

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

M61 Q#5231 G43 H#5231 #5210 = 0

o<m13> endsub [1]

M2



I don't know your config or atc setup so no idea where it would go.  these commands are found throughout all of the subroutines and for it to function you will need to place them in the same/similar places in your macros or carousel component.  it has a been a very long time since I was playing with the atc stuff with Turboss and I do not remember if the carousel will only work if it references to the home #1 pocket position to start the initial synchronization or if a different method that requires no motion and may leave the platter indexed to a pocket that is not pocket #1 will also work.
The following user(s) said Thank You: COlger81

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

More
3 years 10 months ago #259677 by COlger81
Lcvette

I can sort through the macros if needed but by chance do you have a list of the ATC widget commands? I'm not great with qtpyvcp yet. I have managed to sync the widget turret reference and tool # with my actual turret, slowly getting there.

Thank You

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

More
3 years 10 months ago #259683 by COlger81
A problem you'll run into is using the var parameter file to save parameters and starting at 5190 only gives you 19 tools until you get to 5210, why not store the parameters in as P1, P2, P3, P4, etc in the tool table under the pocket variable of the tool they're assigned to?

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

More
3 years 10 months ago - 3 years 10 months ago #259685 by COlger81
If somebody with a 21 pocket or more tool changer modifies your ATC sim starting at 5190, they're going to be over writing stuff that'll cause them a crash.
Last edit: 3 years 10 months ago by COlger81.

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

More
3 years 10 months ago #259701 by Lcvette
When those were written some 6 years ago, there was an issue preventing using pockets, there were many issues with the Tool table actually, limited to 54 tools etc.. this method was used to circumnavigate those issues and limitations. I haven't kept up enough with the tool table and pocket updates to know where it has progressed too. But yes the var file method requires additional parameter slots for more tools.

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

More
3 years 10 months ago #259702 by Lcvette
I don't have a list, there aren't many and only in the Mxx macros in the subroutine folderin the sim config

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

Moderators: KCJ, Lcvette
Time to create page: 0.365 seconds
Powered by Kunena Forum