thanks for your reply Ron.
Success!
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