Hello
Guest
it is
December 26, 2024, 08:37:01 PM
Guest
Login
Register
Menu
Home
Help
Search
Login
Register
YouTube
Machsupport Forum
/
Mach Discussion
/
General Mach Discussion
/
operating relays
« previous
next »
Print
Pages:
1
Go Down
Author
Topic: operating relays (Read 3793 times)
0 Members and 1 Guest are viewing this topic.
comet
338
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
Logged
Hood
25,835
Carnoustie, Scotland
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
Logged
comet
338
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?
Logged
Hood
25,835
Carnoustie, Scotland
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
Logged
Print
Pages:
1
Go Up
« previous
next »