DIY Arduino ATC Pathpilot....
27 Jan 2022 21:59 #233322
by Vmax549
Replied by Vmax549 on topic DIY Arduino ATC Pathpilot....
OK I slowed down the PP atc query and that was not the problem so I need to figure out what the exact string info PP is looking for next then see IF it is in the responce string from the Arduino.
Like eating an elephant, one bite at a time..
( TP
Like eating an elephant, one bite at a time..
( TP
Please Log in or Create an account to join the conversation.
27 Jan 2022 22:45 #233323
by Vmax549
Replied by Vmax549 on topic DIY Arduino ATC Pathpilot....
Went back to the Errorlog and it shows a Com timeout issue and it does not see the VE responce. It tried 3 times and failed each time. Pretty much out of ideas to try.
( TP
( TP
The following user(s) said Thank You: snowgoer540
Please Log in or Create an account to join the conversation.
- snowgoer540
- Offline
- Moderator
Less
More
- Posts: 2386
- Thank you received: 779
27 Jan 2022 22:59 #233324
by snowgoer540
Replied by snowgoer540 on topic DIY Arduino ATC Pathpilot....
Wish I had time at the moment to play along…
Please Log in or Create an account to join the conversation.
28 Jan 2022 03:39 #233337
by Vmax549
Replied by Vmax549 on topic DIY Arduino ATC Pathpilot....
Getting closer sometimes it will make it all the way and read the VL info start to act but then looses COM and errors out. AND the ACT gracefully shut back down. You can watch it in the errorlog . I think there is something to disabling the bootloader in Arduino to make it respond faster.
The idea is to use PP as it is not have to rewrite the Hal_atc coding.
Enough for today. It has been a long one.
( TP
The idea is to use PP as it is not have to rewrite the Hal_atc coding.
Enough for today. It has been a long one.
( TP
Please Log in or Create an account to join the conversation.
28 Jan 2022 16:16 #233384
by Vmax549
Replied by Vmax549 on topic DIY Arduino ATC Pathpilot....
Its morning and a couple of pots of coffee later: ITS ALIVE ( Thanks to PathPIlot's very good error reporting AND a couple of extra error reports from ME I figured it out. It is up and running for now.
NOW to take out all the time delays and see IF it still runs ok.
( TP
NOW to take out all the time delays and see IF it still runs ok.
( TP
Please Log in or Create an account to join the conversation.
28 Jan 2022 17:56 #233391
by Vmax549
Replied by Vmax549 on topic DIY Arduino ATC Pathpilot....
Well it will not run without the time delays so now to slowly reduce the time untill it does not work anymore ( BUT that is for a different day. I at least know it can be done with the Arduino MEGA which has TONS of I/O to deal with complex ATCs. The timing mods are in the ~/tmc/configs/tormach_mill/python/hal_zbotatc.py file.
AND a word to the wise be VERY carefull about modding files. ONE mistake and you have a dead machine on your hands and you may have to do a full reload or PP to get it back.
Also I had to make a MOD to the arduino code to set the proper number_of_tools value == 12 otherwise PP failed when comparing the number of tools it thinks is there.. Also the TYPE had to change to 12 as well to match. The Arduino is hardcoded for these values and PP cannot update them even though it tries.
Enough on ATCs and Arduinos for now, ( TP
AND a word to the wise be VERY carefull about modding files. ONE mistake and you have a dead machine on your hands and you may have to do a full reload or PP to get it back.
Also I had to make a MOD to the arduino code to set the proper number_of_tools value == 12 otherwise PP failed when comparing the number of tools it thinks is there.. Also the TYPE had to change to 12 as well to match. The Arduino is hardcoded for these values and PP cannot update them even though it tries.
Enough on ATCs and Arduinos for now, ( TP
Please Log in or Create an account to join the conversation.
- snowgoer540
- Offline
- Moderator
Less
More
- Posts: 2386
- Thank you received: 779
30 Jan 2022 00:43 #233505
by snowgoer540
Replied by snowgoer540 on topic DIY Arduino ATC Pathpilot....
The forum stopped emailing me on this thread for some reason.
At any rate great work!
Can you do me a favor, and post the specific line numbers/lines you changed in the zbot script, with what they were and what you changed them to?
It would be great if you could do the same with the arduino file too.
I do know from the video earlier in this thread that the author was using an Arudino Uno. I wonder if that makes any difference at all with timing.
Lastly, I came across this thread, which was pretty interesting to me: www.cnczone.com/forums/tormach-personal-.../417676-tormach.html
Especially post #9. I did send soofle616 a pm on that forum. Will report back if I get extra info.
At any rate great work!
Can you do me a favor, and post the specific line numbers/lines you changed in the zbot script, with what they were and what you changed them to?
It would be great if you could do the same with the arduino file too.
I do know from the video earlier in this thread that the author was using an Arudino Uno. I wonder if that makes any difference at all with timing.
Lastly, I came across this thread, which was pretty interesting to me: www.cnczone.com/forums/tormach-personal-.../417676-tormach.html
Especially post #9. I did send soofle616 a pm on that forum. Will report back if I get extra info.
Please Log in or Create an account to join the conversation.
30 Jan 2022 22:50 #233587
by Vmax549
Replied by Vmax549 on topic DIY Arduino ATC Pathpilot....
HIYA Snow, I don't think the answer is really in the PP files. The Arduino needs to connect on its own without having to hack the PP code base. Also I have not been able to get the UNO to talk to PP. It never gets by the initial logon. PP never createsa HAL_atc com element based on the rules so PP can never talk to the UNO. Working on that part.
The arduino code you provided needed to have 2 things changed the profile needs to be set to reflect what tool changer you have it is set to a 10 tool changer and most times PP is using a 12 tool changer. ALSO in the code the number aof tools is set to -1 and that needs to be 12.
Hope that helps , ( TP
The arduino code you provided needed to have 2 things changed the profile needs to be set to reflect what tool changer you have it is set to a 10 tool changer and most times PP is using a 12 tool changer. ALSO in the code the number aof tools is set to -1 and that needs to be 12.
Hope that helps , ( TP
The following user(s) said Thank You: snowgoer540
Please Log in or Create an account to join the conversation.
Moderators: cncbasher
Time to create page: 0.101 seconds