Planning - Bridgeport Interact 1 linuxCNC Retrofit

More
10 years 7 months ago - 10 years 7 months ago #71832 by cncnoob1979
csbrady,

I have been trying for the past few days to implement your code into my own. I have the start/pause and stop buttons working as expected. However I have not been able to get your code working for jogging. If I go into hal configuration and enable jog axis and set a jog rate it works as expected for the enabled axis.

I have my pot signal (24v at the moment) to 0,1,2 analog inputs on the 7i77 board connected and can see the changes in axis gui with different voltages applied.

Im trying to figure out where you are getting the source signals from. I understand where they are actually physically coming from, but I am not able to pinpoint each out in your code. Its way over my head at the moment.

I looked in the linuxcnc documentation but it seems your code is way more advanced then my little brain can handle. Once functioning correctly I'm sure Ill understand it.

So can I buy you a beer to help me out? :) I'm sure my configs are all good and messed up by now, sorry for the mess!

EDIT: Perhaps the mystery of your inputs are located in you custom hal file? ....

Code:
############################################################### # Auto mode output signal, used to gate jog controls ############################################################### # --- MACHINE-IS-ENABLED --- net ModeIsManual halui.mode.is-manual => not.1.in net ModeAuto not.1.out => hm2_5i25.0.7i77.0.0.output-01
Here is a piece of the puzzle that I did not use? I assumed it was not for the actual jogging of the machine... now I'm double checking everything again.

File Attachment:

File Name: bridgeport-2-3.hal
File Size:19.12 KB


File Attachment:

File Name: bridgeport-2-3.ini
File Size:3.68 KB


File Attachment:

File Name: bertha.hal
File Size:22.05 KB
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 #71833 by cncnoob1979
csbrady,

Nevermind... I went back into the thread and found your postgui hal file and seen where they are connected. Sorry for any inconvenience, Ill drive right in and connect my switches.

.....

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

More
10 years 7 months ago - 10 years 7 months ago #71839 by cncnoob1979
Can someone please lend me a hand on this code, or point me in a direction to read up on this situation?

I'm trying to use a 3 position switch to select each axis; X Y Z to enable jogging to that axis. The catch is... it a single throw 2 NO switch. I cant seem to find an instance of this anywhere. I can only send two signals, one to y and one to z, ideally I would need to send 3 signals.

Guessing.... I would think I would need something of an if statement;
Code:
if y or z selected the x not enabled. If y or z not selected x is enabled.

I don't know how to go about doing this. If need be, I will just use a different switch. I rather not do this if I can implement this current one.

csbrady,
Thanks for the help so far! I'm really starting to think the 15 inch touch screen is the way to go. The setup options with a touch screen is really attractive at the moment. I'm going to look for some tonight and I might just purchase. Btw, how do you PM on the forums?
I'm very glad I decided to do a bunch of test panels. I will NOT be using a increment selector, the MPG is suitable enough I would not need it. Also I will not be using the X,Y or Z buttons on my panel. Too cumbersome for me and looks unclean. I'm back to your design, I'm pretty sure you had it figured out correctly when you cut yours. I do like yous, but I have to be different :P

Andy,
I ordered my engraving end mills and new DA 180's, they should be in by around Monday or so. Thanks so much for pointing me that direction. It should look very sharp after I engrave the panels. I haven't tried Master-Cam X9 for engraving... its pretty complex, what program do you use for engraving?

If anyone has any other ideas spit them out. It won't (probably) hurt my feelings! :woohoo:


File Attachment:

File Name: bridgeport-2-3-4.hal
File Size:19.5 KB


File Attachment:

File Name: bridgeport-2-3-4.ini
File Size:3.68 KB
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 #71841 by andypugh

cncnoob1979 wrote: CI'm trying to use a 3 position switch to select each axis; X Y Z to enable jogging to that axis. The catch is... it a single throw 2 NO switch. I cant seem to find an instance of this anywhere. I can only send two signals, one to y and one to z, ideally I would need to send 3 signals.

Does the switch indicate three distinct states? If it doesn't then it can't be done.
If it does, for example no-wires, wire1, wire2 then it can be done in HAL.
I don't quite folow your "if" statement but you can possibly connnect:
Z-select input-01
Y-select input-02
X-select (input-01-not AND input-02-not)
www.linuxcnc.org/docs/html/man/man9/and2.9.html

what program do you use for engraving?

I have done almost no engraving. When I engraved a scale-ring I wrote some G-code by hand:
forum.linuxcnc.org/forum/20-g-code/27169...s-on-cylinders#40497

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

More
10 years 7 months ago - 10 years 7 months ago #71842 by cncnoob1979
Andy,

Thanks for the quick response. My switch has 2 two positions so I can use your solution. How do I go about using the and statement?

I have tired this
Code:
net jog-ena-x <= hm2_5i25.0.7i77.0.0.input-24-NOT AND2.22 hm2_5i25.0.7i77.0.0.input-25-NOT
(addf with a base-thread)

Do I also need to add the .in and .out? I was trying to troubleshoot and then Hal complains that my "hm2_5i25.0.7i77.0.0.input-24-NOT" does not exist even when tried by itself, just using the inversion causes my hal to fail.

I can see hm2_5i25.0.7i77.0.0.input-24-NOT under hal configuration. Maybe I'm typing it wrong.

Thats pretty cool that you wrote that routine by hand. I cant even add correctly with a calculator :)
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 #71843 by PCW
watch out for upper/lower case

I hardly ever type long names as I never get them right the first time
its _much_ easier to just copy/paste them from a donor list created with halcmd show xxxx
The following user(s) said Thank You: cncnoob1979

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

Time to create page: 0.228 seconds
Powered by Kunena Forum