Downdraft design questions

More
5 years 10 months ago #193335 by txtrone
Replied by txtrone on topic 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.

More
5 years 10 months ago #193338 by rodw
Replied by rodw on topic Downdraft design questions
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.

Please Log in to join the conversation.

More
5 years 10 months ago #193342 by txtrone
Replied by txtrone on topic Downdraft design questions

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.

More
5 years 10 months ago #193354 by rodw
Replied by rodw on topic Downdraft design questions
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?

Please Log in to join the conversation.

More
5 years 10 months ago #193366 by txtrone
Replied by txtrone on topic Downdraft design questions

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.

More
5 years 10 months ago #193373 by txtrone
Replied by txtrone on topic Downdraft design questions

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.

More
5 years 10 months ago #193384 by rodw
Replied by rodw on topic Downdraft design questions
So install a decent text editor, from the command line
Code:
sudo apt-get install geany

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
Code:
[HAL] HALUI = halui HALFILE = my_LinuxCNC_machine.hal HALFILE = ddraft4x2.hal HALFILE = custom.hal POSTGUI_HALFILE = postgui_call_list.hal SHUTDOWN = shutdown.hal
Save the ini file
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.
Code:
net zone0 <= ddraft4x2.0.trigger-0 net zone0 => hm2_7i76e.0.7i76.0.0.output-00 net zone1 <= ddraft4x2.0.trigger-1 net zone1 => hm2_7i76e.0.7i76.0.0.output-01 net zone2 <= ddraft4x2.0.trigger-2 net zone2 => hm2_7i76e.0.7i76.0.0.output-02 net zone3 <= ddraft4x2.0.trigger-3 net zone3 => hm2_7i76e.0.7i76.0.0.output-03 net zone4 <= ddraft4x2.0.trigger-4 net zone4 => hm2_7i76e.0.7i76.0.0.output-04 net zone5 <= ddraft4x2.0.trigger-5 net zone5 => hm2_7i76e.0.7i76.0.0.output-05 net zone6 <= ddraft4x2.0.trigger-6 net zone6 => hm2_7i76e.0.7i76.0.0.output-06 net zone7 <= ddraft4x2.0.trigger-7 net zone7 => hm2_7i76e.0.7i76.0.0.output-07
Save the file and from the command prompt run linuxcnc by typing would you believe
Code:
linuxcnc

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:
Code:
# ---setup home / limit switch signals--- net x-home-sw => joint.0.home-sw-in net x-neg-limit => joint.0.neg-lim-sw-in net x-pos-limit => joint.0.pos-lim-sw-in

Before these lines, probably where it says
# external input signals
you just need to define these signals
Code:
net x-home-sw <= hm2_7i76e.0.7i76.0.0.input-12-not net x-neg-limit <= hm2_7i76e.0.7i76.0.0.input-13 net x-pos-limit <= hm2_7i76e.0.7i76.0.0.input-20-not

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.

More
5 years 10 months ago #193395 by txtrone
Replied by txtrone on topic Downdraft design questions

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.

More
5 years 10 months ago #193398 by rodw
Replied by rodw on topic Downdraft design questions
Actually, thinking about it a bit further, I assumed your x & Y axes were the other way round (X axis being the short axis.

You may need to swap some pins around for
ddraft4x2.0.y-pos with ddraft4x2.0.x-pos
Code:
loadrt ddraft4x2 addf ddraft4x2.0 servo-thread setp ddraft4x2.0.y-boundary-0 36.0 setp ddraft4x2.0.y-boundary-1 72.0 setp ddraft4x2.0.y-boundary-2 108.0 net xpos <= axis.x.pos-cmd net ypos <= axis.y.pos-cmd net xpos => ddraft4x2.0.y-pos net ypos => 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.

More
5 years 10 months ago #193400 by txtrone
Replied by txtrone on topic Downdraft design questions

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.

Time to create page: 1.361 seconds
Powered by Kunena Forum