Home
Downloads
Mach and LazyCam
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
German Forum
Italian Forum
Portugese Forum
Resources
Links
User Reviews
User Videos
Contact Us
CNCZone
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
December 02, 2008, 08:07:45 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Select from and to languages
Chinese-simp to English
Chinese-trad to English
English to Chinese-simp
English to Chinese-trad
English to Dutch
English to French
English to German
English to Greek
English to Italian
English to Japanese
English to Korean
English to Portuguese
English to Russian
English to Spanish
Dutch to English
Dutch to French
French to English
French to German
French to Greek
French to Italian
French to Portuguese
French to Dutch
French to Spanish
German to English
German to French
Greek to English
Greek to French
Italian to English
Italian to French
Japanese to English
Korean to English
Portuguese to English
Portuguese to French
Russian to English
Spanish to English
Spanish to French
Machsupport Forum
Mach Discussion
VB and the development of wizards
VB script to get and set Z inhibit
Pages:
1
Go Down
« previous
next »
Author
Topic: VB script to get and set Z inhibit (Read 287 times)
0 Members and 1 Guest are viewing this topic.
camwoodguy
Active Member
Offline
Posts: 3
VB script to get and set Z inhibit
«
on:
August 07, 2008, 06:08:43 AM »
I'm hoping I can get a little help with this one. I've written and ATC macro, things were going along well, so I loaded up some tool and clicked on the Z inhibit to keep from crashing and.........problem. The Z inhibit prevents the machine from going to the proper location.
So I added this to my script:
Cur_Z_Inhibit = GetOemLed(52) 'get the state of the z inhibit for later use
If Cur_Z_Inhibit = 1 Then ' if the Z inhibit is active
dobutton(167) ' push the Z inhibit button to turn it off
While ISMoving() ' wait for it
Sleep 100 'wait for it
Wend ' done waiting
End If 'end condition statement
BUT NOTHING HAPPENS. The led flashes thru the entire atc macro. Any Ideas???
Thanks all.
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Online
Posts: 770
Briceville, TN, USA
Re: VB script to get and set Z inhibit
«
Reply #1 on:
August 07, 2008, 04:09:51 PM »
Try: doOEMbutton(167)
Logged
All things Mach3, Screens, Wizards, Plugins, Brians, complete control solutions for complex machines, Macros, ATC's, any kind of CNC machine build, retrofit or repair.
camwoodguy
Active Member
Offline
Posts: 3
Re: VB script to get and set Z inhibit
«
Reply #2 on:
August 09, 2008, 06:06:51 AM »
poppabear,
Here's what i did. Made the change to doOEMbutton(167)
no luck
So, I made a new button and programmed it to doOEMbutton(167)
when I press the button it turned of the z inhibit, so I'm sure that that line of code is correct.
Next I commented the surrounding lines of code except the doOEMButton(167) in my script.
That turned it off. Ok making progress.
Then I changed the If statement to: If getoemled(52) = 1 and tried that.
Still no luck. It has to be in the If /Then statement but I'm ........
Inhibited (so to speak)
Logged
Ron Ginger
Active Member
Online
Posts: 266
Re: VB script to get and set Z inhibit
«
Reply #3 on:
August 09, 2008, 08:02:43 PM »
The while IsMoving loop is not needed here, thats only when Gcode is being executed and you need to wait for it to complete. That probably doesnt hurt anything, since there is nothing moving it falls right thru.
Try the if test like this:
IF Cur_Z_Inhibit then
DoOEMbutton(167)
END IF
TRUE should be 1, but any positive number is OK, so maybe the LED function is returning some other positive number.
Logged
camwoodguy
Active Member
Offline
Posts: 3
Re: VB script to get and set Z inhibit
«
Reply #4 on:
October 08, 2008, 07:39:48 AM »
Ron,
U-DA-MAN
Worked
Sorry for the slang, but suddenly I'm felling un-inhibited!!!!
Logged
Pages:
1
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Mach Discussion
-----------------------------
=> General Mach Discussion
=> Mach3 under Vista
=> Quantum
=> Mach SDK plugin questions and answers.
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*e*i*n*g
=> Mach Screens
=> Feature Requests
=> Non English Forums
=> FAQs
===> Finished Plugins for Download
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
-----------------------------
*****VIDEOS*****
-----------------------------
=> *****VIDEOS*****
-----------------------------
General CNC Chat
-----------------------------
=> Share Your GCode
=> Show"N"Tell ( What you have made with your CNC machine.)
=> Building or Buying a Wood routing table.. Beginnners guide..
=> Show"N"Tell ( Your Machines)
-----------------------------
G-Code, CAD, and CAM
-----------------------------
=> G-Code, CAD, and CAM discussions
=> Lazy Cam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> dspMC/IP motion controller
=> Third party software and hardware support forums.
=> Newfangled Solutions Wizards
=> Mach3 and G-Rex
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Promote and discuss your product .
=> Sieg Machines
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
=> One on one phone support.
=> Forum suggestions and report forum problems.
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
Loading...