GladeVCP

More
20 Sep 2011 13:08 #13327 by psha
Replied by psha on topic Re:GladeVCP
replace pyvcp.count with gladevcp.hal_label_count in M123

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

More
20 Sep 2011 14:35 #13330 by piasdom
Replied by piasdom on topic Re:GladeVCP
THANKS ! that was dumb of me.
but i still get the error about bit and s32/float/u32.



Thanks
kenneth

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

More
20 Sep 2011 16:52 - 20 Sep 2011 16:57 #13332 by piasdom
Replied by piasdom on topic Re:GladeVCP
the action MDI prop is named gladevcp.MDI_M124_count and i have the below in my posthal.hal.
gladevcp.M124_count is the name of the hal label in glade. i get the error msg that
pin does not exist. is it possible at ALL to get a bit in glade ?
just yes or no will be fine :)


net MDI_Count conv-bit-u32.2.in == gladevcp.MDI_M124_count
net Count_out conv-bit-u32.2.out == gladevcp.M124_count


Thanks
kenneth
Last edit: 20 Sep 2011 16:57 by piasdom.

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

More
20 Sep 2011 18:12 - 20 Sep 2011 18:23 #13334 by piasdom
Replied by piasdom on topic Re:GladeVCP
well i came up with the below. emc starts and the reset button works
do get error msg when clicking reset during program run. the pins/signals
show in HAL configuration. but it doesn't count M124.


net MDI_Count conv-bit-u32.2.in == halui.mdi-command-06
net Count_out conv-bit-u32.2.out == gladevcp.M124_count
net Reset_count halui.mdi-command-05 gladevcp.Reset_M124



Thanks
kenneth

i change he text template and the difference shows in axis.
Last edit: 20 Sep 2011 18:23 by piasdom.

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

More
22 Sep 2011 09:45 #13351 by piasdom
Replied by piasdom on topic Re:GladeVCP
i get the error "named parameter not terminated".
i'm trying to use the below script. is the error coming from
the script or emc ? emc starts with no errors but i get
the msg when i click reset(first script). when i use the scripts in MDI,
no errors on either.


#!/bin/bash
halcmd setp gladevcp.Reset_M124 0
exit 0

#!/bin/bash
COUNT=$(halcmd getp gladevcp.M124_count)
let "COUNT += 1"
halcmd setp gladevcp.M124_count $COUNT
exit 0

Thanks
kenneth

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

More
22 Sep 2011 16:35 - 22 Sep 2011 17:42 #13363 by piasdom
Replied by piasdom on topic Re:GladeVCP
JFYI
the "home all" and home "XYZ" buttons are not disabled
while program is running in glade panel.

i have a gtkbutton linked to a MDI command and a hal
button linked to halui.jog. .+-.
if i click the MDI button and then the halbutton. the halbutton(jogging)
doesn't work. i have to use Home All or use axis default jog, then
they work as should.

kenneth
Last edit: 22 Sep 2011 17:42 by piasdom.

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

More
29 Sep 2011 17:53 - 29 Sep 2011 18:07 #13543 by piasdom
Replied by piasdom on topic Re:GladeVCP
using the "abort" button(halbutton) after using the pause(gtkbutton) sometime hesitates(bout 5 - 7 sec).
other times get error about "file ended with no % sign or program end) same file just used the abort,
have to reload file or same error when using run button.
stop button(tried all type buttons) hesitates(bout same above) and sometimes hesitates and then gives
error msg and can't do that while in some mode and interpreter idle(can't remember exact, deleted button)



p.s. this is a side panel(not tab)

kenneth
Last edit: 29 Sep 2011 18:07 by piasdom.

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

Moderators: mhaberlerHansU
Time to create page: 0.364 seconds
Powered by Kunena Forum