Planning - Bridgeport Interact 1 linuxCNC Retrofit

More
10 years 7 months ago - 10 years 7 months ago #71844 by cncnoob1979
PCW,

Yes I went back and checked the capitalization and checked my names.

I must not be using the proper syntax. I still haven't gotten it to work.

I'll try tomorrow after work. At lest I know it's doable.

Thanks for the help and suggestions.
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 #71845 by PCW
I mentioned it because you are using "-NOT" on the end of the pin name and its "-not"
halcmd is a very nice tool for trying new things with a running linuxcnc instance
(avoids the edit test loop)

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

More
10 years 7 months ago - 10 years 7 months ago #71852 by andypugh

cncnoob1979 wrote: I have tried 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)


There are no "functions" in HAL. Everything needs to be connected like electrical components.
Code:
loadrt and2 count=1 ... addf and2.0.servo-thread ... net switch1 hm2_5i25.0.7i77.0.0.input-25 => axis.2.jog-enable net switch1-not hm2_5i25.0.7i77.0.0.input-25-not => and2.0.in0 net switch2 hm2_5i25.0.7i77.0.0.input-26 => axis.1.jog-enable net switch2-not hm2_5i25.0.7i77.0.0.input-26-not => and2.0.in1 net x-jog-ena and2.0.out => axis.0.jog-enable

Note that the signal names (the first item after the "net" command) can be anything you choose, they have no special meanings to the system.
Last edit: 10 years 7 months ago by andypugh.
The following user(s) said Thank You: cncnoob1979

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

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

Thank you so very much, I promise I'm trying to get my head wrapped around HAL, you just helped me understand this very well.
I'm currently at work and I have tied to implement your code, I do believe this will work.
Code:
loadrt and2 count=23
#I used csbrady's code and he had up to 21 listed
Code:
addf and2.22 servo-thread
Code:
net jog-ena-y hm2_5i25.0.7i77.0.0.input-24 => axis.2.jog-enable net jog-ena-y-not hm2_5i25.0.7i77.0.0.input-24-not => and2.22.in0 net jog-ena-z hm2_5i25.0.7i77.0.0.input-25 => axis.1.jog-enable net jog-ena-z-not hm2_5i25.0.7i77.0.0.input-25-not => and2.22.in1 net jog-ena-x and2.22.out => axis.0.jog-enable

PCW,

Sorry I wasn't clear. After you pointed out the upper and lowercase error I made. I went back and checked and the -NOT was why I could not connect to the signal. [which you knew ;) ] I have tried halcmd before, but I'm not versed enough to use it effectively, but I'm getting there!

Thanks to you guys putting up with my questions! Thanks so much for the continued support everyone is offering me on this forum.
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 #71863 by andypugh

cncnoob1979 wrote: #I used csbrady's code and he had up to 21 listed


That's a lot of "and" functions.
I rather suspect that a lot of the logic could have been simplified by cunning use of LUT5

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

More
10 years 7 months ago #71868 by csbrady
cncnoob,

You are using a quite old version of my hal that used a bunch of and2 functions to create 2 jog rates using the button on the joystick. It didn't work because I didn't fully understand how the button is wired. It also just was not a great idea.

Here is my current hal. The jog stuff is vastly simpler.

File Attachment:

File Name: bertha-2.hal
File Size:21.52 KB


Sorry for the fire drill. A phone conversation at some point would probably be a good idea. Gotta go for now.

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

Time to create page: 0.240 seconds
Powered by Kunena Forum