Lichuan 4 axis stepper need help-

More
8 months 4 weeks ago #342387 by NWE

but did you try to go to op-enabled without the cia402 component?

 
That echos my thoughts, I considered throwing that idea out there but decided I'm too much of a newby in this ethercat business to be making too much noise here without trying stuff out on hardware first.

My drive and motors are expected to show up today. Not that that makes it a rush to get this figured out. I still need to decide what I'll build with it once it's working. image missing /media/kunena/emoticons/smile.png

Please Log in or Create an account to join the conversation.

More
8 months 4 weeks ago #342422 by rodw
So I reverted to Dominic's original component cia402.comp based on feedback here so I could get back to basics
Now I have learnt/refreshed my knowledge about ethercat, I used halshow to list all of the lcec pins and noticed the familiar value of 561 but it was on the wrong pin. Checking the XML, I had included a torque pin but there is no PDO or SDO for it (I had tested this earlier with raw ethercat command line commands). So I deleted the entry in my xml. Everything is now mapped correctly. But only Drive/Joint 0 works correctly. lcec and cia402 follow each other but motion only happens on X (Joint/Drive 0)
Joint position/fb follow lcec and cia402 when jogging but for some reason the 3 higher drives don't move.

I've attached the revised XML and my CIA402 hal and ini files. I don't tthink I have mapped anything incorrectly in hal
The following user(s) said Thank You: NWE, jarvis

Please Log in or Create an account to join the conversation.

More
8 months 3 weeks ago - 8 months 3 weeks ago #342449 by NWE
My order showed up today! image missing /media/kunena/emoticons/smile.png

I tried a minimal hal test in the terminal. I can power up each of the 4 motors, I set control word 6, 7, 15, each motor's shaft locks when I reach 15. But I didn't get anything to move yet. Not even the first motor. I didn't try the cia402 yet.

For my ethercat-conf.xml I directly copied from rodw's post above. The only thing I changed on it was the filename.
Last edit: 8 months 3 weeks ago by NWE.
The following user(s) said Thank You: jarvis

Please Log in or Create an account to join the conversation.

More
8 months 3 weeks ago - 8 months 3 weeks ago #342450 by rodw
Hmm, once I plugged the Y axis in to the drive, everything is working perfectly on all drives. Sometimes I am an idiot!
Something funny going on. The maximum speed I can get out of this is around 400 rpm. Thats simple square wave arduino territory. I know I can get 800 rpm out of a similar drive on a Mesa card and a DM542a stepper driver. I have driven the same stepper motors out to 1000-1500 rpm and more in the past.

My ini file (attached) is set up for a metric machine using a Mod 1.5 40 tooth pinion and a 5:1 gearbox.
That equates to a 60mm diameter pinion (1.5x40) with a circumference of 188.49559mm divide by 5 and we have 37.69911 mm per rev, = scale of 265.25 steps per mm based on Lichuan's default 10,000 steps per rev.
I've tested this with G1 x188.49 F2000 and it moves exactly 5 revs on the bench. 
Time to dig a bit deper into the  Lichuan config program which means I have to boot windows uggg!

So its been a long way to get there but you guys are good to go with Dominic's component, this in i file and my hal file in my last post!
Last edit: 8 months 3 weeks ago by rodw.
The following user(s) said Thank You: NWE, jarvis

Please Log in or Create an account to join the conversation.

More
8 months 3 weeks ago #342451 by Hakan
NWE, with controlword at 15 set op-mode to 8 (csp) and try to move again.
Don't move a lot at once, it can overwhelm the drive. Linuxcnc moves just a tiny distance every servo cycle.
Should see it on position feedback.

Please Log in or Create an account to join the conversation.

More
8 months 3 weeks ago #342452 by rodw

My order showed up today! image missing /media/kunena/emoticons/smile.png
Great! 2 idiots now! So just to be sure you are using my latest XML without the torque pins and dominic's cia402.comp component?
That works. My stuff is going back to the drawing board

Please Log in or Create an account to join the conversation.

Time to create page: 0.315 seconds
Powered by Kunena Forum