Hello Guest it is October 21, 2021, 10:50:20 PM

Author Topic: IsMoving  (Read 2826 times)

0 Members and 1 Guest are viewing this topic.

IsMoving
« 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
« Last Edit: January 21, 2014, 08:59:20 AM by Kenneth »
Kenneth
Re: IsMoving
« Reply #1 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
Kenneth

Offline ger21

*
  • *
  •  6,293 6,293
    • View Profile
    • The CNC Woodworker
Re: IsMoving
« Reply #2 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.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: IsMoving
« Reply #3 on: January 21, 2014, 11:17:55 AM »
a script in the vb editor.
i tried in macropump and works.
Thanks gerry
Kenneth
Re: IsMoving
« Reply #4 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 ?
Kenneth

Offline ger21

*
  • *
  •  6,293 6,293
    • View Profile
    • The CNC Woodworker
Re: IsMoving
« Reply #5 on: January 21, 2014, 11:58:48 AM »
I think it leaves the Chargepump on during an Estop.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html