Probe Basic program run time stays 0:00:00

More
4 years 6 months ago #239477 by cheburs
Timer doesn't start when i run gcode and always stays 0:00:00

Have added in .ini
Code:
POSTGUI_HALFILE = hallib/time.hal
and
time.hal contains:
Code:
loadrt time loadrt not addf time.0 servo-thread addf not.0 servo-thread net prog-running not.0.in <= halui.program.is-idle net cycle-timer time.0.start <= not.0.out net cycle-seconds qtpyvcp.timerseconds.in <= time.0.seconds net cycle-minutes qtpyvcp.timerminutes.in <= time.0.minutes net cycle-hours qtpyvcp.timerhours.in <= time.0.hours

My config -  github.com/kriksis/Thor-cnc-7i76

Thnaks!

Please Log in to join the conversation.

More
4 years 6 months ago #239479 by Lcvette
What version? If this is 2.9 master py3 branch time is not used anymore and you need to use the probe_basic post GUI Hal file instead, the time code is now in there

Please Log in to join the conversation.

More
4 years 6 months ago #239481 by cheburs
Its 2.8.2

Please Log in to join the conversation.

More
4 years 6 months ago #239967 by Lcvette
you need to condense your post gui files into one file, i think only one can be called. likely why time.hal is not functioning correctly

Please Log in to join the conversation.

More
4 years 6 months ago #239994 by andypugh

you need to condense your post gui files into one file, i think only one can be called. likely why time.hal is not functioning correctly
You can call a single POSTGUI_HALFILE that contains references to several other HAL files:
Code:
# Ordinary halfile commands net somesignal somepin someotherpin # Include HAL from a separate file source halfile1.hal # and another file source halfile2.hal # and carry on with normal hal-y things net signel56 pyvcp.0.in1....

Please Log in to join the conversation.

More
4 years 6 months ago #240053 by cheburs
It worked putting all in one postgui file.

Im using vistacnc pendant and in their .hal file there is this line -
Code:
net program.is-idle halui.program.is-idle => vc-p4s.program.is-idle
and also time.hal uses pin halui.program.is-idle.
I get an error that pin is already linked.

How can i make them both happy?

Please Log in to join the conversation.

More
4 years 5 months ago #242767 by GuiHue
With halui.program.is-idle being an out pin, simple modifactions of the pin assignment should work:
Delete from above:
net prog-running not.0.in <= halui.program.is-idle

replace by:
net program.is-idle not.0.in

You can connect a HAL out pin to multiple IN pins, however, it must be within one signal name. The signal name ist the first part after the net command.

Please Log in to join the conversation.

Time to create page: 0.145 seconds
Powered by Kunena Forum