HAL question
my drive spindle,
requires three control signals. +. Analog signal of 0 +-10volts.
signals:
run
stop
DB: dynamic brake
to operate the DC motor, must have supply 120 VAC. by stop and DB.
linuxcnc spindle sends signal on
must send the analog signal, and must send 120 volts to RUN
To stop the machine I remove the DB signal and that signal must turn activate a solenoid that is applying the brake.
signals would be:
in HAL
output
net spindle-on <= hm2_5i25.0.7i77.0.0.output-00
net spindle-brake <= hm2_5i25.0.7i77.0.0.inverter_output-01
net spindle-stop <= hm2_5i25.0.7i77.0.0.inverter_output-02
net spindle-on <= motion.spindle-on
net spindle-brake <= motion.spindle-brake
net spindle-stop <= halui.stop.manual
This would work.
www.reliance.com/pdf/drives/instruction_manuals/D3867.pdf
Jorge
Please Log in or Create an account to join the conversation.
Because when I give S10 M3. 10volts gives me the voltage at the analog output of the spindle.
Something I noticed is that I say this in RPS.
That will have something to do?
Please Log in or Create an account to join the conversation.
Because when I give S10 M3. 10volts gives me the voltage at the analog output of the spindle.
Something I noticed is that I say this in RPS.
That will have something to do?
Trying to guess what the question is…
There are two pins you could use:
motion.spindle-speed-out - Desired spindle speed in rotations per minute
motion.spindle-speed-out-rps - Desired spindle speed in rotations per second
Please Log in or Create an account to join the conversation.
Wonder that sometimes things are silly. sorry.
my spindle rotates up to 4000 rpm
MDI S10 M3 ===> analog output (spindle) = 10 VDC
MDI S1 M3 ===> analog output (spindle) = 1 VDC
MDI S4000 M3 ===> analog output (spindle) = 10VDC
I understand that I must give S100 M3 = 0.25 VDC??
Because with "S10 M3" spindle = 10VDC analog output?
must be bad.
thanks
#********************
# Spindle
#********************
[SPINDLE_9]
ENCODER_SCALE = 1024
OUTPUT_SCALE = -10.0
MAX_VELOCITY = 4000.0
OUTPUT_MIN_LIMIT = -4000
OUTPUT_MAX_LIMIT = 4000
Please Log in or Create an account to join the conversation.
setp hm2_5i25.0.7i77.0.1.analogout5-maxlim 4000
setp hm2_5i25.0.7i77.0.1.analogout5-minlim -4000
setp hm2_5i25.0.7i77.0.1.analogout5-scalemax 4000
Please Log in or Create an account to join the conversation.
thanks... Without you, we would not be able alone.
I have the spindle control, thank God.
Right now I do it via external buttons.
But as I can do to control for outputs "7i64" (run, Stop) through HAL.
HAL as I can tell, the output is activated only when you press linuxcnc active. and spindle stop, turn off the output.
some examples would help.
thanks and sorry for all this trouble.
Please Log in or Create an account to join the conversation.
(no 120V should be connected to Mesa equipment)
Please Log in or Create an account to join the conversation.
I understand that I must use 2IO4B SSR modules.
but my question is how to configure or set HAL.
understand that I must connect:
Motion.spindle-on with a 7i64 output. to activate the relay and send the 120 volts at Terminal 32
but not how to do the opposite.
Motion.spindle-brake with 7i64 OUTPUT, turn off the relay, and remove the 120 volts at terminal 33, for spindle stop, and reset (Motion.spindle-on)
www.reliance.com/pdf/drives/instruction_manuals/D3867.pdf
not if I understand, I hope yes.
thanks in advance.
Please Log in or Create an account to join the conversation.
One way is to connect mption.spindle-on to two outputs of the 7i64 and invert one of the outputs.
Then one output will be on when spindle-on is true while the other is off.
the opposite is true when spindle-on is false.
Hope that's what you meant.
Please Log in or Create an account to join the conversation.
If I understand you right you are asking how to have a relay control for stop and start.
One way is to connect mption.spindle-on to two outputs of the 7i64 and invert one of the outputs.
Then one output will be on when spindle-on is true while the other is off.
the opposite is true when spindle-on is false.
Hope that's what you meant.
There is a motion.spindle-brake pin for operating the brake.
www.linuxcnc.org/docs/html/man/man9/motion.9.html
It appears to be included in pncconf.
Looking at the code it seems to be set immediately on a spindle-off command
I can imagine that one might want a delay between the spindle turning off and the brake being applied.
The "timedelay" function could be used for this, I can come up with a bit of HAL is this is a requirement.
www.linuxcnc.org/docs/html/man/man9/timedelay.9.html
Please Log in or Create an account to join the conversation.