Hello Guest it is September 28, 2021, 12:22:45 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - naveenkumarm.ece

Pages: 1
1
VB and the development of wizards / Macropump Interlock - Reg
« on: November 23, 2013, 02:35:54 AM »
HI

Below I mentioned the vb script i used in macropump. It starts homing my axis when i press reset button. But I want my machine to do the homing function only once when i press the Reset button. Since, I used a Macropump it continuously executes the code again and again until i press the reset button again. Can anyone help me in this. Thank you.

'power on the optical home detector and wait 500 ms before homing
ActivateSignal(Output3)
Sleep (500)
' home 3 axis
DoButton(24)
DoButton(23)
DoButton(22)
DeactivateSignal(output3)

x=getuserdro(1000) 'each input has its on dro Input1 is a physical button

If GetInput(1) And x=0 Then         'comming off the modbus but any input can be used here
SetUserDRO(1000,1)                     'counter dro
DoOEMButton(*********)                       'button pushed on
End If

If Not(GetInput(1)) And x>0 Then
SetUserDRO(1000,0)
DoOEMButton(*********)          'button pushed again for off
End If 

2
I edited the DoOEMbutton as 102. is it right?

3
HI

Below I mentioned the vb script i used in macropump. It starts homing my axis when i press reset button.

'power on the optical home detector and wait 500 ms before homing
ActivateSignal(Output3)
Sleep (500)
' home 3 axis
DoButton(24)
DoButton(23)
DoButton(22)

But if i add the code below with above code, it doesn;t even start homing my axis when i press reset button. can u please help me in this.

x=getuserdro(1000) 'each input has its on dro Input1 is a physical button

If GetInput(1) And x=0 Then         'comming off the modbus but any input can be used here
SetUserDRO(1000,1)                     'counter dro
DoOEMButton(*********)                       'button pushed on
End If

If Not(GetInput(1)) And x>0 Then
SetUserDRO(1000,0)
DoOEMButton(*********)          'button pushed again for off
End If 

4
Mr.Hood, your replies sounds better for me to learn about CNC. Thank You.
I have one more question which is, How to set make the machine to move to origin position automatically? am using three limit switches to home the axes. But my home position and origin position are different. Home position and origin position are diagonal. I want to move the axes to origin position fro home position. Is it possible to set offsets to function automatically? Please suggest. Thank you

5
I have more question. Please suggest in this regard

Can I home all axes when g540 profile is loaded in mach3? ie., I want to home all axes automatically without clicking ref all home buttom when mach3 is opened? Is it possible? please suggest. Thank you

6
Thank you. I'l checkout everything again

7
Am completely new to CNC machine. I have my new zenbot CNC machine with G540 controller and mach3 software.

Am using an online CAD for designing and online cad itself converts my design to G-code an trasfers to MAch3. My problem is in tool height changes. Whenever the tool height is changed, the Z axis tool travel length is changes i.e increased or decreased. so the milling goes wrong. i.e, the tool cuts my work table. is the tool height is associated with motor tuning (i.e, steps/unit). . . Can any one plz help me in this regard?

also I have an external ESTOP button which is connected to the PC through USB. This button is just an NO switch connected to a board and it'l be activated when pressing and triggers the space key in my computer so that the ESTOP will be activated in the controller through MACH3. What I need in this setup is, I want to stop the spindle when the ESTOP is activated. I tried the settings in mach3 general config. But no use.

And my milling works properly when I setup the motor inputs under ports&pins option as Active high (direction input). I connected three limit switches for three axis but i works correctly when the direction input are setted as Active low. If direction input are stated as active high, then the machine moves reversely while homing (ref all home) I cant link these two conflicts and resolve. I want my machine and limit switches to work with active high config.



Can anyone suggest me the settings in this regard? Thank you

Pages: 1