configuring a "spindle-on" output
# parallel port pin 16 is connected to the "run" pin on the Super-PID.
# the following causes that pin to be lo when the AXIS spindle button (motion.spindle-on)
# is "on" and hi when the AXIS button is "stopped." The two "unlinkp statements were
# needed because the existing HAL connects motion.spindle-on to pwmgen.0.enable.
# The new code re-connects these, but also connects them to not.0.in.
loadrt not count=1
addf not.0 servo-thread
unlinkp motion.spindle-on
unlinkp pwmgen.0.enable
net spindle-power <= motion.spindle-on => not.0.in => pwmgen.0.enable
net spindle-power-not <= not.0.out parport.0.pin-16-out
Please Log in or Create an account to join the conversation.
One should be able to select spindle pwm and spindle-on signal.
But You could connect spindle-enable to the parport pin in your custom HAL file:
net spindle-enable => parport.0.pin-16-out
parport.0.pin-16-out-invert
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Yes you pretty much got it. I'm looking in to fixing it.
Please Log in or Create an account to join the conversation.
I am far, far too familiar with the definition of the word "bug." I have been a systems architect (arch dude) for more than three decades, and there have been times when most of my interactions with co-workers have been via bugzilla.
Please Log in or Create an account to join the conversation.
This is a bug.
One should be able to select spindle pwm and spindle-on signal.
But You could connect spindle-enable to the parport pin in your custom HAL file:
net spindle-enable => parport.0.pin-16-out
parport.0.pin-16-out-invert
Interesting. From the first statement, I infer that HAL will let me add a signal to an existing net: I do not need to define the entire net in a single statement.
The second statement is more difficult. It is a single name. Is this a function call?
Please Log in or Create an account to join the conversation.
net signal-name pin [optional-pin]
A quick get me up to speed on hal is here .
John
Please Log in or Create an account to join the conversation.
setp parport.0.pin-16-out-invert 1
works just fine.,
Please Log in or Create an account to join the conversation.
I have pushed a fix for this problem thanks for bringing it our attention
Please Log in or Create an account to join the conversation.