Machsupport Forum

Third party software and hardware support forums. => PoKeys => Topic started by: Oscilloman on January 03, 2016, 04:35:39 PM

Title: Pokeys57CNC & Mach4, spindle question
Post by: Oscilloman on January 03, 2016, 04:35:39 PM
Hello

I am retrofitting a CNC lathe and run into a little problem.
I have a 0.37kW 3P motor that is driven by a Schneider VFD. This VFD takes 0-10V to adjust the freq of the drive. The pokeys57CNC have a 0-10V output, and i would like to use this for spindle speed control. However i am having a hard time figuring out what i need to do in mach4/pokeys software to make this work.

I appreciate all help!
Title: Re: Pokeys57CNC & Mach4, spindle question
Post by: NeoTO on January 06, 2016, 02:27:06 PM
All configuration is done in PoKeys plugin for Mach4.
The 0-10V output is driven as PWM output on pin 17 - Configure PWM frequency of 10 kHz in the plugin settings, then select pin 17 as the spindle speed output (all settings are found under the Misc.. tab).
Title: Re: Pokeys57CNC & Mach4, spindle question
Post by: Oscilloman on January 11, 2016, 03:11:17 PM
Thanks NeoTo this worked like a charm.
But i am faced with a new problem. After i Upgraded to the new firmware (Release:08.01.2016) the load on pokeys57cnc is idling at approximately 80-90%. Funny thing is when i disable pulse engine in Mach4 pokeys plugin, the load decreases to 40-50%. When loaded to 80-90% it causes mach 4 to behave strangely, i get false limit-switch signals etc.
I did not have this problem before i upgraded the firmware.

I am really happy with the motion controller, it was really simple to setup for my first CNC build and i think you guys do a great job!
Again thanks NeoTo for you help!

 
Title: Re: Pokeys57CNC & Mach4, spindle question
Post by: Ron Ginger on February 02, 2016, 09:04:25 AM
I am setting up a lathe with the Pokey57CNC. What is the pin number for the relays? I want to use a relay to turn the VFD on.
Title: Re: Pokeys57CNC & Mach4, spindle question
Post by: NeoTO on March 07, 2016, 11:46:11 PM
The relays on the PoKeys57CNC are not mapped to any specific PoKeys pin. Instead, the relays are accessible as a part of the PoKeys Pulse engine ('PoKeys <serial> PE' device in Mach4).

Matevž, PoLabs
Title: Re: Pokeys57CNC & Mach4, spindle question
Post by: Ron Ginger on March 08, 2016, 06:56:58 AM
I found thaat.  For the record here if anyone else needs this- in Mach config  under output pins you select the pokeyPE device. Then the signal name will offer the relays or SSR as the device.
Title: Re: Pokeys57CNC & Mach4, spindle question
Post by: Ron Ginger on April 07, 2016, 08:38:33 PM
I am now working on the spindle encoder for threading in Mach4. I am looking at options for the spindle encoder. Is it necessary to be a quadrature encoder, or can a simple pulse train. like from a gear tooth sensor reading a gear? How many pulses per rev  are needed for good threading? I will also have an index pulse of a single pulse per rev.
Title: Re: Pokeys57CNC & Mach4, spindle question
Post by: NeoTO on April 08, 2016, 12:37:35 AM
You either have encoder+index or index only.

Using the encoder, PoKeys will track both the speed and position of the spindle, compensating for position errors due to spindle speed variations. Index is still required.

Without encoder, one index per rotation can also be employed for threading. Multiple pulses per rotation are not supported. If you have a gear tooth, it is simple to convert it to an encoder - just position two sensors offset for less than half of the tooth width and feed the signals from the sensors back to PoKeys as encoder signals.
Title: Re: Pokeys57CNC & Mach4, spindle question
Post by: Cartierusm on February 24, 2017, 12:26:38 PM
Ok, not to bring up an old thread, but have a question. Just recieved my Pokeys57CNC, but haven't hooked it up. Was using a 57E before.

For wiring the spindle I use pin 17 and GND to adjust the speed of the VFD. Then which pins do I use to turn on CW and Turn on CCW? And how is that setup in Mach? Do I have to map the outputs like in the 57E?
Title: Re: Pokeys57CNC & Mach4, spindle question
Post by: NeoTO on February 25, 2017, 01:33:08 AM
You can use any free pin you want or relays. See the pinout diagram for PoKeys57CNC.
Otherwise, the procedure is the same, so yes, you have to map them as with 57E.
Title: Re: Pokeys57CNC & Mach4, spindle question
Post by: Cartierusm on February 25, 2017, 01:49:31 PM
Ok so if I pick pins on the 57CNC, let's say 9 and 10 on the Pendent Connector, then I got into the plugin in Mach 4 and set the pins in the mapping function then set them in mach 4 setup? I don't have to program those pins in the stand alone pokeys configuration software?
Title: Re: Pokeys57CNC & Mach4, spindle question
Post by: Cartierusm on February 28, 2017, 10:56:48 AM
Figured it out. Thanks.

Can't seem to figure out the SSR that's onboard. It has +5V in the center and then SSR1 and SSR2. When it switches on is it providing +5V to the other contact, SSR1? Then how would I make it turn on when the spindle goes on so I can have coolant?

Also the 0-+10V for the VFD is only at like +7V is that changed by changing the Hz in the PWM setting?
Title: Re: Pokeys57CNC & Mach4, spindle question
Post by: Cartierusm on March 03, 2017, 12:10:47 PM
So turns out there is a very, very small pot next to the 0-10v connector that is used to adjust the voltage.
Title: Re: Pokeys57CNC & Mach4, spindle question
Post by: Azalin on December 05, 2017, 07:51:46 AM
You either have encoder+index or index only.

Using the encoder, PoKeys will track both the speed and position of the spindle, compensating for position errors due to spindle speed variations. Index is still required.

Without encoder, one index per rotation can also be employed for threading. Multiple pulses per rotation are not supported. If you have a gear tooth, it is simple to convert it to an encoder - just position two sensors offset for less than half of the tooth width and feed the signals from the sensors back to PoKeys as encoder signals.

When I use an encoder which has 3 channels (A, B and Z) do I still need an index sensor?
Title: Re: Pokeys57CNC & Mach4, spindle question
Post by: Cartierusm on December 05, 2017, 12:14:44 PM
What’s the encoder for?
Title: Re: Pokeys57CNC & Mach4, spindle question
Post by: Azalin on December 05, 2017, 01:32:54 PM
It is attached to a lathe spindle, for threading with Mach4
Title: Re: Pokeys57CNC & Mach4, spindle question
Post by: Cartierusm on December 06, 2017, 10:21:47 AM
Not sure. There are two ways to get threading to work, either with a sensor that detects a notch in some material connected to your spindle or a rotary encoder that connects to your spindle.

Not sure if you need index if it's a rotary encoder. I'm not in front of my machine, but looked at the schematic online and it seems a rotary encoder doesn't need one, just A, B, Z and power.
Title: Re: Pokeys57CNC & Mach4, spindle question
Post by: Azalin on December 06, 2017, 11:21:42 AM
I guess you're right. Thanks.
Title: Re: Pokeys57CNC & Mach4, spindle question
Post by: Azalin on July 10, 2021, 03:59:19 PM
Wow! Hello again.

New machine, new problem.

This time the machine is a mill. M16D with Pokeys 57e.

A sensor is connected to pin #8
B sensor is connected to pin #12
Index sensor is connected to pin #13

In pokeys diagnotstics window I can see all 3 pins are triggered when the spindle spins. However in Mach4 the Spindle SRO is always static. Never displays the encoder velocity. How can I solve this.

Thanks,
Suat