Physical buttons to 7i96s+7i77

  • Masiwood123
  • Masiwood123's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
29 Nov 2025 12:59 #339421 by Masiwood123
Replied by Masiwood123 on topic Physical buttons to 7i96s+7i77
I will try today the potentiometers for feed and spindle, I noticed when I opened the panel that this is not ``mpg'' but the same potentiometer:)..its power supply is connected to the power supply of the potentiometer for feed and speed and its mass is connected to the physical buttons jog+ and jog-..it probably had some logic in the plc of the old controller, I will have to replace it with a class mpg of 100ppr it seems:)
Attachments:

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

  • Masiwood123
  • Masiwood123's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
30 Nov 2025 15:59 #339500 by Masiwood123
Replied by Masiwood123 on topic Physical buttons to 7i96s+7i77
I tried with this example, but it gives me an error at the start, or scale.1. gain not found or when I comment on it analogin0 not found, in the example I replaced the pins on hm2_7i96s.0.7i77.0.0.analogin** they exist as you can see in the photos
Attachments:

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

More
30 Nov 2025 19:40 #339524 by COFHAL
Replied by COFHAL on topic Physical buttons to 7i96s+7i77
Could you post your configuration files so we can take a look and see what the problem is?
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
  • Offline
  • Platinum Member
  • Platinum Member
More
30 Nov 2025 22:11 - 30 Nov 2025 22:14 #339533 by Masiwood123
Replied by Masiwood123 on topic Physical buttons to 7i96s+7i77
of course here are my files, I tried one configuration with fb that works but I still don't know in practice if it works well, definitely try it if you are able to see why this one doesn't work. thank you very much




# --- FEED SPEED POTENTIOMETER'S ---
[url=https://www.facebook.com/hashtag/bit?__eep__=6&__cft__[0]#BIT direct value
setp halui.spindle.0.override.direct-value 1
setp halui.feed-override.direct-value 1
# SCALE
setp halui.spindle.0.override.scale 0.01
setp halui.feed-override.scale 0.01
# scalemax
setp hm2_7i96s.0.7i77.0.0.analogin1-scalemax 150 # spindle
setp hm2_7i96s.0.7i77.0.0.analogin0-scalemax 120 # feed
loadrt conv_float_s32 count=2
addf conv-float-s32.0 servo-thread
addf conv-float-s32.1 servo-thread
net analogin0 conv-float-s32.0.in <= hm2_7i96s.0.7i77.0.0.analogin0
net analogin1 conv-float-s32.1.in <= hm2_7i96s.0.7i77.0.0.analogin1
net analogout0 conv-float-s32.0.out => halui.spindle.0.override.counts
net analogout1 conv-float-s32.1.out => halui.feed-override.counts


youtube.com/shorts/Htwi7ruTzAQ?si=xwU-Dm2b8Pwv2qeN 

File Attachment:

File Name: beta1.zip
File Size:13 KB

 [/url]
Attachments:
Last edit: 30 Nov 2025 22:14 by Masiwood123.

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

More
01 Dec 2025 19:23 #339605 by COFHAL
Replied by COFHAL on topic Physical buttons to 7i96s+7i77
 

File Attachment:

File Name: custom_2025-12-01.hal
File Size:2 KB
I am sending you the corrected custom.hal file; I believe I had sent you one with some errors.
Attachments:
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
  • Offline
  • Platinum Member
  • Platinum Member
More
01 Dec 2025 20:21 #339609 by Masiwood123
Replied by Masiwood123 on topic Physical buttons to 7i96s+7i77
thank you very much, I'll try it tomorrow, maybe the scale won't match because the input to the potentiometer is about 26vdc, but it's important that it works... maybe you can insert another potentiometer for jog override, i.e. jogging speed regulation, since this bosch wheel is not mpg, but the same potentiometer that they used, I assume, in the version with increments on the old controller, it's the same around 26vdc and could be attached  to analogin2?

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

More
02 Dec 2025 01:49 #339617 by COFHAL
Replied by COFHAL on topic Physical buttons to 7i96s+7i77
That depends on the resolution of the A/D converter. I believe the ones on the 7i43 board are 1024, regardless of the value being converted; the values ​​will range from 0 to 1024. You can check with HAL and analyze the values ​​that the A/D converters on your card are taking.
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
  • Offline
  • Platinum Member
  • Platinum Member
More
04 Dec 2025 15:13 #339731 by Masiwood123
Replied by Masiwood123 on topic Physical buttons to 7i96s+7i77
there is a duplicate addif at the beginning of the file, so it appears as the first error, I commented on that, but it also appears another type of scalemax.1 in not found

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

More
05 Dec 2025 14:43 - 05 Dec 2025 14:44 #339759 by COFHAL
Replied by COFHAL on topic Physical buttons to 7i96s+7i77
 

File Attachment:

File Name: custom_2025-12-05.hal
File Size:2 KB
Indeed, there was an error; I had given the threads "scale" names, and that's why it was giving that error. I'm resending the corrected file.
Attachments:
Last edit: 05 Dec 2025 14:44 by COFHAL.
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
  • Offline
  • Platinum Member
  • Platinum Member
More
12 Dec 2025 19:45 #340013 by Masiwood123
Replied by Masiwood123 on topic Physical buttons to 7i96s+7i77
I tried it just now, sorry for the late response, now there are no errors, however, whichever scale I put, both do not work smoothly, only on 4 sections in terms of feed type, it goes 30,60,90,120%

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

Time to create page: 0.210 seconds
Powered by Kunena Forum