Huanyang Inverter control

More
29 Jun 2021 19:14 #213259 by andypugh
Replied by andypugh on topic Huanyang Inverter control

There are no errors only no rotation.  I checked the halshow meter and some of the signals are not updating.  I missed the memo on updating the HAL file to connect any of the xxx.0.xxx so that may be the issue.  Is there an example of how that is done?  is it => like the pins?
 

A HAL net consists of a signal name (which is something you choose for yourself) that links together a number of HAL pins (which are created by the system and have fixed names). Many of the ones you care about here come from the motion module: linuxcnc.org/docs/2.8/html/man/man9/motion.9.html

Your signal names were presumably chosen by whomever you copied the code from? They look unusual, but that doesn't matter as long as they are connected at both ends. 
But, for example, this won't work
net spindle-cw spindle.0.forward
...
net spindle-fwd vfd.spindle-forward
because whilst the pin names are correct and the syntax is valid, the pins are connected to two different signals. 

And signals do nothing by themselves, they only serve to pass numbers from one hal pin to one or more other HAL pins. 

My suspicion is that in one HAL file you are connecting the spindle.0 pins to one set of signal names, and in the other HAL file you are connecting a different set of signal names to the VFD pins. (signal names and HAL pin names are in valid across all HAL files, with the proviso that the components that create the pins (including GUIs) have to be loaded before the pins that they create can be used. 
 

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

More
29 Jun 2021 20:34 #213265 by Craig E
Replied by Craig E on topic Huanyang Inverter control
Thanks Andy,
I will see if I can figure it out how to connect them correctly.

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

More
29 Jun 2021 22:53 #213288 by Craig E
Replied by Craig E on topic Huanyang Inverter control
Thanks Andy,
I will see if I can figure it out how to connect them correctly.

That fixed it!! Thanks Andy I never would have connected the dots on this one.
Man this is a steep learning curve. on both LinuxCNC and the configuration.

I should be able to run a test part soon.

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

Time to create page: 0.064 seconds
Powered by Kunena Forum