Hello Guest it is March 29, 2024, 05:00:57 AM

Author Topic: How to setup rotary encoder as MPG ?  (Read 12436 times)

0 Members and 1 Guest are viewing this topic.

How to setup rotary encoder as MPG ?
« on: October 14, 2013, 11:11:18 PM »
Dear all.
PoKeys 56U, MACH3 plugin, all works like a charm.
Not using the PulseEngine, this runs via. 2x Parallel Ports

I have setup a rotary encoder on pins 1+2, and the encoder function works.
Have tried on different DROs

1) Where/How do I set it to control movement of the selected Axis (MPG mode)
Right now I can only select "Step" and "Cont." jog modes and not "MPG"

2) Is there a DoButton function that acts as the "Shift key" aka.  enable Rapid Jog override ?

Best Regards, Bo Andersen.

Offline NeoTO

*
  •  504 504
    • View Profile
    • PoLabs
Re: How to setup rotary encoder as MPG ?
« Reply #1 on: October 17, 2013, 01:07:03 PM »
Hi, Bo

1. Go to Ports&Pins dialog and enable MPG1 under MPGs tab. Then map the encoder to the MPG1 DRO in the PoKeys plugin settings.
2. See OEM button 1903. This will toggle the jog mode. Rapid jog can not be mapped directly at the moment.

Regards,
Matevž
www.poscope.com home of PoKeys USB HID, IO, USB, Ethernet controler and PoScope USB PC oscilloscope
Re: How to setup rotary encoder as MPG ?
« Reply #2 on: October 18, 2013, 01:32:07 AM »
Hi.

Great, I would never have guessed to enable the MPG, without setting some ports/pins also.
Anyway, it works.

Apparently I can set a keyboard shortcut Pin1 = "Shift" key, and this setting is kept when the MACH3 boots up with the PoKeys-MACH3 plugin.
I.e. I can enable the "Rapid Jog override" perhaps not in the best possible way, but it gets the job done.

Off-topic: Now where to find 100ppr encoderes ? Those on eBay is either those big, fancy and $$$ alu-wheels, or then they only have 20-24ppr ?
To be used for setting: Spindle speed, jog, speed, feed etc.

Best Regards, Bo Andersen.

Offline NeoTO

*
  •  504 504
    • View Profile
    • PoLabs
Re: How to setup rotary encoder as MPG ?
« Reply #3 on: October 19, 2013, 03:24:06 AM »
Hi, Bo

Do you mean these: http://www.poscope.com/index.php?route=product/category&path=61 PoMPG2 is a smaller version of PoMPG1.

Regards,
Matevž
« Last Edit: October 19, 2013, 03:26:25 AM by NeoTO »
www.poscope.com home of PoKeys USB HID, IO, USB, Ethernet controler and PoScope USB PC oscilloscope
Re: How to setup rotary encoder as MPG ?
« Reply #4 on: October 23, 2013, 01:36:52 AM »
Hi Matevz.

No, I alreadu have the MPG as you link to.
It's more to control the Feed, Jog, Spindle, MPG-Jog speeds.
The "real" panels have 3-4 smaller knobs for adjusting the override of above speeds.

But I'm unsure if this is done via:
- Rotary encoders (grey-bit) Require 2 inputs, and rather precise in positioning.
- Pot meters ( 0-3.3V) Require only one input, but it "jumps" in the setting, and not easy to get back to precise 0% override.
- Rotary switch (1 pole, 12 posistions) This requires 12 inputs :-/

I was planning on using the Rotary encoder, but i can only find some with 20-24 ppr, which results in 5 turns to get 100% :-/

Any suggestions, perhaps there is a trick to get the analog one not to "jump" in voltage.

Best Regards, Bo Andersen.

Offline NeoTO

*
  •  504 504
    • View Profile
    • PoLabs
Re: How to setup rotary encoder as MPG ?
« Reply #5 on: October 26, 2013, 06:26:51 AM »
Hi, Bo

Analog filtering: use PoKeys software to enable analog filtering of the inputs
Encoder mapping: feedrate override should work fine with encoders.

Regards,
Matevž
www.poscope.com home of PoKeys USB HID, IO, USB, Ethernet controler and PoScope USB PC oscilloscope
Re: How to setup rotary encoder as MPG ?
« Reply #6 on: October 27, 2013, 12:44:32 AM »
Hi Matevz.
Thanks again.

Will look into the Analogue filtering, alternative the Encoder :-)
Lots of new possibilities and features with PoKeys....

Best Regards, Bo Andersen.