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 or Create an account 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 or Create an account to join the conversation.

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

Please Log in or Create an account 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 or Create an account to join the conversation.

More
4 years 6 months ago - 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....
Last edit: 4 years 6 months ago by andypugh.

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

More
4 years 6 months ago - 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?
Last edit: 4 years 6 months ago by cheburs.

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

Moderators: KCJ, Lcvette
Time to create page: 0.470 seconds
Powered by Kunena Forum