Problems with feed-override

More
15 Jul 2016 16:46 #77511 by dirk61
Hello

Have ever this HAL-section feed-override worked 4 years ago.
Now always comes an error

HAL: ERROR: pin ´halui.feed-override.counts´ not found
./Meine-Maschine.hal:53: link failed



loadrt encoder num_chan=2
addf encoder.update-counters base-thread
addf encoder.capture-position servo-thread

# hinzufügen der Signale
newsig counts s32
newsig joga bit
newsig jogb bit

# auflegen der Signale auf Parport1 Pin 10 und 11
linksp joga parport.0.pin-10-in
linksp jogb parport.0.pin-11-in

# 4 Fach Auswertung vom Encoder ausschalten
setp encoder.0.x4-mode TRUE
# verbinden der Jogsignale zum Encoder
linkps encoder.0.phase-A joga
linkps encoder.0.phase-B jogb

# verbindung encoder count zu counts
linkps encoder.0.counts counts

# verbindung von counts zum Vorschub-override in der halui
linksp counts halui.feed-override.counts
setp halui.feed-override.scale .01


what could be the Problem???

mFg Dirk

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

More
15 Jul 2016 17:55 #77516 by Todd Zuercher
You might need to share your ini file and maybe the hal files as well. Did you make any changes to your ini file such as changing or removing the line "HALUI = halui"?

What versions of Linuxcnc were you using when it worked and what are you using now?

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

More
16 Jul 2016 15:00 #77545 by dirk61
Replied by dirk61 on topic Problems with feed-override
Hello

Halui was not in the INI
Thanks for your tip

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

More
16 Jul 2016 20:26 #77553 by dirk61
Replied by dirk61 on topic Problems with feed-override
Hello
Now have inserted max velocity.
Now comes an error message
HAL: ERROR: signal 'counts' already has output or I/0 pin(s)
./custom.hal:46: link failed










# Benutzerdefinierte HAL-Anweisungen können nachfolgend angegeben werden
# Diese Datei wird überschrieben, wenn stepconf erneut ausgeführt wird.

###########################################################

loadrt encoder num_chan=4
addf encoder.update-counters base-thread
addf encoder.capture-position servo-thread

# hinzufügen der Signale
newsig counts s32
newsig joga bit
newsig jogb bit

# auflegen der Signale auf Parport1 Pin 10 und 11
linksp joga parport.0.pin-13-in
linksp jogb parport.0.pin-15-in

# 4 Fach Auswertung vom Encoder ausschalten
setp encoder.0.x4-mode TRUE
# verbinden der Jogsignale zum Encoder
linkps encoder.0.phase-A joga
linkps encoder.0.phase-B jogb

# verbindung encoder count zu counts
linkps encoder.0.counts counts

# verbindung von counts zum Vorschub-override in der halui
linksp counts halui.feed-override.counts
setp halui.feed-override.scale .01
###############################################################
newsig jogA bit
newsig jogB bit

# auflegen der Signale auf Parport1 Pin 13 und 15
linksp jogA parport.0.pin-10-in
linksp jogB parport.0.pin-11-in

# 4 Fach Auswertung vom Encoder ausschalten
setp encoder.1.x4-mode TRUE
# verbinden der Jogsignale zum Encoder
linkps encoder.1.phase-A joga
linkps encoder.1.phase-B jogb

# verbindung encoder count zu counts
linkps encoder.1.counts counts

# verbindung von counts zum Vorschub-override in der halui
linksp counts halui.max-velocity.counts
setp halui.max-velocity.scale .01

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

More
16 Jul 2016 20:47 #77555 by BigJohnT
You're trying to link the signal counts more than once to a pin that sets counts. It's much clearer to use net
net my-signal reader-pin writer-pin
net my-signal reader-pin

linuxcnc.org/docs/2.7/html/hal/basic-hal.html#_net

JT

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

More
17 Jul 2016 19:16 #77577 by dirk61
Replied by dirk61 on topic Problems with feed-override
Hello Big John
thank you
Can you me an example based feed override of my and max-velocity here Set ??
Because I want to make you to later spindle-override.
Were it to show me the possible for you?
Using examples I can open up to me more than by the reading of Doc's
Since my English is not so good.

Thanks Dirk

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

More
17 Jul 2016 21:53 #77582 by BigJohnT
Are you trying to use an encoder to set the Rapid Override? Just need to be clear.

JT

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

More
18 Jul 2016 08:40 #77588 by dirk61
Replied by dirk61 on topic Problems with feed-override
Hallo John
Ja es ist ein Encoder mit TTL-Signal A. und B. Signal

Best regards

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

More
19 Jul 2016 12:29 #77637 by dirk61
Replied by dirk61 on topic Problems with feed-override
hello John
Yes, it is an encoder with TTL signal A. and B. Signal

Best regards

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

More
01 Aug 2016 12:07 #78229 by newbynobi
Hallo Dirk,

du kannst nicht zwei mal das selbe signal erstellen.
In der mashinen.hal erstellts du das signal zum ersten mal und dann ein zweites Mal in der custom.hal!

Nenne das erste Signal (machine.hal) einfach rapid-counts und das zweite signal in deiner custom.hal max-vel-counts
und schon sollte das gehen.

Wie sollte wohl das signal con spindle dann heißen?
Richtig spindle-override-counts

Ein signal ist wie ein Kabel, wenn du damit zwei Endpunkte verbunden hast, dann kannst du es nicht mehr verwenden, ist ja verbaut ;-) Du kannst aber noch was anderes daran anschließen.

Norbert

(Next time in English ;-)

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

Time to create page: 0.106 seconds
Powered by Kunena Forum