- Posts: 423
- Thank you received: 0
Physical buttons to 7i96s+7i77
- Masiwood123
- Topic Author
- Offline
- Platinum Member
-
Less
More
11 months 2 days ago #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:)
Attachment not found
Attachment not found
Please Log in to join the conversation.
- Masiwood123
- Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 423
- Thank you received: 0
11 months 22 hours ago #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
Attachment not found
Attachment not found
Attachment not found
Please Log in to join the conversation.
11 months 18 hours ago #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?
Please Log in to join the conversation.
- Masiwood123
- Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 423
- Thank you received: 0
11 months 16 hours ago #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
[/url]
# --- 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
Attachment not found
[/url]
Please Log in to join the conversation.
10 months 4 weeks ago #339605
by COFHAL
I am sending you the corrected custom.hal file; I believe I had sent you one with some errors.
Replied by COFHAL on topic Physical buttons to 7i96s+7i77
Attachment not found
Please Log in to join the conversation.
- Masiwood123
- Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 423
- Thank you received: 0
10 months 4 weeks ago #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 to join the conversation.
10 months 4 weeks ago #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.
Please Log in to join the conversation.
- Masiwood123
- Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 423
- Thank you received: 0
10 months 3 weeks ago #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 to join the conversation.
10 months 3 weeks ago #339759
by COFHAL
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.
Replied by COFHAL on topic Physical buttons to 7i96s+7i77
Attachment not found
Please Log in to join the conversation.
- Masiwood123
- Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 423
- Thank you received: 0
10 months 2 weeks ago #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 to join the conversation.
Time to create page: 0.290 seconds
