- Posts: 377
- Thank you received: 0
Downdraft design questions
rodw wrote: Yes, you need 8 pins like that using the pin names from the component, like I created. zone0,zone1, .... zone7
In which file does that code reside?
Please Log in to join the conversation.
Please Log in to join the conversation.
rodw wrote: I think you said you already have the downdraft component set up so kepe it in that file. Check how I did it in the Sim I shared earlier. You could put it in your main hal file. don't forget to loadrt and addf the component too.
I followed your instructions in order to get the sim going, it works great. I am just a bit lost trying to cut that over to my 'live' version.
I need to do some more reading on HAL.
Please Log in to join the conversation.
Can you attach your hal and ini files?
Also, can you list the pins on the 7i76e you wish to use for your solenoids?
Please Log in to join the conversation.
rodw wrote: Can you attach your hal and ini files?
Also, can you list the pins on the 7i76e you wish to use for your solenoids?
Sure thing, I will be at the shop later today and I will post the files. Right now I have the solenoids connected to output pins 17 - 24 on TB6.
Please Log in to join the conversation.
rodw wrote: Sorry, been busy today.
Can you attach your hal and ini files?
Also, can you list the pins on the 7i76e you wish to use for your solenoids?
Pins 17 - 24 on TB6.
Attached are my hal and ini files
Attachment not found
Attachment not found
Please Log in to join the conversation.
So now from the instructions in the original post
forum.linuxcnc.org/plasma-laser/40517-do...ions?start=10#188738
Copy the file ddraft4x2.hal from into your config folder.
Now open your ini file in geany and locate the [HAL] section and add the new file to it
So now Linuxcnc will know to open our extra ddraft4x2.hal file.
From the 7i76e manual, you have used Output 0 to Output 7 so copy the following lines into our new file.
if there are any errors, note them. I am assuming you have already compiled and installed the component
It is possible there are some typos above. To guard against this, you may like to check the pin nema in halshow before you make these changes
If for any reason you change your ini file, you will just need to add that line back in.
From where you are now, I would add your limit switched by hand. Part of the job is already done for you in your main ini file where you will find blocks like this:
Before these lines, probably where it says
# external input signals
you just need to define these signals
This is where its important to check everything with halshow to know if you need to use the -not signal and everything is working as expected when you trigger a physical input
Please Log in to join the conversation.
rodw wrote: So now...
Huge thanks rodw! I will get down to the shop tomorrow and report back on how it goes.
Please Log in to join the conversation.
You may need to swap some pins around for
ddraft4x2.0.y-pos with ddraft4x2.0.x-pos
Just jog around your table first like you did in the sim before adding the trigger pins to confirm its working the way you want..
Please Log in to join the conversation.
rodw wrote: Actually, thinking about it a bit further, I assumed your x & Y axes were the other way round (X axis being the short axis.
The operating station is in the middle of the table, on the long portion, so I swapped x and y. Thanks for this additional info, I am sure you saved me some headache.
I am drinking one more last beer, then off to bed. We closed the shop for the holidays, so I have the place to myself this week. You are 16 hours ahead of me, hopefully I will have the solenoids operating when you log on tomorrow... or I will have a bunch of additional questions. :lol:
Please Log in to join the conversation.
