Lots counting errors at using the DDCSV with MPG - On 2 Page - DDCSV2.1 - Standalone CNC Motion Controller - Digital Dream Technology support
12
Return to List Add thread
Author: arco
Print Previous Topic Next Topic

Lots counting errors at using the DDCSV with MPG

[Copy Link]

1

Threads

7

Posts

23

Credits

Newbie Member

Rank: 1

Credits
23
11#
Posted at 2018-2-28 01:49:57 | Only Author
Dear enjoy_cnc,

My actual parameters, have actually the parameter from 431 set to 0.010, but it does not change at the
described behaviour:

[Motor Parameters]
34 X axis pulse equivalency =640,00
35 Y axis pulse equivalency =640,00
36 Z axis pulse equivalency =640,00
38 A axis pulse equivalency =640,00

[MPG parameters]
428 =Enable
429 =Low
430 =Standard
431 =0.010
432 =Low
434 =Low
448 =Open (also tried with Close, no difference)

Kind regards
Daniel

Can you guys, update this forum software for having the option to upload the pictures or data files,
else i have to send them all the time via email to you.
Reply Support Opposition

Use props Report

1

Threads

7

Posts

23

Credits

Newbie Member

Rank: 1

Credits
23
12#
Posted at 2018-2-28 02:36:19 | Only Author
Dear enjoy_cnc, Dear ytlui,

I tried your recommendation of your setting with 10000 als pulse equivalent, this setting reduced this error very very much, only at very
fast moving it seems it miss some signals from the MPG, seems the used optocoupler are maybe too slow. But nevertheless this error
got very very much reduced. and i got some times an error between +/- 0.001 to 0.006

So now i set my final values from my real motors, stepper power controller and leadscrew:

x/y has a leadscrew of 10mm/rev
z has a leadscrew of 2mm/rev

x/y motor set to 800 pulse per turn
z motor set to 400 pulse per turn

calculated values are then:
34 X axis pulse equivalency =80,00
35 Y axis pulse equivalency =80,00
36 Z axis pulse equivalency =200,00

with this values the error got seriously worst for x/y
turn 1 tick to pos = +0.013
turn 1 tick to neg = -0.012
if i turn more the mpg it it does not continous increment predictable stable values,
they jump like crazy between 0.010 - 0.019 some thing there in between.
Roll a dice for the next final position

for z at beginning and very slow slow turning it works +0.01 +0.1 etc.
but if i move just a little faster the mpg then i get +0.015 +0.01 +0.015 as
incremental or decremental values but always a difference of 0.005 as error
if this error occurs. That seems be not nice but somehow still accceptable.

The machine which I have, can work up to a precision to around 0.02 mm.

I can try to set higher revolution values for the x/y axis for minimizing the error,
but i will get weaker power on the motors if the have to move faster. for the Z
axis due the 2mm leadscrew I have to stay at the values of 200 thats a precision
of 0.005

At further testing and analysing, I think I found the problem:

At your email soon you will find the excel sheet calculation for the precision of the parameters,
I guess you will need to add some more information in your manual about the resolution in relation
of leadscrew and motor puls per revolution provided by the power stepper. Then the values
are explainable and also somehow the unprecision of the values. Seems sometimes a rounding error too.
Reply Support Opposition

Use props Report

1

Threads

12

Posts

871

Credits

Senior Member

Rank: 4

Credits
871
13#
Posted at 2018-2-28 03:23:00 | Only Author
Hello CNC fans,

Today I have conneced MPG to my DDCSV2.1 and I noticed a simillar behaviour as described in previous posts. I had tried to play a with parameters but without big differences. But I noticed that for for #431 "MPG precision" set to 0.010 the step I got every tick was 0.009 , 0.011, 0.009, 0.011 ... and so on. So the average is 0.010 (as set in parameters).

From my point of view it looks like hardware is working correctly and the problem is somewhere in the software (currently Im using version 2018-01-21).

@ enjoy_cnc, ytlui
I would suggest to check number roundings in the firmware (for example for displaying purpose).

Regards
Lukasz
Reply Support Opposition

Use props Report

5

Threads

56

Posts

316

Credits

Super Moderator

Rank: 8Rank: 8

Credits
316
QQ
14#
Posted at 2018-2-28 11:44:10 | Only Author
Lukasz Posted at 2018-2-28 03:23
Hello CNC fans,

Today I have conneced MPG to my DDCSV2.1 and I noticed a simillar behaviour as desc ...

Dear DAMIGO  , Dear LuKasz,

The following controller parameters are used as analysis conditions:

[Motor Parameters]
34 X axis pulse equivalency = 640,00
35 Y axis pulse equivalency = 640,00
36 Z axis pulse equivalency = 640,00
38 A axis pulse equivalency = 640,00

[MPG parameters]
428 = Enable
429 = Low
430 = Standard
431 = 0.010
432 = Low
434 = Low
448 = Open

Hand-held box
Axis Select the X axis
Magnification x1



  A: ___ | ----- | ___
   B: _____ | ----- | ____

1tick = 4 unit

1 unit = 0.01 / 4 = 0.0025 mm = 640 * 0.0025 mm = 1.6 pulses

1tick = 1.6 * 4 = 6.4 pulses

1tick can not issue 6.4 pulses, can only send 6 or 7;




                         init             1tick            1tick               1tick                 1tick           .......
    
REL unit              0                4                  4                    4                     4              .......

ABS unit             0                4                   8                   12                    16           .......

ABS Pulse out     0            4 * 1.6≈6       8 * 1.6≈13      12 * 1.6≈19      16 * 1.6≈26        ........
   
ABS pos show   0.000      0.009 (6/640)   0.020 (6/640)   0.029 (19/640)   0.040 (26/640)   ........

REL pos             0.00        0.009                0.011              0.009                 0.011             ........


   

As can be seen from the table above, the maximum deviation after shaking the handwheel will not exceed (1p = 0.0015625mm), which is determined by the drive and screw precision;

Coordinate display is the real-time display of the current actual location, if 0.009 mandatory display 0.010, this is not appropriate;

Due to the limitation of the shaking speed of the handwheel within the software, when the handwheel is shaken at the limit and the handwheel is lost,

Suggest the following:

When you are far from the target position, you can choose x10 or x100 gear, and the manual speed parameters increase, even the normal speed of the hand wheel can also allow the machine to achieve rapid movement effect;
When close to the target position, you can choose x1 gear to slow precise positioning;


Do not recommend the following:

Hand wheel in the x1 file, and fast speed handwheel used to achieve rapid movement effect This is an unconventional approach;



The following G code and the above hand wheel analysis principle is the same;

G90 G54

G01 X0
G01 X0.01 (show 0.009)
G01 X0.02 (show 0.020)
G01 X0.03 (show 0.029)
G01 X0.04 ​​(show 0.040)

M30


When the pulse equivalent is 80 or other values, it can also be analyzed according to the above table.

I hope my answer will make everyone satisfied!

Kind regards
Reply Support Opposition

Use props Report

1

Threads

12

Posts

871

Credits

Senior Member

Rank: 4

Credits
871
15#
Posted at 2018-2-28 15:08:32 | Only Author
Hello enjoy_cnc,

Thanks for great explanation. I think it's clear right now.

@DAMIGO
To upload picture/file you need to switch a new post window to "High mode" (upper right corner). Then you will be able to select files from your local drive.

Regards
Lukasz
Reply Support Opposition

Use props Report

1

Threads

7

Posts

23

Credits

Newbie Member

Rank: 1

Credits
23
16#
Posted at 2018-3-1 03:43:25 | Only Author
Dear all,

thank you for the analysing and trying to sort out the problem, we come to the
solutuion more near...

And mega thanks for the advice with the high mode :-) finally i can upload the stuff.

Well if the calculated precision value 0.0125 mm/stp and the MPG set to 0.01
then at moving positiv one tick i get: +0.013 (correct because last digit round up)
and in neg direction 0.012 (correct rounded). If you know this  speciality then
everything is explainable that with the presetting of 640 mm/step and 0.01 mpg precision
can not work because:

I assumed for the 640 mm/stp value:
16 x microsteps
5mm leadscrew
200step (1,8 degree) motor
gives a minimum resolution of 0.01563

So if you use then this value 0.01 as mpg precision, it will drives you
mad with the driven distance with the precision which can not be
reached of it. And if you turn the mpg you get non explainable values
which are rather jumpy.

So I add a calcsheet which i got from another cnc forum from
http://www.machsupport.com/forum/index.php/topic,16315.0.html
(you will need libreoffice or openoffice for the file which i add or load it from
the other forum which is in MS-Office).

With help of this file you can calculate the precision of your combination
of steps, leadscrew, motor and set microsteps. this calc minimum resolution
is the value which you need to set for the MPG precision.

If you have combination like my machine with different settings you
need to calc for all axis and readjust the parameters so that you find
a base together. for me was it then to set my setup for the Z axis to
a precision of 0.005 and the x,y Axis to precision of 0.01 (required to
change the microsteps from 4 to 5 to gain 1000 steps for 10mm leadscrew).
This is then the common base of 0.01 and this  i can set inside the MPG parameter
and the behaviour is then as mostly expected, but sometimes in rarely cases it miss
sometimes a signal. But for me still somehow OK.

StepperCalc_ALENZ_rev1.zip

23.12 KB, Down times: 1030

Reply Support Opposition

Use props Report

5

Threads

56

Posts

316

Credits

Super Moderator

Rank: 8Rank: 8

Credits
316
QQ
17#
Posted at 2018-3-1 10:38:04 | Only Author
DAMIGO Posted at 2018-3-1 03:43
Dear all,

thank you for the analysing and trying to sort out the problem, we come to the

Dear DAMIGO,

Thank you for your DDCSV product support.


According to your machine XYZ pulse equivalent X: 80 Y: 80 Z: 200 can be obtained
The accuracy of control commands for each axis is:

X: 0.0125 mm / p
Y: 0.0125 mm / p
Z: 0.005 mm / p


Hand wheel control software design principles as analyzed above 14 # as,

Each tick of the handwheel will be incremented and decremented by 0.8 (0.01 * 80) pulses,
Since 0.8 is not an integer, each pulse issued after the rounding operation will have errors;
But the overall error will not exceed 0.0125mm after the handwheel finally stops;


The minimum accuracy is 0.0125mm, then the precise control of each step 0.01mm is impossible to achieve!


There is a minimum precision of 4 decimal places, the display accuracy is 3 decimal places,
So the third decimal point display in the floating-point to string casting accuracy loss, resulting in the phenomenon of 0.013 or 0.012, is a normal phenomenon;

The purpose of the software is such that the MPG can shake 100 or 500 ticks continuously, then the machine movement distance will be 100 * 0.01 mm, 500 * 0.01 mm; to achieve precise control;

It can also be designed such that the MPG accuracy unit is pulse, for example, 1 puse. This design accurately increments or decrements the MPG by 0.0125 mm for each shake; and the forward and reverse displays are very accurate.


If you want to precisely control and unify the control accuracy of all axes, you can follow the following method.


A known:
Z 0.005 mm
XY 0.0125 mm

It is recommended that the MPG accuracy be set to 0.025 (2 pulse) 0.05 (4 pulse). . . .

Z axis:
   0.025 / 0.005 = 5 step

    0.05 / 0.005 = 10 steps

The MPG can also be set to 0.0125, but the number of steps in the Z axis is 0.0125 / 0.005 = 2.5 steps. It is not an integer;


Accuracy of the above handwheel (0.0125 * n) can be accurately displayed under the handwheel operation, and the increment and decrement of each tick are the same;

Because the movement of 0.0125 * n (n> 1) corresponding to the XYZ issued pulse is an integer;


Kind regards!

Reply Support Opposition

Use props Report

You need to log in before you can reply Login | Register now

This forum Credits Rules

Shenzhen Digital Dream Numerical Technology Co., Ltd. support
Adress:507,A Building,Leibo Industry Zone,No. 22 Jinxiu East Road,Kengzi Street,Pingshan district,Shenzhen City,P.R. of China
Phone:13244704799
E-mail:info@ddcnc.com

TEL

0755-87654321

Wchat

Website designed by DigitalDream Technology Support
Quick Reply Back to top Back to list