Machine Power Button Assignment

  • SertanATL
  • SertanATL's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
28 Oct 2022 15:10 #255301 by SertanATL
Machine Power Button Assignment was created by SertanATL
While configuring PNCCONF Wizard, I assigned a button to work as a digital input, so that I can push the button in order to use Toggle Machine Power (F2).Unfortunately I cannot assign the button to the physical button.

Also, I would like to control rapid and feed speeds through my controller or via potentiometer, how do I go about doing it?

Thanks!

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

More
29 Oct 2022 01:14 #255363 by tommylight
Replied by tommylight on topic Machine Power Button Assignment
Digital input must be connected to a hardware input in hal to work, so something like
net din-00 <= hm2_7i92.0.7i77.0.0.input-09
and also connected to the pin that it controls
net din-00 => halui.machine.on
but since the din-00 can also be used internally, we can use another name for the new pin, like power-button
net power-button => halui.machine.on <= hm2_7i92.0.7i77.0.0.input-09
This can be easily edited in a text editor by editing the file with the config name and .hal at the end.
Feeds and speeds can also be done similarly, granted you have a card that has analog inputs.
The following user(s) said Thank You: Clive S, Masiwood123

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

  • SertanATL
  • SertanATL's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
29 Oct 2022 09:49 #255368 by SertanATL
Replied by SertanATL on topic Machine Power Button Assignment
This was very helpful, thank you so much!
The following user(s) said Thank You: tommylight

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

  • SertanATL
  • SertanATL's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
29 Oct 2022 10:25 #255369 by SertanATL
Replied by SertanATL on topic Machine Power Button Assignment
What are the names of the line that control feeds and speeds for spindle and axis? I changed a few but could not get it to work.

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

More
30 Oct 2022 21:50 #255494 by andypugh
Replied by andypugh on topic Machine Power Button Assignment

What are the names of the line that control feeds and speeds for spindle and axis? I changed a few but could not get it to work.

There are not pins for these values explictly, but there are ways to override them as a percentage of programmed value. 

See halui.feed-override and halui.spindle-override : linuxcnc.org/docs/stable/html/man/man1/halui.1.html 

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

  • SertanATL
  • SertanATL's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
31 Oct 2022 16:32 #255583 by SertanATL
Replied by SertanATL on topic Machine Power Button Assignment
I selected mode 2 on my Mesa 7i76E card under I/O Connector 1. Then I wired a potentiometer to TB6 Pin00 and Pin01. Under show hal configurations tab, I can see hm_2_7i76e.0.7i76.0.0.analog1 and 2 that when I turn the knob the value changes between 0 and 24.

In the hal file I wrote;

net feed-override => halui.feed-override <=hm_2_7i76e.0.7i76.0.0.analog1

Unfortunately it didn't work and I am not good with codes tbh. What line of code I should use?

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

More
31 Oct 2022 22:38 #255617 by phillc54
Replied by phillc54 on topic Machine Power Button Assignment
TB6 pin1 is analogin0

The connections are on page 4 of the pdf here.
forum.linuxcnc.org/media/kunena/attachme...8/7i76_Anschluss.pdf
 

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

  • SertanATL
  • SertanATL's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
01 Nov 2022 05:51 #255634 by SertanATL
Replied by SertanATL on topic Machine Power Button Assignment
You are right! I actually used analogin0 and analogin1 because I have 2 potentiometers connected.

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

Time to create page: 0.057 seconds
Powered by Kunena Forum