- Posts: 46
- Thank you received: 0
problems with toggle flood
10 years 2 months ago #79375
by dirk61
problems with toggle flood was created by dirk61
loadrt toggle2nist count=3
loadrt toggle count=2
loadrt and2 count=2
addf toggle.0 servo-thread
addf and2.0 servo-thread
addf toggle2nist.0 servo-thread
# Flood Coolant Toggle
net coolant-btn and2.0.in0 <= hm2_5i20.0.gpio.031.in_not
net coolant-ok and2.0.in1 <= halui.machine.is-on
<<<<<halui.maschine.is-on was already linked to signal `maschine-is-on
net coolant-request toggle.0.in <= and2.0.out
net coolant-toggle toggle2nist.0.in <= toggle.0.out
net coolant-is-on toggle2nist.0.is-on <= halui.flood.is-on
net coolant-on halui.flood.on <= toggle2nist.0.on
net coolant-off halui.flood.off <= toggle2nist.0.off
net coolant-control toggle.0.out => hm2_5i20.0.gpio.041.out
<<<<toggle.0.out was already linked to signal `coolant-toggle`
What should I do to fix the errors
kind regards Dirk
loadrt toggle count=2
loadrt and2 count=2
addf toggle.0 servo-thread
addf and2.0 servo-thread
addf toggle2nist.0 servo-thread
# Flood Coolant Toggle
net coolant-btn and2.0.in0 <= hm2_5i20.0.gpio.031.in_not
net coolant-ok and2.0.in1 <= halui.machine.is-on
<<<<<halui.maschine.is-on was already linked to signal `maschine-is-on
net coolant-request toggle.0.in <= and2.0.out
net coolant-toggle toggle2nist.0.in <= toggle.0.out
net coolant-is-on toggle2nist.0.is-on <= halui.flood.is-on
net coolant-on halui.flood.on <= toggle2nist.0.on
net coolant-off halui.flood.off <= toggle2nist.0.off
net coolant-control toggle.0.out => hm2_5i20.0.gpio.041.out
<<<<toggle.0.out was already linked to signal `coolant-toggle`
What should I do to fix the errors
kind regards Dirk
Please Log in to join the conversation.
10 years 2 months ago #79376
by jtc
Replied by jtc on topic problems with toggle flood
net machine-is-on => and2.0.in1
net coolant-toggle => hm2_5i20.0.gpio.041.out
this should solve your syntax problems.
see linuxcnc.org/docs/2.5/html/hal/basic_hal...#_net_a_id_sub_net_a
net coolant-toggle => hm2_5i20.0.gpio.041.out
this should solve your syntax problems.
see linuxcnc.org/docs/2.5/html/hal/basic_hal...#_net_a_id_sub_net_a
Please Log in to join the conversation.
10 years 2 months ago #79396
by dirk61
Replied by dirk61 on topic problems with toggle flood
hi Guys
Have the so replaced.
But I get back an ERROR
What I still lack ????
loadrt toggle2nist count=3
loadrt toggle count=2
loadrt and2 count=2
addf toggle.0 servo-thread
addf and2.0 servo-thread
addf toggle2nist.0 servo-thread
# Flood Coolant Toggle
net coolant-btn and2.0.in0 <= hm2_5i20.0.gpio.031.in_not
net maschine-is-on => and2.0.in1
<<<<<Pin ànd2.0.in1was already linked to signal aschine-is-on`
net coolant-ok and2.0.in1 <= halui.machine.is-on
net coolant-request toggle.0.in <= and2.0.out
net coolant-toggle toggle2nist.0.in <= toggle.0.out
net coolant-is-on toggle2nist.0.is-on <= halui.flood.is-on
net coolant-on halui.flood.on <= toggle2nist.0.on
net coolant-off halui.flood.off <= toggle2nist.0.off
net coolant-toggle.0.out => hm2_5i20.0.gpio.041.out
Have the so replaced.
But I get back an ERROR
What I still lack ????
loadrt toggle2nist count=3
loadrt toggle count=2
loadrt and2 count=2
addf toggle.0 servo-thread
addf and2.0 servo-thread
addf toggle2nist.0 servo-thread
# Flood Coolant Toggle
net coolant-btn and2.0.in0 <= hm2_5i20.0.gpio.031.in_not
net maschine-is-on => and2.0.in1
<<<<<Pin ànd2.0.in1was already linked to signal aschine-is-on`
net coolant-ok and2.0.in1 <= halui.machine.is-on
net coolant-request toggle.0.in <= and2.0.out
net coolant-toggle toggle2nist.0.in <= toggle.0.out
net coolant-is-on toggle2nist.0.is-on <= halui.flood.is-on
net coolant-on halui.flood.on <= toggle2nist.0.on
net coolant-off halui.flood.off <= toggle2nist.0.off
net coolant-toggle.0.out => hm2_5i20.0.gpio.041.out
Please Log in to join the conversation.
10 years 2 months ago #79405
by Rick G
Replied by Rick G on topic problems with toggle flood
A quick look.
did you mean...
Rick G
Code:
net maschine-is-on => and2.0.in1
did you mean...
Code:
net machine-is-on => and2.0.in1
Rick G
Please Log in to join the conversation.
10 years 2 months ago #79408
by dirk61
Replied by dirk61 on topic problems with toggle flood
Hello guys
Thanks for your help
Have it now fixed but there was a new error.
##COSTUM HAL##
# Flood Coolant Toggle
net coolant-btn and2.0.in0 <= hm2_5i20.0.gpio.031.in_not
net machine-is-on => and2.0.in1
net coolant-ok and2.0.in1 <= halui.machine.is-on---<<and2.0.in1 was already linked to signal machine-is-on
net coolant-request toggle.0.in <= and2.0.out
net coolant-toggle toggle2nist.0.in <= toggle.0.out
net coolant-is-on toggle2nist.0.is-on <= halui.flood.is-on
net coolant-on halui.flood.on <= toggle2nist.0.on
net coolant-off halui.flood.off <= toggle2nist.0.off
net coolant-toggle.0.out => hm2_5i20.0.gpio.041.out
##HAL##
# ---HALUI signals---
net joint-select-a halui.joint.0.select
net x-is-homed halui.joint.0.is-homed
net jog-x-pos halui.jog.0.plus
net jog-x-neg halui.jog.0.minus
net jog-x-analog halui.jog.0.analog
net joint-select-b halui.joint.1.select
net y-is-homed halui.joint.1.is-homed
net jog-y-pos halui.jog.1.plus
net jog-y-neg halui.jog.1.minus
net jog-y-analog halui.jog.1.analog
net joint-select-c halui.joint.2.select
net z-is-homed halui.joint.2.is-homed
net jog-z-pos halui.jog.2.plus
net jog-z-neg halui.jog.2.minus
net jog-z-analog halui.jog.2.analog
net jog-selected-pos halui.jog.selected.plus
net jog-selected-neg halui.jog.selected.minus
net spindle-manual-cw halui.spindle.forward
net spindle-manual-ccw halui.spindle.reverse
net spindle-manual-stop halui.spindle.stop
net machine-is-on halui.machine.is-on
net jog-speed halui.jog-speed
net MDI-mode halui.mode.is-mdi
# ---coolant signals---
net coolant-mist <= iocontrol.0.coolant-mist
net coolant-flood <= iocontrol.0.coolant-flood
Thanks for your help
Have it now fixed but there was a new error.
##COSTUM HAL##
# Flood Coolant Toggle
net coolant-btn and2.0.in0 <= hm2_5i20.0.gpio.031.in_not
net machine-is-on => and2.0.in1
net coolant-ok and2.0.in1 <= halui.machine.is-on---<<and2.0.in1 was already linked to signal machine-is-on
net coolant-request toggle.0.in <= and2.0.out
net coolant-toggle toggle2nist.0.in <= toggle.0.out
net coolant-is-on toggle2nist.0.is-on <= halui.flood.is-on
net coolant-on halui.flood.on <= toggle2nist.0.on
net coolant-off halui.flood.off <= toggle2nist.0.off
net coolant-toggle.0.out => hm2_5i20.0.gpio.041.out
##HAL##
# ---HALUI signals---
net joint-select-a halui.joint.0.select
net x-is-homed halui.joint.0.is-homed
net jog-x-pos halui.jog.0.plus
net jog-x-neg halui.jog.0.minus
net jog-x-analog halui.jog.0.analog
net joint-select-b halui.joint.1.select
net y-is-homed halui.joint.1.is-homed
net jog-y-pos halui.jog.1.plus
net jog-y-neg halui.jog.1.minus
net jog-y-analog halui.jog.1.analog
net joint-select-c halui.joint.2.select
net z-is-homed halui.joint.2.is-homed
net jog-z-pos halui.jog.2.plus
net jog-z-neg halui.jog.2.minus
net jog-z-analog halui.jog.2.analog
net jog-selected-pos halui.jog.selected.plus
net jog-selected-neg halui.jog.selected.minus
net spindle-manual-cw halui.spindle.forward
net spindle-manual-ccw halui.spindle.reverse
net spindle-manual-stop halui.spindle.stop
net machine-is-on halui.machine.is-on
net jog-speed halui.jog-speed
net MDI-mode halui.mode.is-mdi
# ---coolant signals---
net coolant-mist <= iocontrol.0.coolant-mist
net coolant-flood <= iocontrol.0.coolant-flood
Please Log in to join the conversation.
10 years 2 months ago #79486
by dirk61
Replied by dirk61 on topic problems with toggle flood
hi Guys
Am a little further down.
Now in this line is the error
loadrt toggle2nist count=2
loadrt toggle count=2
loadrt and2 count=2
addf toggle.0 servo-thread
addf and2.0 servo-thread
addf toggle2nist.0 servo-thread
# Flood Coolant Toggle
net coolant-btn and2.0.in0 <= hm2_5i20.0.gpio.031.in_not
net coolant-ok and2.0.in1 <= halui.machine.is-on
net coolant-request toggle.0.in <= and2.0.out
net coolant-toggle toggle2nist.0.in <= toggle.0.out
net coolant-is-on toggle2nist.0.is-on <= halui.flood.is-on
net coolant-on halui.flood.on <= toggle2nist.0.on
net coolant-off halui.flood.off <= toggle2nist.0.off
net coolant-toggle.0.out => hm2_5i20.0.gpio.041.out
Am a little further down.
Now in this line is the error
loadrt toggle2nist count=2
loadrt toggle count=2
loadrt and2 count=2
addf toggle.0 servo-thread
addf and2.0 servo-thread
addf toggle2nist.0 servo-thread
# Flood Coolant Toggle
net coolant-btn and2.0.in0 <= hm2_5i20.0.gpio.031.in_not
net coolant-ok and2.0.in1 <= halui.machine.is-on
net coolant-request toggle.0.in <= and2.0.out
net coolant-toggle toggle2nist.0.in <= toggle.0.out
net coolant-is-on toggle2nist.0.is-on <= halui.flood.is-on
net coolant-on halui.flood.on <= toggle2nist.0.on
net coolant-off halui.flood.off <= toggle2nist.0.off
net coolant-toggle.0.out => hm2_5i20.0.gpio.041.out
Please Log in to join the conversation.
10 years 2 months ago #79508
by BigJohnT
Replied by BigJohnT on topic problems with toggle flood
I suggest you read this section a few times to get familiar with how to write net lines
linuxcnc.org/docs/2.7/html/hal/basic-hal.html#_net
JT
linuxcnc.org/docs/2.7/html/hal/basic-hal.html#_net
JT
Please Log in to join the conversation.
10 years 2 months ago #79509
by dirk61
Replied by dirk61 on topic problems with toggle flood
Hello
Thank you for your help
Have it now solved.
Runs fine
Thank you very much
###########################################################################################################
# Toggle erschaffen für Coolant-flood#
###########################################################################################################
loadrt toggle count=2
addf toggle.0 servo-thread
# Toggle-Komponente an Eingang von Mesa-Karte anschliessen
net flood-toggle-in toggle.0.in hm2_5i20.0.gpio.031.in_not
# Toggle2nist-Komponente erschaffen
loadrt toggle2nist count=2
addf toggle2nist.0 servo-thread
# Toggle2nist-Komponente anschliessen
net flood-toggle2nist-on toggle2nist.0.in toggle.0.out
net flood-toggle2nist-is-on toggle2nist.0.is-on halui.flood.is-on
net flood-toogle-on halui.flood.on toggle2nist.0.on
net flood-toogle-off halui.flood.off toggle2nist.0.off
net flood-toggle2nist-is-on toggle2nist.0.is-on => hm2_5i20.0.gpio.041.out
setp hm2_5i20.0.gpio.041.invert_output true
setp hm2_5i20.0.gpio.041.is_output true
##########################################################################################################
# Toggle erschaffen für Coolant-mist#
###########################################################################################################
addf toggle.1 servo-thread
# Toggle-Komponente an Eingang von Mesa-Karte anschliessen
net mist-toggle-in toggle.1.in #hm2_5i20.0.gpio.031.in_not#
# Toggle2nist-Komponente erschaffen
addf toggle2nist.1 servo-thread
# Toggle2nist-Komponente anschliessen
net mist-toggle2nist-on toggle2nist.1.in toggle.1.out
net mist-toggle2nist-is-on toggle2nist.1.is-on halui.mist.is-on
net mist-toogle-on halui.mist.on toggle2nist.1.on
net mist-toogle-off halui.mist.off toggle2nist.1.off
net mist-toggle2nist-is-on toggle2nist.1.is-on => #hm2_5i20.0.gpio.041.out#
setp hm2_5i20.0.gpio.041.invert_output true
setp hm2_5i20.0.gpio.041.is_output true
Thank you for your help
Have it now solved.
Runs fine
Thank you very much
###########################################################################################################
# Toggle erschaffen für Coolant-flood#
###########################################################################################################
loadrt toggle count=2
addf toggle.0 servo-thread
# Toggle-Komponente an Eingang von Mesa-Karte anschliessen
net flood-toggle-in toggle.0.in hm2_5i20.0.gpio.031.in_not
# Toggle2nist-Komponente erschaffen
loadrt toggle2nist count=2
addf toggle2nist.0 servo-thread
# Toggle2nist-Komponente anschliessen
net flood-toggle2nist-on toggle2nist.0.in toggle.0.out
net flood-toggle2nist-is-on toggle2nist.0.is-on halui.flood.is-on
net flood-toogle-on halui.flood.on toggle2nist.0.on
net flood-toogle-off halui.flood.off toggle2nist.0.off
net flood-toggle2nist-is-on toggle2nist.0.is-on => hm2_5i20.0.gpio.041.out
setp hm2_5i20.0.gpio.041.invert_output true
setp hm2_5i20.0.gpio.041.is_output true
##########################################################################################################
# Toggle erschaffen für Coolant-mist#
###########################################################################################################
addf toggle.1 servo-thread
# Toggle-Komponente an Eingang von Mesa-Karte anschliessen
net mist-toggle-in toggle.1.in #hm2_5i20.0.gpio.031.in_not#
# Toggle2nist-Komponente erschaffen
addf toggle2nist.1 servo-thread
# Toggle2nist-Komponente anschliessen
net mist-toggle2nist-on toggle2nist.1.in toggle.1.out
net mist-toggle2nist-is-on toggle2nist.1.is-on halui.mist.is-on
net mist-toogle-on halui.mist.on toggle2nist.1.on
net mist-toogle-off halui.mist.off toggle2nist.1.off
net mist-toggle2nist-is-on toggle2nist.1.is-on => #hm2_5i20.0.gpio.041.out#
setp hm2_5i20.0.gpio.041.invert_output true
setp hm2_5i20.0.gpio.041.is_output true
Please Log in to join the conversation.
Time to create page: 0.117 seconds
