Hello Guest it is May 24, 2019, 11:49:50 PM

Author Topic: operating relays  (Read 1982 times)

0 Members and 1 Guest are viewing this topic.

Offline comet

*
  •  315 315
    • View Profile
operating relays
« on: February 08, 2010, 10:09:36 AM »
Hi,
 I need to operate some relays to opreate work clamps etc.
I know I can use spare coolant g code, but how do you do it without
using g04 Is there spare g or m numbers that can be used?
   Tony

Offline Hood

*
  •  25,817 25,817
  • Carnoustie, Scotland
    • View Profile
Re: operating relays
« Reply #1 on: February 08, 2010, 11:27:09 AM »
You can make up custom macros and have the dwell in the macro itself then you would just call the macro with the M code you called it, for example if you called the macro m123.m1s, you would call m123.

Hood

Offline comet

*
  •  315 315
    • View Profile
Re: operating relays
« Reply #2 on: February 08, 2010, 12:21:55 PM »
Thanks, but that leads to the question,how do you do macro's?

Offline Hood

*
  •  25,817 25,817
  • Carnoustie, Scotland
    • View Profile
Re: operating relays
« Reply #3 on: February 08, 2010, 06:33:59 PM »
Well you could have something like

Activate Signal (OutPut3)
Sleep (2000)

What that would do is switch on output 3 then wait for 2 seconds then Mach would again carry on.
To switch the output off you would write another macro and have

DeActivateSignal(OutPut3)
Sleeep(2000)


Hood