Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: Kenneth on January 21, 2014, 08:57:35 AM

Title: IsMoving
Post by: Kenneth on January 21, 2014, 08:57:35 AM
not sure i understand IsMoving. doesn't that mean when
ANY axis is moving ? i'm trying to get a ticker going and
the below only does the Else, not the If :)  hope that explains it.
i want the ticker to say something while the machine is motionless
and not say anything while any axis is moving.
Thanks


If IsMoving() Then
SetTicker(1 , "  Moving  ")
Sleep 2000
Else
SetTicker(1 , "       Raven Research")
Sleep 2000
End If
Title: Re: IsMoving
Post by: Kenneth on January 21, 2014, 11:00:06 AM
apparently i was wrong. it does work while axis is moving.
but it doesn't change once movement stops/starts.
looks like i can only do this with a button, don't want.
is it possible to use a user ticker in the brain ? i couldn't
see how.
Thanks
Title: Re: IsMoving
Post by: ger21 on January 21, 2014, 11:12:24 AM
How are you running the macro? I think you need to run it as a macropump for it to work.
Title: Re: IsMoving
Post by: Kenneth on January 21, 2014, 11:17:55 AM
a script in the vb editor.
i tried in macropump and works.
Thanks gerry
Title: Re: IsMoving
Post by: Kenneth on January 21, 2014, 11:34:44 AM
so anything i want running all the time needs to be in the macropump Cool..
what's ChargePump On in Estop in the settings ?
Title: Re: IsMoving
Post by: ger21 on January 21, 2014, 11:58:48 AM
I think it leaves the Chargepump on during an Estop.