Hello Guest it is March 19, 2024, 01:47:16 AM

Author Topic: USB JoyPad and game device plugin - New Version 2.0  (Read 299439 times)

0 Members and 1 Guest are viewing this topic.

Offline TDAY

*
  •  165 165
    • View Profile
    • Home CNC Stuff
Re: USB JoyPad and game device plugin - New Version 2.0
« Reply #30 on: June 05, 2011, 12:00:15 PM »
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
« Last Edit: June 05, 2011, 12:04:42 PM by TDAY »
"I try to put forth the effort,before asking a dum question"
http://homecncstuff.elementfx.com

Offline TDAY

*
  •  165 165
    • View Profile
    • Home CNC Stuff
Re: USB JoyPad and game device plugin - New Version 2.0
« Reply #31 on: June 05, 2011, 02:22:06 PM »
If i slowly let off of Joysticks from a full speed jog, then there is no "clunk" or missed step.
"I try to put forth the effort,before asking a dum question"
http://homecncstuff.elementfx.com

Offline area51

*
  •  102 102
    • View Profile
    • Joakim's Technical Explorations
Re: USB JoyPad and game device plugin - New Version 2.0
« Reply #32 on: June 05, 2011, 07: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

Offline TDAY

*
  •  165 165
    • View Profile
    • Home CNC Stuff
Re: USB JoyPad and game device plugin - New Version 2.0
« Reply #33 on: June 05, 2011, 08: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? :)
Any how,I ll get back with you when i get this pinned down more.

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

Offline area51

*
  •  102 102
    • View Profile
    • Joakim's Technical Explorations
Re: USB JoyPad and game device plugin - New Version 2.0
« Reply #34 on: June 05, 2011, 08:23:24 PM »
Yes it make sense :)

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

Offline TDAY

*
  •  165 165
    • View Profile
    • Home CNC Stuff
Re: USB JoyPad and game device plugin - New Version 2.0
« Reply #35 on: June 06, 2011, 10:38:25 PM »
Yes it make sense :)

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
"I try to put forth the effort,before asking a dum question"
http://homecncstuff.elementfx.com

Offline area51

*
  •  102 102
    • View Profile
    • Joakim's Technical Explorations
Re: USB JoyPad and game device plugin - New Version 2.0
« Reply #36 on: June 08, 2011, 02:44:09 PM »
On another note.. Is there a way to assign Gcode too a button?
Thanks,
Troy
Yes! :)

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: [Select]
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

Offline TDAY

*
  •  165 165
    • View Profile
    • Home CNC Stuff
Re: USB JoyPad and game device plugin - New Version 2.0
« Reply #37 on: June 08, 2011, 11:01:40 PM »
On another note.. Is there a way to assign Gcode too a button?
Thanks,
Troy
Yes! :)

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: [Select]
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. ;)
Thanks,
Troy
"I try to put forth the effort,before asking a dum question"
http://homecncstuff.elementfx.com

Offline TDAY

*
  •  165 165
    • View Profile
    • Home CNC Stuff
Re: USB JoyPad and game device plugin - New Version 2.0
« Reply #38 on: June 08, 2011, 11: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
"I try to put forth the effort,before asking a dum question"
http://homecncstuff.elementfx.com

Offline area51

*
  •  102 102
    • View Profile
    • Joakim's Technical Explorations
Re: USB JoyPad and game device plugin - New Version 2.0
« Reply #39 on: June 13, 2011, 11: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