gmocappy clock

More
5 years 1 month ago #220704 by virencq
Replied by virencq on topic gmocappy clock
Figured out I have physical buttons code in .hal. halui.program.is-running is causing the issue. Commenting out Clock panel works. Please share is there any way to using same pin twice.

Please Log in to join the conversation.

More
5 years 1 month ago #221147 by newbynobi
Replied by newbynobi on topic gmocappy clock
Connect to the signal name not to the Hal pin should work

Norbert

Please Log in to join the conversation.

More
5 years 1 month ago #221331 by virencq
Replied by virencq on topic gmocappy clock
My lathe.hal file has
# External Program Pause and Run Buttons

# Run Section

net run-step-btn or2.0.in0 and2.1.in0 <= parport.0.pin-13-in
net pause-on and2.1.in1 <= halui.program.is-paused
net my-or1 or2.0.in1 <= and2.1.out
net run-sig halui.mode.auto halui.program.run <= or2.0.out

# Pause Section

net pause-resume-btn and2.0.in0 <= parport.0.pin-15-in-not
net run-on and2.0.in1 <= halui.program.is-running      I have to comment out this
net pause-sig halui.program.stop <= and2.0.out
setp halui.mode.teleop 1

#########################################
Timer.hal file 
# This will be the timer.hal file

# give the interval to set a alarm in minutes
setp timer.periode_time_machine 2
setp timer.periode_time_spindle 1

net machine timer.machine_on <= halui.machine.is-on
net spindle timer.spindle_on <= halui.spindle.0.is-on
net running timer.running <= halui.program.is-running                                                                Or have to comment out this.

net num_peris_ma timer.elapsed_periodes_machine
# => a label pin or what ever you want to do with this information
net num_peris_sp timer.elapsed_periodes_spindle
# => a label pin or what ever you want to do with this information

net alarm_machine timer.alarm_machine
# => to a pin to connect a light on, or may be a lube signal
net alarm_spindle timer.alarm_spindle
# => to a pin to connect a light on, or may be a lube signal

Please Log in to join the conversation.

More
5 years 1 month ago #221502 by virencq
Replied by virencq on topic gmocappy clock
The working Job Counter.
  1. Set the no of Jobs to be produced by entering numbers besides Parts button. Click over it to sent to classicladder.
  2. if we do have yesterday's produced parts, put them in besides Stock button field and validate.
  3. Now we start producing parts. As soon as we reach our last part. we have glowing LED All Done, Along with machine stop.
  4. Reset button for Stock value zero
    1. I would also like Parts counter to be dark
Relevant files are attached below.   
in .ini file put
EMBED_TAB_NAME = counter
EMBED_TAB_COMMAND = gladevcp -x {XID} -H counter.hal counter.glade
EMBED_TAB_LOCATION =box_custom_4 

 

Attachment not found

 

Attachment not found

 

Attachment not found

 

Attachment not found

Please Log in to join the conversation.

More
5 years 3 weeks ago #222244 by newbynobi
Replied by newbynobi on topic gmocappy clock
you will need a counter.py file, just to set the used theme.
You may look in original timers files.

Norbert

Please Log in to join the conversation.

More
5 years 3 weeks ago #222426 by virencq
Replied by virencq on topic gmocappy clock
Thanks,
Theme issue resolved by keeping identical theme for system as well as Linuxcnc.
 

Please Log in to join the conversation.

  • antoxa-kylibin
  • New Member
  • New Member
More
4 years 8 months ago #234903 by antoxa-kylibin
Replied by antoxa-kylibin on topic gmocappy clock
Thanks for the materials. I used the corrected glade file and hal logic for myself. Everything works as I needed.

Please Log in to join the conversation.

More
2 years 11 months ago #286202 by Serg452
Replied by Serg452 on topic gmocappy clock
completely by chance there is no timer version for 2.9? Moved from 2.8 and now does not work. It's very sad...

Please Log in to join the conversation.

More
2 years 11 months ago #286431 by Serg452
Replied by Serg452 on topic gmocappy clock
or can there be an online converter .py file from 2 to 3 versions?

Please Log in to join the conversation.

More
2 years 11 months ago #286449 by Aciera
Replied by Aciera on topic gmocappy clock
Maybe this helps:
python2to3.com/

Please Log in to join the conversation.

Time to create page: 0.148 seconds
Powered by Kunena Forum