Welcome, Guest. Please login or register.
Did you miss your activation email?
August 23, 2017, 06:39:20 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Mach SDK plugin questions and answers.
| | |-+  Finished Plugins for Download
| | | |-+  USB JoyPad and game device plugin - New Version 2.0
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 »   Go Down
Print
Author Topic: USB JoyPad and game device plugin - New Version 2.0  (Read 143580 times)
0 Members and 1 Guest are viewing this topic.
TDAY
Active Member

Offline Offline

Posts: 169



View Profile WWW
« Reply #30 on: June 05, 2011, 11:00:15 AM »

Got a pic of my setup with the Logitech. The Control device iam using is a KFLOP from Dynomotion. This board takes my Linear Scales and closes the loop with my 906 oz/in steppers.
 Problem i have is when jogging machine with the Joysticks. When i let off of Joystick, the axis comes to a very hard stop with a "clunk" from the stepper,no matter how slow or fast i jog. This sometimes causes a lost step and throws Mach into fault.Also at times, my Geckos G203V drives will fault out because of this hard stop. There is no problems during axis movement, the problem is only when you let off of jogging.

Machine jogs just fine when using the arrow keys on my keyboard.

Any ideas?

Thanks,
Troy


* Machine&Logitech3.jpg (549.88 KB, 1977x1481 - viewed 545 times.)
« Last Edit: June 05, 2011, 11:04:42 AM by TDAY » Logged

"I try to put forth the effort,before asking a dum question"
http://homecncstuff.elementfx.com
TDAY
Active Member

Offline Offline

Posts: 169



View Profile WWW
« Reply #31 on: June 05, 2011, 01:22:06 PM »

If i slowly let off of Joysticks from a full speed jog, then there is no "clunk" or missed step.
Logged

"I try to put forth the effort,before asking a dum question"
http://homecncstuff.elementfx.com
area51
Active Member

Offline Offline

Posts: 98



View Profile WWW
« Reply #32 on: June 05, 2011, 06:52:56 PM »

Hi Troy,

I would like you to test using Mach PP (Parallel Port) instead of the KFLOP controller - is that possible in your setup?

- Joakim
Logged

Visit the JoyPad plugin Home at http://joakim.dk/joypad for the latest version and info.
TDAY
Active Member

Offline Offline

Posts: 169



View Profile WWW
« Reply #33 on: June 05, 2011, 07:03:49 PM »

Hi Troy,

I would like you to test using Mach PP (Parallel Port) instead of the KFLOP controller - is that possible in your setup?

- Joakim

Yes, but i should pull my previous post, as i think the majority of my problem is some settings in my C program for the KFLOP. Once in awhile i will get this same problem when jogging with my keyboard. Using the gamepad just makes the problem happen more often. That remindes me... if i quickly let go of joysticks, thats when i get the hard stop, but if i control the joystick so it does not snap back to 0, then i get much better results. I believe iam getting some sort of bounce when i let go off joystick, causing a sudden jerk back and forth. Make sence? Smiley
Any how,I ll get back with you when i get this pinned down more.

Thanks,
Troy
Logged

"I try to put forth the effort,before asking a dum question"
http://homecncstuff.elementfx.com
area51
Active Member

Offline Offline

Posts: 98



View Profile WWW
« Reply #34 on: June 05, 2011, 07:23:24 PM »

Yes it make sense Smiley

I will look forward to hear more about your findings.
I have never tested the plugin with KFLOP but expect it to work. I am very interested in knowing if there are any problems.
Nailing the problems down helps me fixing them in the plugin. Thanks.

- Joakim
Logged

Visit the JoyPad plugin Home at http://joakim.dk/joypad for the latest version and info.
TDAY
Active Member

Offline Offline

Posts: 169



View Profile WWW
« Reply #35 on: June 06, 2011, 09:38:25 PM »

Yes it make sense Smiley

I will look forward to hear more about your findings.
I have never tested the plugin with KFLOP but expect it to work. I am very interested in knowing if there are any problems.
Nailing the problems down helps me fixing them in the plugin. Thanks.

- Joakim

Its KFLOP settings thats causing the issue. Iam gonna let this go for now, and just learn to control the Joysticks too center and not let them spring back.

On another note.. Is there a way to assign Gcode too a button?
Thanks,
Troy
Logged

"I try to put forth the effort,before asking a dum question"
http://homecncstuff.elementfx.com
area51
Active Member

Offline Offline

Posts: 98



View Profile WWW
« Reply #36 on: June 08, 2011, 01:44:09 PM »

On another note.. Is there a way to assign Gcode too a button?
Thanks,
Troy
Yes! Smiley

Assign script to a button or button combination and let the script generate G-Code.
On page 32 ff. in the manual there is an example of assigning script to an unused button - to generate G-Code you just write Script code like:

Code:
Code("G01 X0 Y0")
Code("G01 X100 Y100")
...

This will send the G-Code:

G01 X0 Y0
G01 X100 Y100

Combined with the power of March VBScript you can make very powerfull and flexible G-Code programs.

- Joakim
Logged

Visit the JoyPad plugin Home at http://joakim.dk/joypad for the latest version and info.
TDAY
Active Member

Offline Offline

Posts: 169



View Profile WWW
« Reply #37 on: June 08, 2011, 10:01:40 PM »

On another note.. Is there a way to assign Gcode too a button?
Thanks,
Troy
Yes! Smiley

Assign script to a button or button combination and let the script generate G-Code.
On page 32 ff. in the manual there is an example of assigning script to an unused button - to generate G-Code you just write Script code like:

Code:
Code("G01 X0 Y0")
Code("G01 X100 Y100")
...

This will send the G-Code:

G01 X0 Y0
G01 X100 Y100

Combined with the power of March VBScript you can make very powerfull and flexible G-Code programs.

- Joakim

Ok, ill give that a go, my script code skills are very weak, so be ready for questions. Wink
Thanks,
Troy
Logged

"I try to put forth the effort,before asking a dum question"
http://homecncstuff.elementfx.com
TDAY
Active Member

Offline Offline

Posts: 169



View Profile WWW
« Reply #38 on: June 08, 2011, 10:08:41 PM »

Ummm... i dont like jumping around from one issue to the next, but have you noticed when jogging with Joysticks as Continuous or Step, ( if you have no G Code open in Mach), that the G Code Line Number DRO will toggle from +0.0000 to -1.0000? It happens after axis has stopped. Its more noticeable when doing Step jog.
Havent notice it effecting anything yet. Does anyone else see this?

Thanks,
Troy
Logged

"I try to put forth the effort,before asking a dum question"
http://homecncstuff.elementfx.com
area51
Active Member

Offline Offline

Posts: 98



View Profile WWW
« Reply #39 on: June 13, 2011, 10:26:11 AM »

Hi Troy.

Haven't noticed that behavior - I will try it when my workshop comes in order again after installing the new lathe.
Do you experience any side effects?

- Joakim
Logged

Visit the JoyPad plugin Home at http://joakim.dk/joypad for the latest version and info.
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 »   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!