Page 1 of 1

ATC Macro projekt

PostPosted: Wed Feb 22, 2017 11:28 am
by JeeyBee
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?

Re: ATC Macro projekt

PostPosted: Wed Feb 22, 2017 11:55 am
by JeeyBee
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 :)

Re: ATC Macro projekt

PostPosted: Wed Feb 22, 2017 12:27 pm
by JeeyBee
Is it possible to debug the code?

Re: ATC Macro projekt

PostPosted: Wed Feb 22, 2017 1:24 pm
by Battwell
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

Re: ATC Macro projekt

PostPosted: Wed Feb 22, 2017 1:44 pm
by JeeyBee
More questions
Whats the string to get a digital input?
Like setoutput port pin but instead get input port pin.

Got it "GetLED"

Re: ATC Macro projekt

PostPosted: Thu Feb 23, 2017 7:51 pm
by JeeyBee
Done!
The toolchanger is controlled with an arduino.
https://youtu.be/10IQWyFWIfs

Re: ATC Macro projekt

PostPosted: Thu Feb 23, 2017 10:01 pm
by cncdrive
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?

Re: ATC Macro projekt

PostPosted: Fri Feb 24, 2017 10:46 am
by JeeyBee
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.

Re: ATC Macro projekt

PostPosted: Sun Apr 17, 2022 9:01 am
by lp_felix
Hi

How can you prevent the user to move Z up until reach atc zone?