Page 2 of 2

Re: Sending a keypress to UCCNC

PostPosted: Fri Aug 10, 2018 5:09 pm
by cncdrive
A macroloop is the same as a macro, the language is the same, but a macroloop as it's name says runs infinately so you can do/update things periodically.

Re: Sending a keypress to UCCNC

PostPosted: Fri Aug 10, 2018 5:40 pm
by jvalencia
Hello admin. What's the limitation that stops running a macro when the cycle is active?

I have this simple macro attached to a hotkey and it works, but not when a cycle is running.

M20000.txt
Code: Select all
AS3.Setfield(0, 232);
AS3.Validatefield(232);

Re: Sending a keypress to UCCNC

PostPosted: Fri Aug 10, 2018 5:51 pm
by cncdrive
Macros don't run when there is cycle or MDI cycle. Macroloops do.

Re: Sending a keypress to UCCNC

PostPosted: Fri Aug 10, 2018 6:29 pm
by jvalencia
jvalencia wrote:Hello admin. What's the limitation that stops running a macro when the cycle is active?

I have this simple macro attached to a hotkey and it works, but not when a cycle is running.

M20000.txt
Code: Select all
AS3.Setfield(0, 232);
AS3.Validatefield(232);


So my only solution now is to use the serial port in a macroloop AFAIK.

I'll try next week then, thanks ;)

Re: Sending a keypress to UCCNC

PostPosted: Sat Aug 11, 2018 1:06 pm
by dezsoe
You could write a plugin to handle the keypresses and it works also while cycle is running. Then you don't need to program serial communication.

Re: Sending a keypress to UCCNC

PostPosted: Sun Aug 12, 2018 5:17 pm
by jvalencia
I gave modbus another chance and now it's working. Last time I had problems with it but for now it works.

Let me cross my fingers...

This is the control box btw. It has Cycle Start (green), Feed override (potentiometer, 0-100%) and Reset.

IMG_20180812_181517.jpg

Re: Sending a keypress to UCCNC

PostPosted: Thu Sep 20, 2018 11:42 am
by A_Camera
jvalencia wrote:I gave modbus another chance and now it's working. Last time I had problems with it but for now it works.

Let me cross my fingers...

This is the control box btw. It has Cycle Start (green), Feed override (potentiometer, 0-100%) and Reset.

IMG_20180812_181517.jpg

Cool. What's in the box? Arduino...?