New ethercat / probe basic control for minimonster

More
1 year 3 days ago #337389 by ihavenofish
I tried to ask chat gpt and white it did give me some insights... its just maddeningly stupid and useless. Its pulling info and syntax form 100 different versions, and keeps changing syntax every time to ask.

What i have found for sure is i have addresses from 2048 to 2102, and seemingly nothing at the "expected" 2000/2001 address for turning the spindle on. Except that it did go into run mode at one point.

blah!

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

More
1 year 3 days ago #337401 by ihavenofish
so modpoll can talk to the drive... mb2hal cannot. all settings seem to be correct.
what could be missing/wrong?

I've played with various timeouts and other things, i get the same transaction failure whether the drive is turned on or off, so its not even sending the message.

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

More
1 year 3 days ago #337402 by ihavenofish
So function 3 and 4 in modpoll are reversed from mb2hal. Because of course it is. So I need function 3 vs 4 in modpoll. And I need to specify the hex number (2100 for example), and not the decimal 8448. NOW it is reading.

I know I have registers from 2048 to 2102 but I don't know what they do. apparently what little instructions I had about the drive are incorrect.

Have not tried writing yet cause I don't want to write something incorrect

Thoughts on how to map the registers in a logical way?

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

More
1 year 3 days ago #337404 by Hakan
I don't know what a logical way is to you, but it sounds like normal Modbus.
Didn't see a problem with byte order yet? Maybe that will come, maybe maybe not :)

If you now go back to my example snippets, you may see how the function code and register address
are mapped into a hal pin.
Didn't include the port setup guess it is different everywhere
I would start writing with write to a harmless register, perhaps something that switches on a led, I don't know what is available.

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

More
1 year 3 days ago #337406 by ihavenofish
ah yes. ill try you thing again. chat gpt has begun feeding me a loop of trash now. haha.

The main thing l get is "pin does not exist". ill try yours now and see if i get the same.

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

More
1 year 3 days ago - 1 year 3 days ago #337407 by ihavenofish
yes. pin does not exist on yours too. (i changed the names of course to match). it post this before the parsing of the ini... which seems wrong. it should parse first right? I think it was before.

not typing from the same machine so i cant copy paste, but im using your hal snippet but with my names (mb2hal.00.start_stop) etc.
Code:
# Load mb2hal for modbus operation of the sinusM vfd loadusr -Wn sinusM mb2hal config=sinusM_spindle.ini ... # Set max limit rpm for spindle # net spindle-max-freq       sinusM.05.read-max-freq.float spindlemax.max         # Max frequency(rps) for motor net  spindle-speed-scale   spindle.0.speed-out-rps-abs   sinusM.01.set-freq     # Just the principle net spindle-vel-positive    mux4.0.sel0           abs.spindle-speed.sign net spindle-enable          mux4.0.sel1 net spindle-cmd-out         mux4.0.out            sinusM.04.run-command  # Stop/fwd/rev
Last edit: 1 year 3 days ago by ihavenofish.

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

Time to create page: 0.266 seconds
Powered by Kunena Forum