New ethercat / probe basic control for minimonster

More
1 year 7 months ago #323335 by rodw
controlword and statusword are part of the cia402 standard. We write to control word and read the results in status word. Just look at the examples and make sure you have the ones that connect to cia402.comp.

Use AI to get a tutorial on cia402 state machine. your manual is saying there is a 32 bit value (2 x 16 bit values) and it rx (receives a value) so it is an S32 in pin in hal
 

Please Log in to join the conversation.

More
1 year 7 months ago #323356 by ihavenofish
ugh. haha

if i know it was gonna be this disorganised i would have not bothered. I though there was a pretty clear instruction path.

Please Log in to join the conversation.

More
1 year 7 months ago #323396 by ihavenofish
Alright, I lied, I haven't given up yet :P
I went and tuned the X and Y. not perfect, but tracks within a couple microns and overshoots only 4-10 microns during 1G acceleration. Also only deviates 2-3 microns when I yank on the spindle with all my weight while moving.

If i can get the linuxcnc part going this thing is gonna rip :)

Please Log in to join the conversation.

More
1 year 7 months ago #323399 by rodw
Awesome!

Start with the cia402 example and only add stuff from the manual you need
github.com/dbraun1981/hal-cia402
Should be easy,

Please Log in to join the conversation.

More
1 year 7 months ago #323404 by ihavenofish
problem is i have no idea what i need haha.

i do have an xml for the drive but looking inside of it, i guess that's unrelated here.

I made a twincat project just to see, and the drives are telling me i have a data type length mismatch or something. So thats not helping me any haha.

sigh. were in the "i dont even know what questions to ask" part of the project.

Please Log in to join the conversation.

More
1 year 5 months ago #328923 by ihavenofish
Ok, time to get back to this.

What am I doing again? :P

Please Log in to join the conversation.

More
1 year 6 days ago #337108 by ihavenofish
Poke. Figured I should stick this here.

Machine is back together with some new upgraded, ethercat is working for the xyz.

Now I'm on to making the spindle work with modbus.
Is there a simple step by step instruction to set this up? I got a usb adapter, and I'm running qtdragon. In addition to just tuning on and off, id like it to display the true spindle speed and the load.

Thanks

Please Log in to join the conversation.

More
1 year 4 days ago #337264 by ihavenofish
Hm.
Drive connected to adapter, but they aren't talking. Seems everything is set right, i dont see any mistakes.

hmmm

Please Log in to join the conversation.

More
1 year 4 days ago #337270 by Hakan
I have had to set some register in the drive to make it use Modbus.
Could be permission problem, almost anything.
Load the modbus driver only using halrun and diagnoze from there.
Something like this  forum.linuxcnc.org/24-hal-components/310...-speed-control#75848
but for your Modbus drive, not the huanyang.

Please Log in to join the conversation.

More
1 year 3 days ago #337288 by ihavenofish
i'm not in linuxcnc yet. i'm testing it on windows. Drive settings are right. Its not receiving any data back of any kind. Feels like a cable thing. hmmm

Please Log in to join the conversation.

Time to create page: 0.393 seconds
Powered by Kunena Forum