Physical buttons to 7i96s+7i77

  • Masiwood123
  • Masiwood123's Avatar Topic Author
  • Away
  • Platinum Member
  • Platinum Member
More
26 Nov 2025 11:06 - 26 Nov 2025 11:11 #339241 by Masiwood123
Physical buttons to 7i96s+7i77 was created by Masiwood123
..in connection with the machine retrofit #338210
, I would like to include the hardware buttons in the configuration, also calculating the mpg. I have a lot of free inputs (all on 7i96s) and about twenty on 7i77 where I left the first three free as I understood that they are analog because of the potentiometer) now I need a suggestion, since dont have schematic for the old controller and not for the buttons, I think they are all on 24vdc including mpg. the outputs that I connected to 7i77 lit the bulbs of these buttons at 24v. should I try the configuration in terms of the mpg pendant for selector increments and mpg, and for spindle and feed override how should I connect? Thanks
Attachments:
Last edit: 26 Nov 2025 11:11 by Masiwood123.

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

More
26 Nov 2025 14:54 #339245 by langdons
Replied by langdons on topic Physical buttons to 7i96s+7i77
Wiring the buttons, switches, dials, etc.to the Mesa is the easy part.

Configuring LinuxCNC to interpret the signals is the hard part.

Start with the simple buttons and switches (and E-Stop); then worry about the dials, which are more complicated.
The following user(s) said Thank You: Masiwood123

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

More
26 Nov 2025 14:57 - 26 Nov 2025 15:02 #339246 by langdons
Replied by langdons on topic Physical buttons to 7i96s+7i77
What version of LinuxCNC are you using?

Why do you need a 7i96s and a 7i77?

Wouldn't just one suffice?

The 7i77 has 48 I/O ports, which should be more than enough.

How does the 7i77 connect to the PC?
Last edit: 26 Nov 2025 15:02 by langdons.

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

  • Masiwood123
  • Masiwood123's Avatar Topic Author
  • Away
  • Platinum Member
  • Platinum Member
More
26 Nov 2025 18:35 - 26 Nov 2025 18:37 #339252 by Masiwood123
Replied by Masiwood123 on topic Physical buttons to 7i96s+7i77
2.9.0. I didn't have a 7i92 with me, so I used a 7i96s as the main card, which turned out to be better because I'm planning two additional axes later that will use steppers...now about mpg, maybe and I have an example to try...but I didn't have any experience with connecting potentiometers for feed and spindle override, and any Hal example would be valuable to me.
Last edit: 26 Nov 2025 18:37 by Masiwood123.

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

More
26 Nov 2025 19:56 #339259 by PCW
Replied by PCW on topic Physical buttons to 7i96s+7i77
If you search the forum for "MPG" you will find a number of examples

The 7I77 has 2 MPG inputs (4 pins) and the 7I96S has 4 MPG inputs (8 pins)
Either will work wit 5V to 24V signals
The following user(s) said Thank You: Masiwood123

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

  • Masiwood123
  • Masiwood123's Avatar Topic Author
  • Away
  • Platinum Member
  • Platinum Member
More
26 Nov 2025 20:02 #339261 by Masiwood123
Replied by Masiwood123 on topic Physical buttons to 7i96s+7i77
yes, I knew about the 7i96s, yes, I had connected two independent ones when I had a lathe that worked in sync... here I will find an example for one via the axix selector,as a pendant I think it's not a problem. My problem is that I don't know how to connect potentiometers in the hall (if the first three inputs in mode 3 are analog on the 7i77?) how can they recognize it in the hall as spindle override and feed override?

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

More
26 Nov 2025 20:27 #339262 by PCW
Replied by PCW on topic Physical buttons to 7i96s+7i77
I think the tricky part  with feed override and spindle speed override
is to get along with the GUI
The following user(s) said Thank You: Masiwood123

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

More
27 Nov 2025 11:01 #339314 by COFHAL
Replied by COFHAL on topic Physical buttons to 7i96s+7i77
Later I'll send you an example; I have two potentiometers connected to a 7i73 to control those parameters, and with a component that saves their position when the LCN is executed.
The following user(s) said Thank You: Masiwood123

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

  • Masiwood123
  • Masiwood123's Avatar Topic Author
  • Away
  • Platinum Member
  • Platinum Member
More
27 Nov 2025 11:59 #339318 by Masiwood123
Replied by Masiwood123 on topic Physical buttons to 7i96s+7i77
thank you very much, I really appreciate it

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

More
27 Nov 2025 21:10 - 27 Nov 2025 21:11 #339346 by COFHAL
Replied by COFHAL on topic Physical buttons to 7i96s+7i77
 

File Attachment:

File Name: hyst.comp
File Size:2 KB
#SE USAN CON LOS POTENCIMETROS DE OVERRIDE PARA QUE AL ENCENDER LA MAQUINA MUESTRE EL VALOR CORRECTO DE LA POSICION DEL POTENCIOMETRO

loadrt hyst names=hyst.feedpot,hyst.SPDLpot
loadrt mux_generic config=fs2,fs2

#SE USAN CON LOS POTENCIMETROS DE OVERRIDE PARA QUE AL ENCENDER LA MAQUINA MUESTRE EL VALOR CORRECTO DE LA POSICION DEL POTENCIOMETRO

addf mux-gen.00 servo-thread
addf mux-gen.01 servo-thread
addf hyst.feedpot servo-thread
addf hyst.SPDLpot servo-thread

# --- OVERRIDE SIGNALS ---

# --- ANULAR VELOCIDAD DE AVANCE Y DEL SPINDLE ---
# ----BIT DIRECT VALUE

setp halui.feed-override.direct-value true
setp halui.spindle.0.override.direct-value true

# ESTABLECER ESCALA DE CAMBIOS DE LA ANULACION DE AVANCE Y SPINDLE

setp halui.feed-override.scale 0.01
setp halui.spindle.0.override.scale 0.01

#
OVERRIDE AVANCE

setp hyst.feedpot.gain 0.05
setp hyst.feedpot.deadband 0.7
setp hyst.feedpot.step 1
setp mux-gen.00.in-float-00 100

setp scale.1.gain 60.61 # ESCALAR LA ENTRADA ANALOGA DE AVANCE OVERRIDE, VALOR ANALOGO 200/3 VOLTIOS = 60.61
setp mux-gen.00.in-float-00 100 # ESTABLECER EL VALOR DE AVANCE OVERRIDE EN 100% CUANDO SE APAGA LA MAQUINA

net analogin0 scale.1.in <= hm2_7i92.0.7i73.0.0.analogin0
net feedpot-raw scale.1.out

net feedpot-raw hyst.feedpot.in
net feedpot-hyst hyst.feedpot.out mux-gen.00.in-float-01
net machine-is-on mux-gen.00.sel-bit-00
net feedpot-mux mux-gen.00.out-s32 halui.feed-override.counts

#
FIN OVERRIDE AVANCE

#
OVERRIDE VELOCIDAD SPINDLE----

setp hyst.SPDLpot.gain 0.05
setp hyst.SPDLpot.deadband 0.7
setp hyst.SPDLpot.step 1

setp scale.2.gain 60.61 # ESCALAR LA ENTRADA ANALOGA DEL SPINDLE OVERRIDE, VALOR ANALOGO 200/3 VOLTIOS = 60.61
setp mux-gen.01.in-float-00 100 # ESTABLECER EL VALOR DE SPINDLE OVERRIDE EN 100% CUANDO SE APAGA LA MAQUINA

net analogin1 scale.2.in <= hm2_7i92.0.7i73.0.0.analogin1
net SPDLpot-raw scale.2.out

net SPDLpot-raw hyst.SPDLpot.in
net SPDLpot-hyst hyst.SPDLpot.out mux-gen.01.in-float-01
net machine-is-on mux-gen.01.sel-bit-00
net SPDLpot-mux mux-gen.01.out-s32 halui.spindle.0.override.counts
Attachments:
Last edit: 27 Nov 2025 21:11 by COFHAL.

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

Time to create page: 0.134 seconds
Powered by Kunena Forum