Hello Guest it is March 29, 2024, 08:20:33 AM

Author Topic: Selecting pulley under Vb or Brains  (Read 1702 times)

0 Members and 1 Guest are viewing this topic.

Selecting pulley under Vb or Brains
« on: February 21, 2016, 05:16:18 PM »
is it possible to select pulley1 or pulley2 in Brains or VB?
i have a lathe with a gearbox and i can switch between two gears. I need to tell mach in what gear is the gearbox so it can apply a proper PWM pulse on the output.

Thank you!
Re: Selecting pulley under Vb or Brains
« Reply #1 on: February 21, 2016, 10:03:18 PM »
M101        (for example)
SetOEMDRO(56,1)  

M102
SetOEMDRO(56,2)

You could also mount a switch so Mach3 will see which gear its in without having to enter the info manually or by code.
! input either off or on.

« Last Edit: February 21, 2016, 10:05:59 PM by Overloaded »
Re: Selecting pulley under Vb or Brains
« Reply #2 on: February 22, 2016, 12:29:11 AM »
I was going for that theiry. The lathe has switches to see in witch gear it is. I made some macros and the operator has two buttons with leds on top. First gear an second gear. If a gear is selected mach waits for the proper input to go high. Until that it waits and it turns the head at about 10 rpm. That way the gear really engages and it can't get stuck between gears :) i was looking troughthe list of oem codes. It seems i overlooked the 56 code. I wil try i!

Thank you so much!!! :)