ATC Macro projekt

This is where you talk about Macros, show examples of your macro scripting and SHARE handy segments of script code as examples.

ATC Macro projekt

Postby JeeyBee » Wed Feb 22, 2017 11:28 am

I´m retrofitting a Brother TC211 for UCCNC and now its time for the toolchange macro.
First of all, where do I find documentation about the macro programming and reference syntax?
JeeyBee
 
Posts: 20
Joined: Wed Feb 22, 2017 11:11 am

Re: ATC Macro projekt

Postby JeeyBee » Wed Feb 22, 2017 11:55 am

Aah I looked there but I only registered the PDF files :D
I attached two pictures but they did not seem to show?

Ugh C#, why cant everybody stick with VB :)
JeeyBee
 
Posts: 20
Joined: Wed Feb 22, 2017 11:11 am

Re: ATC Macro projekt

Postby JeeyBee » Wed Feb 22, 2017 12:27 pm

Is it possible to debug the code?
JeeyBee
 
Posts: 20
Joined: Wed Feb 22, 2017 11:11 am

Re: ATC Macro projekt

Postby Battwell » Wed Feb 22, 2017 1:24 pm

if you look in your profile macro folder (in main uccnc directory) you will see macro errors.
make a shortcut to this file- on desktop etc.
it gives a good indication of errors.
note uccnc macros can be finiky about capitals etc-
it updates after every macro error at runtime
Uc300eth on router and mill.
UK uccnc powered machine sales. https://cncrouter.uk/atc-cnc-routers.htm
Automateanything/duzzit cnc/mercury cnc
Battwell
 
Posts: 819
Joined: Sun Sep 25, 2016 7:39 pm
Location: South Wales. Uk

Re: ATC Macro projekt

Postby JeeyBee » Wed Feb 22, 2017 1:44 pm

More questions
Whats the string to get a digital input?
Like setoutput port pin but instead get input port pin.

Got it "GetLED"
JeeyBee
 
Posts: 20
Joined: Wed Feb 22, 2017 11:11 am

Re: ATC Macro projekt

Postby JeeyBee » Thu Feb 23, 2017 7:51 pm

Done!
The toolchanger is controlled with an arduino.
https://youtu.be/10IQWyFWIfs
Attachments
IMG_20170222_121758-744x992.jpg
IMG_20170222_121824-992x744.jpg
JeeyBee
 
Posts: 20
Joined: Wed Feb 22, 2017 11:11 am

Re: ATC Macro projekt

Postby cncdrive » Thu Feb 23, 2017 10:01 pm

Wow, nice job, you finished with this pretty fast. :)
Are you using the UCCNC modbus plugin to send data to the Arduino which then controls the ATC?
cncdrive
Site Admin
 
Posts: 4695
Joined: Tue Aug 12, 2014 11:17 pm

Re: ATC Macro projekt

Postby JeeyBee » Fri Feb 24, 2017 10:46 am

Thanks :)
I thought it would be a good thing to take one thing at a time so I made it simple so that UCCCNC i sending a combination of four signals that is the same as the toolchanger gives the arduino.
The little bit tricky thing was that I cant wait for the right signals on the toolchanger because then its too late to stop it and it will move on past the right position so I had to count the positions and then verify it with the sensors.

Attached is the macro if anyone is interrested.
Attachments
M6.txt
(4.83 KiB) Downloaded 1030 times
JeeyBee
 
Posts: 20
Joined: Wed Feb 22, 2017 11:11 am

Re: ATC Macro projekt

Postby lp_felix » Sun Apr 17, 2022 9:01 am

Hi

How can you prevent the user to move Z up until reach atc zone?
lp_felix
 
Posts: 26
Joined: Tue Sep 06, 2016 3:11 pm


Return to Macros

Who is online

Users browsing this forum: Bing [Bot] and 10 guests