Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: Vilmill on January 24, 2013, 12:18:14 PM

Title: Do mist M7 While IsMoving
Post by: Vilmill on January 24, 2013, 12:18:14 PM
I need som help
the problem is to activate 2 outputs for Mist


if M7 is aktivate i gcode
 and S0 >0
      if X is moving either +X or -X = activate outputs(11)
   
     if Y is moving either +Y or -Y =   activate outputs(10)
         
How do i do this
(I'm new at this, and am not very good at this VB)
Title: Re: Do mist M7 While IsMoving
Post by: BR549 on January 24, 2013, 02:16:07 PM
If   GetOemDro(12) AND GetDro(6) >0 then activateSignal(output10)   '  If M7 then Activate output on X movement

If    GetOemDro(12) AND GetDro(7) >0 then ActivateSignal(ouput(11)  ' If M7 then activate output on Y movement

It is all in the manuals (;-),

(;-) TP