Hello Guest it is April 26, 2024, 11:31:03 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 - area51

Pages: « 1 2 3 4 5 6 7 8 9 10 11 »
51
I have never used Mach3Turn (M3T) myself, as my lathe is manual (not converted yet). JoyPad plugin should be working with M3T.
Try setting up the pages from Mach3Mill (M2M) in JoyPadSetup program and see what they point to in M3T.
If that is not working VB script can be used. A lot of the codes for scripting is covered in the manual and a lot more can be found in the forum, along with help making script.

JoyPad plugin uses one script for all button actions and you have to catch each button in M800.m1s:

Code: [Select]
If BText = "BN" Then
  Message "You have pressed Buttom BN"
End If

This code will catch BN and any combination of AL, AR, SL, SR. If you like to only catch BN + AL the If statement must be:

Code: [Select]
If BText = "BN" And AL Then
  Message "You have pressed Buttom BN + AL"
End If

You separate the script by using If statements. All buttons share the script file m800.m1s; this makes it easier to reuse code between buttons and maintain the code.

Note: Buttons will only call the script file when set up to Scripting in JoyPadSetup.

If you make a button assignment for M3T (template), please post it in this forum - it does not have to be perfect or fancy. I would make it easier for others to contribute  :D

- Joakim

52
There is no standard way of controlling continuous jogging from plugins, but some good recommendations from other plugin developers. These are implemented in the JoyPad plugin and tested with PP and SS (SmoothStepper).
Other motion hardware plugins will properly work but have not been tested. (I need a sample hardware + software to test)

Try setting March3 up to use the PP driver - simulation mode will do.
If continuous jogging works here then JoyPad plugin is configured correct and working as expected.
The problem is then the motion hardware plugin and/or the communication between hardware motion plugin and JoyPad plugin.

Hope this helps.

53
Are you using parallel port (PP) output?

54
Make sure you have pressed the Mode/Analog button on the JoyPad to activate analog joystick input - I often forget this. On my low budget  JoyPad this setting gets reset when unplugged/powered off.

55
General Mach Discussion / Re: New Joystick
« on: June 22, 2012, 08:55:15 PM »
I've read through the installation manual for Joypad 2.0 and it makes no mention of running keygrabber.

Is it necessary????

Lame

No :) - The JoyPad plugin has no need for keygrapper.
All JoyPad keys are set up in the GUI program JoyPadSetup.exe - just run it and define the key mappings.
The plugin will then use your setup and handles all buttons on the game device.

Running keygrapper along with JoyPad on the same game device may confuse both JoyPad plugin and keymapper and should be avioded.

- Joakim

56
Zkmiller:
The JoyPadSetup.exe program is a standard Windows program as is not dependent on Game Device or March installation. You could run it on another Windows installation to generate/edit the setup files and the copy them to the Mach installation.

Mcateercustom:
If the device shows up in Control panel -> Game devices it can probably be used with the plugin.
The JoyPad plugin use devices listed in Windows as Game Devices. There is no direct contact between plugin and the actual device.
If Windows supports the device there is a good chance that JoyPad plugin can use it to control Mach.
The devices can be Wireless, Bluetooth, USB or connected to the old Joystick port  :)

- Joakim

57
Looks like the problem is with the installed version of .NET Framework.
By default the framework is not part of Windows XP and needs to be downloaded and installed from Microsoft (see user manual):

http://www.microsoft.com/downloads/
Look for dotnetfx 3.5 download.

The JoyPad plug-in is not dependent on the framework and should run without.

- Joakim

58
General Mach Discussion / Re: Auto Tool Zero Help with USB Joypad
« on: May 02, 2012, 08:36:20 PM »
Hi Pedropin

If you move the script code for Auto Tool Zero into M800 I think it will work.
Something like (in M800):

Code: [Select]
Sub AutoToolZero()
    ' Code for Auto Tool Zero
    ' ...
End Sub

If SL And (Button = BE) Then
    DoOEMButton 1017
    Message "Goto Zero"
End If

If SL And (Button = BW) Then
    Call AutoToolZero() ' Call the sub with zero code
    Message "Auto Tool ZEro"
End If

Mach will not allow calling a script from a script and gives no error when trying.

- Area51

59
Great :)

Try searching the forum for "Auto Tool Zero" - there is a lot of posts about that subject.
I'm sure you can find the answer there.

- Joakim

60
Hi Pedropin

For the M800 macro to be called (red code), the button combination SL + BW must be set to -- Execute script -- in JoyPadSetup program and Saved (you maybe have to restart Mach3).

Try changing the red code in M800.m1s to:

If SL And (Button = BW) Then
  Message "JoyPad SL + BW pressed!"
  Sleep(5000)
  DoOEMButton 707
  Message "Eje Z = 0"
End If


If you see the text JoyPad SL + BW pressed! displayed for 5 seconds, the code is called when the button combination is pressed.

I'm not familiar with the "DoOEMButton 707" - but if it is a nested call to a macro, the code will not be executed by Mach. Mach will not allow macros to call macros.

Hope this helps.

Pages: « 1 2 3 4 5 6 7 8 9 10 11 »