Analog 0-10v control using encoder

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

Post Reply
centroidmax
Posts: 2
Joined: Fri Oct 01, 2021 6:35 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 5114
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Analog 0-10v control using encoder

Post by centroidmax »

Hi all,

I just got my first Acorn board installed in a modified ShopFox mini lathe.
I have a speed governor (0-10v to DC110) installed as the drive to the existing motor.
This seams to work ok, except I am not getting accurate RPM on the spindle (ex: 950 when requesting M3S1000, 1480 when requesting M3S1500, etc..).
I have an 'OMRON' encoder from china model E6B2-CWZ1X (8000 pulses in CNC12) geared 1:1 with the spindle. The single turn count looks right if I manually turn the spindle 1 rotation.

I am looking for the option to actively compensate the 0-10v analog out based on the readings from the encoder.

Thanks!
Maxime
tblough
Posts: 3097
Joined: Tue Mar 22, 2016 10:03 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: 100505
100327
102696
103432
7804732B977B-0624192192
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Boston, MA
Contact:

Re: Analog 0-10v control using encoder

Post by tblough »

Here's how to set up Acorn for rigid tapping: https://www.centroidcnc.com/dealersuppo ... ds/304.pdf

It will show how to tune your VFD. Spindle speed control is open-loop and does not use the encoder to adjust speed. The encoder is used only to read the actual spindle speed and adjust the Z-axis motion to match during tapping operations.

Depending on your VFD, you should be able to tune speed within 0.5% or so. You will be limited if your vfd does not have span and offset settings. However, someone recently posted on how to modify the PLC program to incorporate span and offset adjustment in the DAC calculation for the spindle if your VFD is not capable.
Cheers,

Tom
Confidence is the feeling you have before you fully understand the situation.
I have CDO. It's like OCD, but the letters are where they should be.
centroidmax
Posts: 2
Joined: Fri Oct 01, 2021 6:35 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 5114
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Analog 0-10v control using encoder

Post by centroidmax »

Thanks,
Yes I understand that the primary function (only function?) of the encoder is a feedback for threading / rigid taping.
I should be able to fine tune the min V and max V to adjust the speed a little better, but this will not work as good as a closed loop system.

I such a feature planned? Doable in the configuration files (like adding a constant feedback loop in the config file that translates the S value to volt value)

Thanks
Taifeng
Posts: 2
Joined: Wed Aug 04, 2021 11:55 pm
Acorn CNC Controller: No
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: HONG KONG
Contact:

Re: Analog 0-10v control using encoder

Post by Taifeng »

The system controller (MCU) output PWM is converted to 0-5V or 0-10V voltage output by GP8101 after optocoupler isolation. 2. The 0-5V/0-10V voltage is converted into PWM signal by GP9303, and then input to the inverter or motor driver for motor speed regulation after optocoupler isolation.
Post Reply