Hello Guest it is April 26, 2024, 01:36:01 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 - alexzkter

Pages: 1
1
The keyboard jog keys have ASCII values of;

left 37, up 38, right 39, down 40, pageup 33, pagedown 34   if you add 1024 to these values that makes them the same as shift+key.

Can you re-configure your joypad with the revised values ?

As far as I know, you can't change the behavior of the thumb joystick. It's hardcoded, isn't it?. You can only change the scaling of the X and Y axes by changing the plugin config on Mach3.




2
Hi,

I'm trying to park the tool dynamically after the machine ends cutting and I came upon the MaxY() function, which returns the Machine coordinates of an axis from a gcode.

Problem is, this macro is evaluated only while the tool path is generated, that is, before actually cutting. So if I zero my axis after loading the cut file, the final move is not where I expected it, because the tool path took into account the old zeros.

Code: [Select]
'Define the axes
Dim Xaxis As Integer
Xaxis = 0
Dim Yaxis As Integer
Yaxis = 1
Dim Zaxis As Integer
Zaxis = 2

'Define the X&Y work dimensions
Dim X_axis_length As Double
X_axis_length = 1300.0
Dim Y_axis_length As Double
Y_axis_length = 2550.0

'Define variables to store the machine position for the Y axis
Dim Y_MaxReachedMachinePos As Double

'Get Y Axis max reached value of machine coordinates during the cut 
Y_MaxReachedMachinePos = MaxY()




' Move Z axis to Safe_Z position
GotoSafeZ()
While IsMoving()
Wend

'Compare which of the 3 table areas the tool reached to know how far it can be moved in the Y direction after job finished.
If Y_MaxReachedMachinePos <= (Y_axis_length/3) Then
Code "G0G53 X20.0 Y" & Y_MaxReachedMachinePos+600.0 'Move the tool 60cm in the Y direction
'While IsMoving()
'Sleep 100
'Wend


ElseIf Y_MaxReachedMachinePos > (Y_axis_length/3) And Y_MaxReachedMachinePos <= (Y_axis_length*2/3) Then
Code "G0G53 X20.0 Y" & Y_MaxReachedMachinePos 'Move the tool 45cm in the Y direction
'While IsMoving()
'Sleep 100
'Wend


ElseIf (Y_MaxReachedMachinePos+450.0) < Y_axis_length Then
Code "G0G53 X20.0 Y" & Y_MaxReachedMachinePos 'Move the tool 45cm in the Y direction
'While IsMoving()
'Sleep 100
'Wend

Else
Code "G0G53 X20.0 Y" & Y_axis_length 'Move the tool all the way back in the Y direction
'While IsMoving()
'Sleep 100
'Wend

End If

Y_MaxReachedMachinePos=0

Is there a way to accomplish this? Like, executing the macro only after the machine starts cutting, for isntance?
Enabling "Ignore M calls while loading" didn't work.


Thanks in advance, Alejandro.

3
Hi,

Is there a way to move rapidly (like when you press the shift key) by holding the SL and SR keys and just jog if only one of the latter safety keys is pressed? Same thing for the Z axis, obviously.

Thanks..



From the TAB key flyout increase the Slow Jog Rate to 100% (or a figure that you are happy with).

Thanks, but I was looking to accomplish this without having to interact with my computer, thus without affecting the slow jog speed. I was planning to use both the keyboard and the joypad, so if I changed this value then I would have to reset it afterwards when using the keyboard which is kind of annoying.

4
Hi,

Is there a way to move rapidly (like when you press the shift key) by holding the SL and SR keys and just jog if only one of the latter safety keys is pressed? Same thing for the Z axis, obviously.

Thanks..


Pages: 1