Question about macro structure

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

Question about macro structure

Postby valhallaCNC » Wed Jan 04, 2023 12:05 am

I have a control panel, using pokeys57e via modbus for my I/O card . There are 28 buttons that I monitor , 3 rotary encoders that are for Speed , feed , and jog. There are also 12 lights that I control. I use 3 separate macros that are grouped by my panel functions. Button monitoring, encoders and light outputs. Everything works fine . The question I have, is it better , more efficient to do it this way or better to combine them into 1 master macro ? Any of you macro writers have any thoughts chime in .
Thanks Joe
valhallaCNC
 
Posts: 81
Joined: Wed Jun 30, 2021 8:04 pm

Re: Question about macro structure

Postby Battwell » Wed Jan 04, 2023 1:28 am

I did similar using one macroloop
As long as you don’t have delays it runs extremely fast. Plenty for a control panel.
See https://youtu.be/Mxr_4iRQsdQ
And 2 previous videos
Uc300eth on router and mill.
UK uccnc powered machine sales. https://cncrouter.uk/atc-cnc-routers.htm
Automateanything/duzzit cnc/mercury cnc
Battwell
 
Posts: 867
Joined: Sun Sep 25, 2016 7:39 pm
Location: South Wales. Uk


Return to Ask a question from support here

Who is online

Users browsing this forum: No registered users and 27 guests