ATC general help required

If you have a question about the software please ask it here.

ATC general help required

Postby dimmaz88 » Thu Jul 28, 2022 2:32 pm

Hello, I have an 8x4 machine that I converted from Chinese control system to UCCNC a couple of years ago.

I have the UB1 + UC300ETH combo. I've just got myself an ATC spindle and I'm struggling a bit with how to set it up.

If I give a brief description on what I want to achieve, could someone possibly give me a few pointers on where to start..?

I'm hoping I'll have enough space for a stationary tool rack to simplify matters, but if not I'll need to implement a sliding rack.

I will also need to activate pistons on the dust shoe to retract it.

I would also like to probe after each tool change to set tool length.

I know I'll have to write a macro, can any programming language be used?

Any help is appreciated.

Scott
dimmaz88
 
Posts: 27
Joined: Mon Jun 13, 2022 9:22 am

Re: ATC general help required

Postby ger21 » Thu Jul 28, 2022 3:16 pm

You can start with the default M6 macro, and add what you need to that.
Just ask for whatever you need to do, but don't know how.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am

Re: ATC general help required

Postby dimmaz88 » Fri Jul 29, 2022 8:20 am

Thanks Gerry, why didn't I think of looking at the stock M6!? :lol:

Although I'm no coder I get the gist of what's going on, I'll have a proper read through it and come back with any questions (probably 100s).
dimmaz88
 
Posts: 27
Joined: Mon Jun 13, 2022 9:22 am

Re: ATC general help required

Postby dimmaz88 » Sun Jul 31, 2022 9:22 am

Hi all, I've been going through the M6 macro and the UCCNC macro PDF. I don't understand what the IsMoving function does.

Am I right in thinking the Setoutpin is just used to turn on a switch and hold it on, so it activates an air switch for exmple? And [b]Clroutpin[b] will turn it off, clear it?

So if the above is true, could I set my own parameters and use the same commands to activate a piston to open the dust shoe or move the tool rack?

e.g.

int DustShoePort = 1;
int DustShoePin = 16;



TIA

Scott
dimmaz88
 
Posts: 27
Joined: Mon Jun 13, 2022 9:22 am

Re: ATC general help required

Postby dimmaz88 » Mon Aug 01, 2022 9:17 pm

Anyone?
dimmaz88
 
Posts: 27
Joined: Mon Jun 13, 2022 9:22 am

Re: ATC general help required

Postby Daywalker » Tue Aug 02, 2022 4:38 am

Hi Dimmaz,

At the Macro Section you will finde some examples for a ATC-Macro.

To your Question. Yeah, you can define own Parameters at the Beginning like "int DustShoePin = 1;" or something and use it in the Macro.

Example:

exec.Setoutpin(DustShoePin, DustShoePort);



As mentioned, there are some examples here in the Macro Section.

What also helps a lot is the PDF instructions for writing macros: https://drive.google.com/drive/folders/0B9eqGqWQVBbWNVhsZkdfQWRaYTg?usp=sharing
Regards from Germany
Udo

(UC300ETH & UB1)
[Yeah, I use a Translator ;-) ]
Daywalker
 
Posts: 29
Joined: Sun Jul 29, 2018 8:11 am

Re: ATC general help required

Postby dimmaz88 » Tue Aug 02, 2022 7:52 am

Thank you.

I've read the macro PDF for UCCNC I just can't get my head round what the isMoving command is used for.

I'll have a read through the macro guide you link to.
dimmaz88
 
Posts: 27
Joined: Mon Jun 13, 2022 9:22 am

Re: ATC general help required

Postby ger21 » Tue Aug 02, 2022 11:06 am

I just can't get my head round what the isMoving command is used for.


The IsMoving waits until the previous movement is complete before the macro continues. Without it, the macro would start doing things before it was supposed to.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am

Re: ATC general help required

Postby dimmaz88 » Thu Aug 11, 2022 1:39 pm

Thank you so far.

I have the default M6 edited now, and it works well to a certain extent.

The only thing I'm drawing a blank with is;
a. When I close down my machine and restart, it doesn't remember the previous sessions tool number. Is there a way of having UCCNC remember tool in the spindle? Or manually telling it which tool is in?
b. How do I make it so the macro references tool slot positions, rather than tool numbers?

I've searched a lot but haven't found what I'm looking for.

EDIT- Tried adding my M6 but kept getting an error.
dimmaz88
 
Posts: 27
Joined: Mon Jun 13, 2022 9:22 am

Re: ATC general help required

Postby ger21 » Thu Aug 11, 2022 3:16 pm

b) What I would do is add an ATC screen, with fields for slots, so you can enter the tool number in the slot. Then modify the M6 macro to utilize the slot numbers.

a) Use the M999999 macro to save the current tool to your profile, when UCCNC closes, and use the M99998 macro to set it back to the current tool when UCCNC starts.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am

Next

Return to Ask a question from support here

Who is online

Users browsing this forum: No registered users and 38 guests