Downdraft design questions

More
28 Dec 2020 02:19 #193335 by txtrone
Replied by txtrone on topic Downdraft design questions

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 or Create an account to join the conversation.

More
28 Dec 2020 02:39 #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.
The following user(s) said Thank You: txtrone

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

More
28 Dec 2020 04:38 #193342 by txtrone
Replied by txtrone 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.


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 or Create an account to join the conversation.

More
28 Dec 2020 12:25 #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 or Create an account to join the conversation.

More
28 Dec 2020 13:58 #193366 by txtrone
Replied by txtrone on topic Downdraft design questions

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 or Create an account to join the conversation.

More
28 Dec 2020 18:21 #193373 by txtrone
Replied by txtrone 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?


Pins 17 - 24 on TB6.

Attached are my hal and ini files

File Attachment:

File Name: my_LinuxCN...hine.hal
File Size:10 KB

File Attachment:

File Name: my_LinuxCN...hine.ini
File Size:4 KB
Attachments:

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

More
28 Dec 2020 22:51 - 28 Dec 2020 22:52 #193384 by rodw
Replied by rodw on topic Downdraft design questions
So install a decent text editor, from the command line
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
[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.
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
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:
# ---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
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
Last edit: 28 Dec 2020 22:52 by rodw.
The following user(s) said Thank You: txtrone

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

More
29 Dec 2020 03:19 #193395 by txtrone
Replied by txtrone on topic Downdraft design questions

So now...


Huge thanks rodw! I will get down to the shop tomorrow and report back on how it goes. :)
The following user(s) said Thank You: rodw

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

More
29 Dec 2020 04:14 #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
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..
The following user(s) said Thank You: txtrone

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

More
29 Dec 2020 04:52 #193400 by txtrone
Replied by txtrone 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.


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:
The following user(s) said Thank You: rodw

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

Moderators: snowgoer540
Time to create page: 0.187 seconds
Powered by Kunena Forum