halui.max-speed decrease/increase ... never go to right value

More
23 Jan 2017 22:49 #86520 by andypugh
Replied by andypugh on topic halui.max-speed ...
I don't see any reason that you would need the "or2" components.

Do you want to actually prevent the MPG working in some modes?
The following user(s) said Thank You: bkt

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

More
24 Jan 2017 10:08 - 24 Jan 2017 10:17 #86543 by bkt
Replied by bkt on topic halui.max-speed ...

I don't see any reason that you would need the "or2" components.

Do you want to actually prevent the MPG working in some modes?


Sorry I not undestand ... so if halui.max-velocity.count-enable is set to 1 MPG not work? (these is not right ... I test it)

Actually MPG can enable and disable via mux4 comp (connected to as jogincrements and set increments to 0 ... so scale go to 0.... so MPG is disable ....

I need to move max-velocity in axis gui using halui.max-velocity.increase/decrease pin ... not need manage manual MPG movement of machine. This pieces of hal file woks fine .... I eneble and disable MPG from external button without problem.

But I'm not able to select different Max Velocity in gui axis with remote slider using halui.max-velocity pin.....
If manually change in axis gui Max Velocity slider I see halui.max-velocity.value change but I'm not able make the same with remote slider ....

Sorry I'm not able to explain me better ..... :unsure:

so for make these I must use only (actually my halui.max-velocity.count-enable is set to 1)
net 1 pyvcp.push-one  =>   halui.max-velocity.increase 
net 2 pyvcp.push-two  =>   halui.max-velocity.decrease

without use any other pin??

In these way only have Max Velocity in gui axis se to 59.9 or to 0 .....

regards
Giorgio
Last edit: 24 Jan 2017 10:17 by bkt.

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

More
24 Jan 2017 10:22 #86544 by andypugh
Replied by andypugh on topic halui.max-speed ...

Sorry I not undestand .

And I am in the same situation. I really don't know what you are trying to do.

.. so if halui.max-velocity.count-enable is set to 1 MPG not work? (these is not right ... I test it)

No, quite the opposite. If "count-enable" is zero then the MPG will not work. If it is 1 then it will work.
I think that the increase and decrease buttons should work regardless of "count-enable" and should increase or decrease the "value" by +"scale" or -"scale"
The following user(s) said Thank You: bkt

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

More
24 Jan 2017 12:05 #86550 by bkt
Replied by bkt on topic halui.max-speed ...
so if would to increase the halui.max-velocity.value by step of 10 .... I do these:
setp halui.max-velocity.count-enable 0
setp halui.max-velocity.scale 10
net 1 pyvcp.push-one  =>   halui.max-velocity.increase 
net 2 pyvcp.push-two  =>   halui.max-velocity.decrease

is right these??

Regards
Giorgio

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

More
06 Apr 2017 17:18 - 06 Apr 2017 17:27 #90975 by bkt
Replied by bkt on topic halui.max-speed ...
Ok I see my problem ....

if I set:

setp halui.max-velocity.scale 0.01


and use 2 pyvcp button for increase and decrease the axis max-vel I see the value go to 60.0 (from 210000) and then it move of 1 point every pressure of "decrease button" so 59, 58, 57 and so on .....
but my proble now is: Why the valoge goes from 210000 (maximum) to 60?? whitch parameter in ini file make the value show on screen of axis gui??

Seeing axix.py I found:
mv = inifile.find("DISPLAY", "MAX_LINEAR_VELOCITY") or inifile.find("TRAJ", "MAX_LINEAR_VELOCITY") or ....

So it seems the value is bring in a sort of arbitrary way after every update .... if these value is all different I think logically it bring the last one ... is right?? (sorry don't speak python very well)

regards
Giorgio
Last edit: 06 Apr 2017 17:27 by bkt.

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

More
07 Apr 2017 13:43 - 07 Apr 2017 13:51 #91006 by bkt
Replied by bkt on topic halui.max-speed ...
work around these issue ... specify:

Actually I work without use MPG. No other command about max-velocity command .... only these 3 row in my hal and custom hal file about max-velocity ....
setp halui.max-velocity.scale 0.01
net 1 pyvcp.push-one  =>   halui.max-velocity.increase 
net 2 pyvcp.push-two  =>   halui.max-velocity.decrease


if use:

and using HalShow I see halui.max-velocity.value pin at 3500 .... but when press halui.max-velocity.decrease .... halui.max-velocity.value go to 1 ..... if use the axis gui slider halui.max-velocity.value return at 3500 in order to my change of slider on scrren ... but if I press a new time halui.max-velocity.decrease the pin halui.max-velocity.value go to 1 a new time ....

there are something tha i control for solve these?

regards
Giorgio
Last edit: 07 Apr 2017 13:51 by bkt.

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

Time to create page: 0.085 seconds
Powered by Kunena Forum