Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 10:44:48 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  Checking for movement
Pages: 1   Go Down
Print
Author Topic: Checking for movement  (Read 839 times)
0 Members and 1 Guest are viewing this topic.
muecker
Active Member

Offline Offline

Posts: 8


View Profile
« on: December 27, 2006, 12:58:01 PM »

I have an issue with the IsMoving() function. I'm trying to run it in a macro pump and everytime i use it i get an error with "cannot find recovery points, Solution too complex". I'm trying to use it in conjuntion with a door switch to pause the program. Code looks like this:

Moving = IsMoving()
DoorOpen = IsActive(Input4)
If DoorOpen and Moving then
      call DoOEMButton (1001)         'Set Safety Fault if door open and moving   
      call DeActivateSignal (Output7)
      call SetUserLED (1024,1)
Else
End If

If i rem out the Moving = IsMoving(), then it will run, but does not stop when the door is opened, since moving = false. And i want this action to happen only if it is moving and the door is open, not if the door is open only. Any ideas?

Thanks,
Max
Logged
Chaoticone
South Carolina, US
Administrator
*
Offline Offline

Posts: 3,598


Precision Chaos



View Profile WWW
« Reply #1 on: December 27, 2006, 01:10:35 PM »

Hi Max,
    I know nothing of code, but thought this may intrest you. You could wire your switch to input one and check this box in general config. See pic.


* ScreenHunterc_612-27-06.jpg (8.34 KB, 255x142 - viewed 175 times.)
Logged

Grin If you could see the things I have in my head, you would be laughing too. Grin
www.precisionchaos1.com
My guard dog is not what you need to worry about!
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!