Page 1 of 2

output activation with macros

PostPosted: Thu Sep 19, 2019 8:36 am
by foxfly
Hi, I need to activate output with a lathe turret macro but I don't know the instruction to select relative ports in uc300eth. I use mach3 with two UCBB1s and I need to activate with macro outputs of different ports.
best regards

Re: output activation with macros

PostPosted: Thu Sep 19, 2019 10:57 am
by ger21
See UCCNC\Documentation\Macro_capability_detailed.htm

Setoutpin

Re: output activation with macros

PostPosted: Thu Sep 19, 2019 1:51 pm
by cncdrive
Gerry, he uses Mach3, this is the Mach3/4 topic of the forum. :)

Re: output activation with macros

PostPosted: Thu Sep 19, 2019 4:05 pm
by foxfly
I have to activate some macro outputs but I have 4 ports connected to 2 UCBBs.
example: ActivateSignal (Output14)
but I have to choose the port 2 or 3 etc ..
best regards

Re: output activation with macros

PostPosted: Thu Sep 19, 2019 6:29 pm
by ger21
Time to switch to UCCNC. :D
While Mach3 seems to have up to 20 outputs (OUTPUT1 to OUTPUT20), I have no idea how you assign port and pin numbers to them.
I don't have Mach3 in front of me, but how many are listed in Ports and Pins > Output pins?

EDIT: It looks like they are all available in Ports and Pins > Output pins. Scroll down to the bottom of the list, and assign your port and pin numbers.

Re: output activation with macros

PostPosted: Thu Sep 19, 2019 6:51 pm
by foxfly
you don't understand, I have to use the outputs with a macro

Re: output activation with macros

PostPosted: Thu Sep 19, 2019 6:55 pm
by cncdrive
They are listed somewhere in the menu system of mach3, you can assing 15 or maybe 20 output port/pin combinations to output1 output2 output3 etc. and then you can call the ActivateSignal on them in macros.
Don't ask me where that setting is in mach3, it was many years I last time used mach3, sorry.

Re: output activation with macros

PostPosted: Thu Sep 19, 2019 6:58 pm
by ger21
I just told you. Go to Config > Ports and Pins > Output pins, and assign a port and pin number to Output14. Then you can use Activatesignal(OUTPUT14).

Re: output activation with macros

PostPosted: Fri Sep 20, 2019 6:14 am
by foxfly
I have 4 ports then there are 4 pins number 14-16-17.
In the macro I have to use all the outputs but I have to specify the related port.

Re: output activation with macros

PostPosted: Fri Sep 20, 2019 8:42 am
by cncdrive
And what is the problem?