Mesa & Modbus

More
26 May 2018 05:20 #111139 by rusmannx
Mesa & Modbus was created by rusmannx
Hi everyone. I've been controlling my Huanyang VFD via modbus for a while, but I recently changed from a parallel port installation (C11 breakout board) to a Mesa 5i25+7i76. I've copied over the necessary bits from the old HAL files and I can hit the spindle forward/reverse buttons and get the VFD to click, but when I use the + to speed up or - to speed down I get nothing.

My guess is that the HAL pins I'm connected to from my old paraport config are pointing to the wrong pins for a Mesa config. Can someone tell me what I should be looking for? What pins do the + and - point to? I have the config files zipped up and available at the link below if taking a look would help. I've been messing with this for hours and can't seem to get it working.
www.dropbox.com/s/qbsv08p6lh051dk/russtuffMesa.zip?dl=0

Thanks in advance to anyone who can help.

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

More
26 May 2018 06:04 #111140 by InMyDarkestHour
Replied by InMyDarkestHour on topic Mesa & Modbus
Just guessing is this line in custom_postgui.hal an issue

# SET SPINDLE AT SPEED INDICATOR TO TRUE IF WE CHOSE NO FEEDBACK
# DON'T USE THIS LINE IF USING MODBUS FOR RPM COMMANDS
sets spindle-at-speed true
The following user(s) said Thank You: Mike_Eitel

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

More
26 May 2018 06:10 - 26 May 2018 06:11 #111141 by rusmannx
Replied by rusmannx on topic Mesa & Modbus
Thank you for digging in. I've tried disabling that line during testing and it didn't make a difference. Funny, I wonder why I bothered to note I shouldn't use it when controlling via modus.
Last edit: 26 May 2018 06:11 by rusmannx.

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

More
26 May 2018 06:16 #111142 by InMyDarkestHour
Replied by InMyDarkestHour on topic Mesa & Modbus
Does the spindle respond to MIDI commands?

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

More
26 May 2018 06:19 #111143 by rusmannx
Replied by rusmannx on topic Mesa & Modbus
It does not.

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

More
26 May 2018 08:50 #111144 by rodw
Replied by rodw on topic Mesa & Modbus

I've tried disabling that line during testing and it didn't make a difference.


I think if you disable that line, you would need to uncomment this line
#net spindle-at-speed motion.spindle-at-speed <= near.0.out

but I'm not sure its formatted correctly. I would have done it this way
net spindle-at-speed <= near.0.out
net spindle-at-speed  => motion.spindle-at-speed

My concern is that if the spindle is always at speed as per "that line", why would it ever attempt to change the speed?

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

More
26 May 2018 13:16 - 26 May 2018 14:13 #111146 by rusmannx
Replied by rusmannx on topic Mesa & Modbus
I'll test this right away and update. Thank you.

Update: I've tried both suggestions but the VFD still isn't increasing Hz when asked. Rodw I replaced my line with your two and it does make better sense to me visually.

It's been a while since I created my original modbus config but I believe the reason I needed to enable spindle at speed is because I'm not currently reading spindle RPM. Having spindle at speed enabled allows a program to continue after an RPM when called, else the program pauses indefinitely awaiting the spindle to reach the requested speed. With my new Mesa Hardware I will have the ability to read a quadrature spindle signal and at that time I should no longer need spindle it speed.
Last edit: 26 May 2018 14:13 by rusmannx.

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

More
26 May 2018 20:49 #111168 by rodw
Replied by rodw on topic Mesa & Modbus
I'm not 100% up with Spindles because my machine is a plasma cutter but I think you will always need a spindle at speed because motion will not start without it.
linuxcnc.org/docs/2.7/html/config/core-components.html

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

More
27 May 2018 04:07 #111178 by DanMN
Replied by DanMN on topic Mesa & Modbus
I have a fully functioning config for a Huangyang VFD working with a Mesa 7176e via Modbus - I'll share it tomorrow when I'm back in the evil laboratory.

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

More
27 May 2018 14:13 #111188 by rusmannx
Replied by rusmannx on topic Mesa & Modbus
Right on. Thanks!

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

Time to create page: 0.102 seconds
Powered by Kunena Forum