Macros

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

Re: Macros

Postby ger21 » Tue Apr 01, 2025 8:25 pm

Capital C in code.

Code: Select all
// Macro to toggle Output 1 (Port 1) 5 times

int LOOP_COUNT = 0;

while (LOOP_COUNT < 5)
{
  exec.Setoutpin(1,1);
  exec.Code ("G4 P0.5");

  exec.Clroutpin(1,1);
  exec.Code ("G4 P0.5");

  LOOP_COUNT++;

}
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2796
Joined: Sat Sep 03, 2016 2:17 am

Re: Macros

Postby Phil1322 » Wed Apr 02, 2025 12:54 pm

Thanks Gerry, I'll give this ago later when I'm back
Phil1322
 
Posts: 20
Joined: Sun Jan 19, 2020 7:41 pm

Re: Macros

Postby Phil1322 » Wed Apr 02, 2025 3:01 pm

Yes, Gerry, that's the one, it works!

Thank you for your help with this!!

I can get on with testing Relays and Solenoid Valves now...


Cheers,


Phil
Phil1322
 
Posts: 20
Joined: Sun Jan 19, 2020 7:41 pm

Previous

Return to Ask a question from support here

Who is online

Users browsing this forum: No registered users and 5 guests