Codes for external buttons
- raychar
- Offline
- Premium Member
Less
More
- Posts: 100
- Thank you received: 2
12 Oct 2020 13:30 #185836
by raychar
Replied by raychar on topic Codes for external buttons
How to make the increase and decrease hardware buttons to have total number steps likes 30? That is the shown pyvcp slider bar can have 30 steps?
>Stepcounter can achieve this.
>But, for the mux8.0, 8.1... each have individual outputs of mux8.0 out , mux8.1 out..., Outputs can not be linked together to achieve a single one of quantity of 20 selections.
>Also, for each mux8.0, there are only a small quantity of 4 selections, that is sel0, ...sel3, why it is not 8.
Thanks,
>Stepcounter can achieve this.
>But, for the mux8.0, 8.1... each have individual outputs of mux8.0 out , mux8.1 out..., Outputs can not be linked together to achieve a single one of quantity of 20 selections.
>Also, for each mux8.0, there are only a small quantity of 4 selections, that is sel0, ...sel3, why it is not 8.
Thanks,
Please Log in or Create an account to join the conversation.
- ikkuh
- Offline
- Elite Member
Less
More
- Posts: 272
- Thank you received: 46
09 May 2022 09:36 - 09 May 2022 09:39 #242366
by ikkuh
I have implemented the excelent examples by Talla83 using the analog inputs on my 7i84 card to have realtime updating sliders. It works great!
(The code is from my git, not all the scales are correct yet.)
Talla (Peter) has much more clever stuf, he is also a good teacher and makes great videos.
Replied by ikkuh on topic Codes for external buttons
Hello guys,
Wanting to implement the following individual hardware external buttons for:
> jog speeds increase and decrease
> cutting feed override increase and decrease
I have implemented the excelent examples by Talla83 using the analog inputs on my 7i84 card to have realtime updating sliders. It works great!
#analog in test, talla83
setp [HMOT](CARD0).7i84.0.0.analogin0-scalemax 15.0
setp [HMOT](CARD0).7i84.0.0.analogin1-scalemax 55.0
setp [HMOT](CARD0).7i84.0.0.analogin2-scalemax 15.0
###setp [HMOT](CARD0).7i84.0.0.analogin3-scalemax 10.0
loadrt conv_float_s32 count=3
addf conv-float-s32.0 servo-thread
addf conv-float-s32.1 servo-thread
addf conv-float-s32.2 servo-thread
#addf conv-float-s32.3 servo-thread
setp halui.feed-override.direct-value 1
setp halui.feed-override.scale 1
net analogin0 conv-float-s32.0.in <= [HMOT](CARD0).7i84.0.0.analogin0
net analogout0 conv-float-s32.0.out halui.feed-override.counts
setp halui.rapid-override.direct-value 1
setp halui.rapid-override.scale 0.1
net analogin1 conv-float-s32.1.in <= [HMOT](CARD0).7i84.0.0.analogin1
net analogout1 conv-float-s32.1.out halui.rapid-override.counts
setp halui.max-velocity.direct-value 1
setp halui.max-velocity.scale 0.01
net analogin2 conv-float-s32.2.in <= [HMOT](CARD0).7i84.0.0.analogin2
net analogout2 conv-float-s32.2.out halui.max-velocity.counts
Talla (Peter) has much more clever stuf, he is also a good teacher and makes great videos.
Last edit: 09 May 2022 09:39 by ikkuh. Reason: f*cking editor!!@!!!!@!@!@!@
The following user(s) said Thank You: tommylight, my1987toyota
Please Log in or Create an account to join the conversation.
- my1987toyota
- Offline
- Platinum Member
Less
More
- Posts: 825
- Thank you received: 335
09 May 2022 11:45 #242373
by my1987toyota
Replied by my1987toyota on topic Codes for external buttons
ikkuh. Love the edit reason I think we have all been their.
Please Log in or Create an account to join the conversation.
Time to create page: 0.053 seconds