Page 1 of 1

Question about macro structure

PostPosted: Wed Jan 04, 2023 12:05 am
by valhallaCNC
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

Re: Question about macro structure

PostPosted: Wed Jan 04, 2023 1:28 am
by Battwell
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