Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 02:05:23 PM

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
| | |-+  jog z manually during macro
Pages: 1   Go Down
Print
Author Topic: jog z manually during macro  (Read 961 times)
0 Members and 1 Guest are viewing this topic.
tripleblack
Active Member

Offline Offline

Posts: 97


View Profile
« on: August 25, 2008, 08:50:47 AM »

hi all.
i am trying to create a macro  for jogging the z during a macro. i want the z to be able to jog manually first, then from input 4 , resume the macro.

i have tried this,

code" g0z1"     'jogs the z to a safe height
while ismoving()
wend
 
'this is when i want to jog the z manually
code "g92z0" ' zero the z axis


SystemWaitFor(INPUT4) 'wait for a push button input

ActivateSignal(OUTPUT1) ' turn on relay 1
code"g4p1" 'pause for 1 second

the macro does not pause.

what am i doing wrong?
thanks

peter








Logged
tripleblack
Active Member

Offline Offline

Posts: 97


View Profile
« Reply #1 on: August 25, 2008, 03:47:36 PM »

anybody?
Logged
Ron Ginger
V4 Screen Contributor

Offline Offline

Posts: 568



View Profile WWW
« Reply #2 on: August 25, 2008, 07:43:41 PM »

Have you checked to see that INPUT 4 is not always active, or is reversed in active low? Does OUTPUT1 go on?

I dont see anything to cause the code to pause where you have the  'this is where I want to jog' line. Do you expect to use the regular jog keys at that time?
Logged
tripleblack
Active Member

Offline Offline

Posts: 97


View Profile
« Reply #3 on: August 25, 2008, 08:32:22 PM »

thanks for your reply Ron.

Success!  Smiley
i am using this for manually moving the z with oxy acetylene torch to its pierce position.this allows the z to be jogged up or down with the page up, page down keyboard keys.it also allows a joystick configured for thc up and down to adjust the height at a slower rate.
anyway, i had an input switch on the console set for starting the macro . setup to be oemtrigger 15, with oem code 1005(hold).code
1000(cycle start) caused the activateswitch(output1)to be ignored.my second macro.

creating a plasma torch touchoff macro was easy compared to this.

was running shopbot software before.had the same routine but much easier to create.but talk about buggy!!


SystemWaitFor(1005)   '  lets the z axis be jogged down manually for  preheat and start height



code"g92z0"                 'zeros the z so that the top of plate is known
While ismoving()
Wend



code"g0z.2"                      'jog up .2 inch quickly for the pierce
ActivateSignal(OUTPUT1)   'oxy pierce valve  turned on.
While ismoving()
Wend
code"g0z0"                     ' jog back down for return to part file
While ismoving()
Wend


Logged
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!