Author Topic: DDCSV1.1 4 Axis controller  (Read 47707 times)

Offline Benedikt M.

  • Full Member
  • ***
  • Posts: 145
  • Country: de
    • My website
Re: DDCSV1.1 4 Axis controller
« Reply #550 on: May 03, 2017, 09:53:05 AM »
Hello!
I use two motors on the X axis. This controller will work with this configuration? there is synchronization?

I think I have read in this post that some people use 2 motors on one axis, but with two drivers, one per motor.
So did I, but I had to invert the actual motor signals to one of the steppers.
Then it worked well.

Offline old Zozo

  • Jr. Member
  • **
  • Posts: 21
  • Country: hu
Re: DDCSV1.1 4 Axis controller
« Reply #551 on: May 03, 2017, 10:20:25 AM »
Hi All,

After a long time I'd like use my controller again.
I thought I save my setup, but I can't find userVar file.
Linuxrc runs on my controller, -which file does include my setup?
(Or is not a good choice for linuxrc?)

Root has only mnt DIR, and linuxrc file,
mnt has nand1-1 DIR, what includes some file, as:
chs
eng
motion.out
setting
...and some .nc files

Thanks.

I just see that Benedikt worked a lot for us again,  thank you so much for it.

Offline Benedikt M.

  • Full Member
  • ***
  • Posts: 145
  • Country: de
    • My website
Re: DDCSV1.1 4 Axis controller
« Reply #552 on: May 03, 2017, 10:26:59 AM »
Hi All,

After a long time I'd like use my controller again.
I thought I save my setup, but I can't find userVar file.
Linuxrc runs on my controller, -which file does include my setup?
(Or is not a good choice for linuxrc?)

Root has only mnt DIR, and linuxrc file,
mnt has nand1-1 DIR, what includes some file, as:
chs
eng
motion.out
setting
...and some .nc files

Thanks.

I just see that Benedikt worked a lot for us again,  thank you so much for it.
Thanks!

Unfortunately it is not possible to recover the userVar.set (yet) from the controller itself.
The data is getting binary encoded IIRC and put into the settings file.
You can copy the file /mnt/nand1-1/settings to /udisk-sda1 if you want to back it up, but you cannot edit it externally.

Regards,
Benedikt

Offline old Zozo

  • Jr. Member
  • **
  • Posts: 21
  • Country: hu
Re: DDCSV1.1 4 Axis controller
« Reply #553 on: May 03, 2017, 10:31:12 AM »
So I understand, thank you very much.

Offline old Zozo

  • Jr. Member
  • **
  • Posts: 21
  • Country: hu
Re: DDCSV1.1 4 Axis controller
« Reply #554 on: May 03, 2017, 01:06:45 PM »
One more question,
Is it possible to restore the factory windows op system?

I can't find it... :scratch:

Offline Benedikt M.

  • Full Member
  • ***
  • Posts: 145
  • Country: de
    • My website
Re: DDCSV1.1 4 Axis controller
« Reply #555 on: May 03, 2017, 01:26:04 PM »
One more question,
Is it possible to restore the factory windows op system?

I can't find it... :scratch:
While there should be no reason to do so, yes you can.
This is the factory firmware, do not download if you don't want to restore to factory and lose your config!
Download stock/factory firmware
Instructions to flash it are as with my firmware.
While this will install the original firmware, it will not remove additional files / hooks / etc. that have been put in place by my firmware.
But again, if something doesn't work with my firmware, please report it or I can't fix it!


 :update:
News to the new firmware!
I have reverse-engineered the bootloader and written a program to generate complete NAND flash images that can be downloaded to the controller's NAND from within the controller's Linux. This means, we will soon get Ethernet and a fully custom boot splash :).

Best regards,
Benedikt

Offline antonio

  • Jr. Member
  • **
  • Posts: 26
  • Country: it
Re: DDCSV1.1 4 Axis controller
« Reply #556 on: May 03, 2017, 01:35:30 PM »
Hi Benedikt
How can i create two folders in the controller just to put my two differents settings for two machines?


Inviato dal mio iPhone utilizzando Tapatalk

Offline old Zozo

  • Jr. Member
  • **
  • Posts: 21
  • Country: hu
Re: DDCSV1.1 4 Axis controller
« Reply #557 on: May 03, 2017, 03:51:16 PM »
One more question,
Is it possible to restore the factory windows op system?

I can't find it... :scratch:
While there should be no reason to do so, yes you can.
This is the factory firmware, do not download if you don't want to restore to factory and lose your config!
Download stock/factory firmware
Instructions to flash it are as with my firmware.
While this will install the original firmware, it will not remove additional files / hooks / etc. that have been put in place by my firmware.
But again, if something doesn't work with my firmware, please report it or I can't fix it!



I'm sorry Benedict, that was just a stupid idea from me. :doh:


I read more back, so I just updated my controller for the first time.
From Ver: 2016-06-10-80   to your new version

It's all right, I'll try it soon. I had problems with G3 code earlier, I hope... not anymore .

Thank you very much for your advice and helpfulness.

Offline Benedikt M.

  • Full Member
  • ***
  • Posts: 145
  • Country: de
    • My website
Re: DDCSV1.1 4 Axis controller
« Reply #558 on: May 05, 2017, 12:40:01 PM »
NON-Technical TLDR:
Hmm, it seems like my controller is no more :zap:
This time though, I am not sure if I can actually fully recover mine.
I hope that I can fix it, otherwise, I might not be able to do any futher development anymore :(
It looks quite dark actually.

I was working on the USB Network Linux image and accidentially overwrote my entire NAND (flash memory).
It is now completely messed up and my backup image that I created a while back just won't boot. I have just found out, it was just half of the flash  :bang:

The factory utils have atleast helped me to get some sort of Linux running again, but it is unfortunately quite a bit different from what you all run.

What a bad day...
« Last Edit: May 05, 2017, 01:28:25 PM by Benedikt M. »

Offline antonio

  • Jr. Member
  • **
  • Posts: 26
  • Country: it
Re: DDCSV1.1 4 Axis controller
« Reply #559 on: May 05, 2017, 03:18:16 PM »
Ohhh no... we hope benedikt it will work again


Inviato dal mio iPhone utilizzando Tapatalk

Offline Benedikt M.

  • Full Member
  • ***
  • Posts: 145
  • Country: de
    • My website
Re: DDCSV1.1 4 Axis controller
« Reply #560 on: May 06, 2017, 10:03:57 AM »
Ohhh no... we hope benedikt it will work again
Thanks for the kind words. Unfortunately my controller has not yet risen from the dead. :(
I have now tried almost everything I can. The last resort would be desoldering the flash chip, externally programming it and then resoldering it. I don't think I can do that...

Hi Benedikt
How can i create two folders in the controller just to put my two differents settings for two machines?
Well this is an interesting idea. I could in principle make an utility that checks the keypad on boot.
If one key is pressed, it loads the first config otherwise the other one.
Would that work for you? Of course I can only make it, when my controller ever decides to live again...

I'm sorry Benedict, that was just a stupid idea from me. :doh:


I read more back, so I just updated my controller for the first time.
From Ver: 2016-06-10-80   to your new version

It's all right, I'll try it soon. I had problems with G3 code earlier, I hope... not anymore .

Thank you very much for your advice and helpfulness.
Glad you found it useful :beer:
I hope your problems will be fixed now.

Offline old Zozo

  • Jr. Member
  • **
  • Posts: 21
  • Country: hu
Re: DDCSV1.1 4 Axis controller
« Reply #561 on: May 06, 2017, 05:16:26 PM »
Unfortunately I still have problem with my controller.

If I make a bigger diameter pocket (e.g. diameter 17mm), everything is right.
But when I mill smaller pocket (e.g.  diameter 10mm),  tool steps down on a stairs.
G-codes is right, of course.  (see the photo)

Which parameter need I modify?

- minimum log radius of 4axis mode is 5mm  (I think, it uses only 4th axis)
- time duration between DIR and PULSE  5000 ns ( written by manual of DM556D driver)
- feedrate not to high (X and Y600 mm/min,  Z 50mm/min)
- acceleration 100m/s^2
- interpolation period 0.005 s   - perhaps it is small? I don't know...

Part of G-codes of diameter 10mm pocket is here:

N405 X-31.5 Y13.
N410 G01 Z1. F50.
N415 Z-2.
N420 G03 X-33.5 I-1. F600.
N425 X-29. I2.25
N430 X-36. I-3.5
N435 X-29. I3.5
N440 G01 X-29.5 Z-1.95
N445 G00 Z5.
N450 X-31.5
N455 G01 Z-1. F50.
N460 Z-4.
N465 G03 X-33.5 I-1. F600.
N470 X-29. I2.25
N475 X-36. I-3.5
N480 X-29. I3.5
N485 G01 X-29.5 Z-3.95
N490 G00 Z5.
N495 X-31.5
N500 G01 Z-3. F50.
etc. (same as above, only Z steps down)



 :( :( :(
Benedikt, I'm so sorry yours controller...  I'm sure, you can fix it.
You know, God takes mistake, too. :)




Offline PPRINT

  • Jr. Member
  • **
  • Posts: 41
  • Country: us
Re: DDCSV1.1 4 Axis controller
« Reply #562 on: May 06, 2017, 09:42:39 PM »
old Zozo....I am using the Leadshine Easy Servos on my rig....which says to use the 5000ns DIR/Pulse like your DM556D.  I tried that setting and it sounded like a freight train crashing.  I do not have the parameters in front of me right now....but I want to say I am closer to 500.

I have not tried interpolating a small bore yet to see if I am having similar problems.  I will be working with the machine in the morning and will give that try.


I just read your code before I was going to hit post.  I noticed you are using I,J,K for your arc moves.  I was not able to get arcs to work predictably with anything other than R's. I hate using R for an arc move...but I will stick with it for now.  Maybe here soon I can adjust my post to try all of the IJK combinations to see if it works for me.

Rob

The afternoon knows what the morning never suspected.

Offline old Zozo

  • Jr. Member
  • **
  • Posts: 21
  • Country: hu
Re: DDCSV1.1 4 Axis controller
« Reply #563 on: May 07, 2017, 09:10:13 AM »
Hi Rob, thanks for your answer and help. I will try decrease duration between DIR and PULSE.

I've read  about R type arcs somewhere, there was written, not to good idea to use it.
So I never tried.

Offline old Zozo

  • Jr. Member
  • **
  • Posts: 21
  • Country: hu
Re: DDCSV1.1 4 Axis controller
« Reply #564 on: May 07, 2017, 11:34:15 AM »
I tested again. Nothing changed. What I tried to change:

-time duration (Dir/Puls)
-interpolation period
-acceleration

I see in the display,
when the tool finished the spiral movement, Y axis steps minus 0.2 mm.
-but why?
This is the 0.2 mm stairs.


Could somebody runs my gcodes? Not machining, only in controller.

When gcodes run out, you need to see last coordinates.
Correct coordinates are :  X-29.5  Y13

My controller has false values,  X-29.5 and Y11.8 !

Thanks, Zoli

(attached file:   D10pocket.txt
Zmin= -10 mm
Zmax=5 mm
Pocket diameter= 10mm
Pocket centre= X-31.5 Y13)

Offline PPRINT

  • Jr. Member
  • **
  • Posts: 41
  • Country: us
Re: DDCSV1.1 4 Axis controller
« Reply #565 on: May 08, 2017, 07:14:01 AM »
Zoli, I just ran your code through my machine and it cuts a good bore without the stepping in your picture.

I captured a handful of parameters that I use for you to compare...not that I feel this is the problem.  They are just for reference since we both use Leadshine drivers.

#5
The afternoon knows what the morning never suspected.

Offline antonio

  • Jr. Member
  • **
  • Posts: 26
  • Country: it
Re: DDCSV1.1 4 Axis controller
« Reply #566 on: May 08, 2017, 07:18:20 AM »
I tested again. Nothing changed. What I tried to change:

-time duration (Dir/Puls)
-interpolation period
-acceleration

I see in the display,
when the tool finished the spiral movement, Y axis steps minus 0.2 mm.
-but why?
This is the 0.2 mm stairs.


Could somebody runs my gcodes? Not machining, only in controller.

When gcodes run out, you need to see last coordinates.
Correct coordinates are :  X-29.5  Y13

My controller has false values,  X-29.5 and Y11.8 !

Thanks, Zoli

(attached file:   D10pocket.txt
Zmin= -10 mm
Zmax=5 mm
Pocket diameter= 10mm
Pocket centre= X-31.5 Y13)
Probably you are using the backlashing function on setting of parameters


Inviato dal mio iPhone utilizzando Tapatalk

Offline PPRINT

  • Jr. Member
  • **
  • Posts: 41
  • Country: us
Re: DDCSV1.1 4 Axis controller
« Reply #567 on: May 08, 2017, 07:24:05 AM »
Great suggestion Antonio.  Interesting to hear Zoli's response.

Here are my parameters....my computer hiccuped earlier and posted before I could finish typing.

Parameter # = Value
5 = 5.000
33 = 950
34 = 1000
35 = 1000
36 = 5000
39 = PULES/DEGREES
390-392 = HIGH
416 = 100
418-420 = LOW
45-47 = 300
100-108 = 3000
263-265 = 300
99 = 1300

Rob
The afternoon knows what the morning never suspected.

Offline old Zozo

  • Jr. Member
  • **
  • Posts: 21
  • Country: hu
Re: DDCSV1.1 4 Axis controller
« Reply #568 on: May 08, 2017, 09:47:41 AM »
Rob,  thanks again for your help.

Antonio, that is good idea, but I have no backlash so its value is 0.

Rob, I  compared  parameters now.

Different:

  yours                                             my

33 = 950                                     50 mm/min
34 = 1000                                   125.984      value depends on pitch of spindle and microstep
35 = 1000                                   125.984
36 = 5000                                   262.467
         
390-392 = HIGH                          LOW
416 = 100                                   5000         I tried 100 too, but no better
                       
45-47 = 300                                100
100-108 = 3000                           1200
263-265 = 300                             100
99 = 1300                                   100



 I can not see capital differences, so I am loser yet.  :(



Offline PPRINT

  • Jr. Member
  • **
  • Posts: 41
  • Country: us
Re: DDCSV1.1 4 Axis controller
« Reply #569 on: May 08, 2017, 10:26:15 AM »
Zoli, there are no losers in this hobbie. It's all just challenges to sharpen our skills.

I have 25mm pitch ballscrews on x&y axis and 5mm on z. 

Because of that high pitch I have my micro steps set really high. I'll have to validate tonight when I get home.

Rob

Sent from my SAMSUNG-SM-G900A using Tapatalk

The afternoon knows what the morning never suspected.

Offline old Zozo

  • Jr. Member
  • **
  • Posts: 21
  • Country: hu
Re: DDCSV1.1 4 Axis controller
« Reply #570 on: May 08, 2017, 01:04:02 PM »
Rob,
my screw have only 1/4" pitch. Pulse/mm is correct at me, every size of parts is  between  +/-0.01mm.
Bearing fits in the pocket, like eggs in the mouth of a dog :)

Unfortunately controller sends false command to the driver,  and only when is a  smaller diameter of pocket

Perhaps this is a firmware error...


Offline old Zozo

  • Jr. Member
  • **
  • Posts: 21
  • Country: hu
Re: DDCSV1.1 4 Axis controller
« Reply #571 on: May 08, 2017, 01:54:17 PM »
waoooo !!!

Rob, you are the other God of this forum :)
(Pardon, No.1  is Benedikt)

I thought, is it possible, controller hates low pulse/mm?
I set 1000, as yours controller.

Happen wonder! G-codes are running right!

I will increase value of  puls/mm and all are right :wave:

Offline PPRINT

  • Jr. Member
  • **
  • Posts: 41
  • Country: us
Re: DDCSV1.1 4 Axis controller
« Reply #572 on: May 08, 2017, 02:45:28 PM »
Zoli, your words are way to kind.

I set the pulse/mm by dividing my micro steps by the ballscrew lead.
25,000 microsteps/25mm lead =1000pulse/mm

The eggs in the dogs mouth is about the funniest thing I've heard in a while.
That's what I already love about MadModder. There are so many colorful people here so willing to be real. That's a treat for me.

Rob

Sent from my SAMSUNG-SM-G900A using Tapatalk

The afternoon knows what the morning never suspected.

Offline old Zozo

  • Jr. Member
  • **
  • Posts: 21
  • Country: hu
Re: DDCSV1.1 4 Axis controller
« Reply #573 on: May 08, 2017, 03:43:33 PM »
Rob, I like this forum as well,  I've got a lot of useful advice here.
Even though my English knowledge is very poor :)


Important for new arrivals:

I tested my controller still.

value of pulse/mm never be under 250.

If it is 250,  accuracy of my controller is X0.002  and Y0.001
If this value lower, the tool could overstep a bit.

Offline RotarySMP

  • Full Member
  • ***
  • Posts: 225
  • Country: at
Re: DDCSV1.1 4 Axis controller
« Reply #574 on: May 09, 2017, 09:44:55 AM »
My controller arrived from china yesterday. It will run this little machine one day...
http://www.cnczone.com/forums/benchtop-machines/142459-small-aluminium-cutting-mill-4.html

Is there a change log listing the overview of changes so far made to this controller?
Mark