Planning - Bridgeport Interact 1 linuxCNC Retrofit

More
10 years 7 months ago #71870 by cncnoob1979
csbrady,

You Sir, are awesome! Thank you! I have been going through the code inside and out. I can read and basically understand the code in HAL but so far my understanding is not enough to create full expressions. However, I'm getting there thanks to you guys.

Thanks again!

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

More
10 years 7 months ago - 10 years 7 months ago #71922 by cncnoob1979
OK! I have most of my test panel working. I decided to use the jog buttons on the panel anyway since I already had it wired. I had to figure out how to use or2. The exercise was good for my understanding of HAL.

Im starting to see how things fit. I had to separate the code for my tiny brain to handle.

I do have a issue now that Im not sure where to look to fix it. Below is the section of my HAL with overrides. Im using a cheap Chinese VFD with their MODBUS. The spindle override is where Im having issues.

At 5% override I am at 30 hz on my spindle, the lowest allowed setting in my parameters in the VFD.
at 19% override I am at 65 hz the highest setting allowed by my parameters in the VFD.

The scale of my override in halui continues from 19% to 100% with the pot adjustment as expected, however this has no effect otherwise. I have tried to change scale and other factors and still nothing has changed this behavior.

csbrady was kind enough to give me his hal which this is part of. He is using analog voltage to his VFD for control. I do not know if this matters. My spindle scale is up to 100% max in the INI.

Any ideas?
Code:
################################################################### # "Overrides" # ################################################################### # "Read analog inputs from the override knobs. Full scale will be"# # "approximately 24v. Scale the input accordingly. 1.0 = 100%" # # # # "Scale up the raw values 100x so that when converted to" # # "integers we have good resolution." # # "The results will be between 0 and 2400." # ################################################################### ################"--- Feed Override ---"################## # Convert from float to S32 # ######################################################### # "Read in analog input and send to halui.feed-override" # "Enable direct count input" net scale_ovr => scale-fo.gain scale-ro.gain scale-so.gain sets scale_ovr 100.0 #600 net fo-ena halui.feed-override.count-enable halui.feed-override.direct-value sets fo-ena 1 # "Scale down the value to a percentage" net scf-scale => halui.feed-override.scale sets scf-scale 0.000852 net scf-raw scale-fo.in <= hm2_5i25.0.7i77.0.0.analogin0 net scf-raw-adj cnvf.in <= scale-fo.out net scf-s halui.feed-override.counts <= cnvf.out ################"--- Rapid Override ---"################# # Convert from float to S32 # ######################################################### # "Read in analog input and send to halui.rapid-override" # "Enable direct count input" net ro-ena halui.rapid-override.count-enable halui.rapid-override.direct-value sets ro-ena 1 # "Scale down the value to a percentage" net scr-scale => halui.rapid-override.scale sets scr-scale 0.00044 net scr-raw scale-ro.in <= hm2_5i25.0.7i77.0.0.analogin1 net scr-raw-adj cnvr.in <= scale-ro.out net scr-s halui.rapid-override.counts <= cnvr.out ###############"--- Spindle Override ---"################ # Convert from float to S32 # ######################################################### # "Read in analog input and send to halui.spindle-override" # "Enable direct count input" net so-ena halui.spindle-override.count-enable halui.spindle-override.direct-value sets so-ena 1 # "Scale down the value to a percentage" net scs-scale => halui.spindle-override.scale sets scs-scale 0.0004 #0.0005 # "Add an offest so that we have a minimum override of 30%" net scs-offset => scale-so.offset sets scs-offset 100 net scs-raw scale-so.in <= hm2_5i25.0.7i77.0.0.analogin2 net scs-raw-adj cnvs.in <= scale-so.out net scs-s halui.spindle-override.counts <= cnvs.out

EDIT: Figured it out. My spindle is being commanded to go to 10K rpms. Looks like I have some reading to do.
Last edit: 10 years 7 months ago by cncnoob1979.

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

More
10 years 7 months ago #72061 by cncnoob1979
This past weekend I had 3 complete freezes of linuxcnc. I have decided to replace the motherboard and related components. This will allow me to upgrade to Linux Mint LMDE. The processor and hardware will be much more powerful. After reading about it in this thread ,
I decided to go with this hardware.

I am still having issues in Gmoccapy frontend, listed in this thread , any ideas on a solution? I am having strage behavior with de-activating my software E-stop in Gmoccapy.

GIGABYTE GA-H81M-S2PH LGA 1150 Intel H81 74$



G.SKILL Ripjaws X Series 8GB $38.00
Kingston SSDNow V300 Series 2.5" 60GB $43.00
Intel G3260 3MB Haswell Dual-Core 3.3 GHz $60.00

Came to $215.00 shipped. Same microATX formfactor.

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

More
10 years 7 months ago #72074 by cncnoob1979
Hey!

One of my pots just started smoking and shorted out. (the power surge shut down the 24v system) I have them wired with all sharing a common 24v source and all sharing the same common GND.

I have posted a quick and crude wiring diagram of how its wired. Is the an acceptable way to wire these, or am I missing something?

The GND is the same ground I'm using in the entire machine. This connection point is shared with the 12v power-supply, and the 24v source is the same that is powering my panel buttons and connects to my field power. The overrides(pot pin 2) are going to the 0,1,2 pins of the 7i77. Should I run another ground wire (star config) back to the grounding plane? Or did I have bad pot to begin with?


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

More
10 years 7 months ago #72130 by csbrady
Your wiring diagram appears to be correct as is your description for how they are wired. No need to do star wiring for the ground. Either a bad pot or it not really wired like you think.

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

More
10 years 7 months ago #72191 by andypugh

cncnoob1979 wrote: Hey!
One of my pots just started smoking and shorted out. (the power surge shut down the 24v system)


Is there any load on the output? (I assume it goes to a Mesa analog input, in which case it ought to be "no")

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

Time to create page: 0.079 seconds
Powered by Kunena Forum