HAL question

More
24 Oct 2012 15:52 #25768 by jlviloria
HAL question was created by jlviloria
I need another help please.

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.

More
24 Oct 2012 18:37 #25772 by jlviloria
Replied by jlviloria on topic Re:HAL question
Another question.

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.

More
24 Oct 2012 19:16 #25773 by andypugh
Replied by andypugh on topic Re:HAL question
jlviloria wrote:

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.

More
24 Oct 2012 20:17 #25774 by jlviloria
Replied by jlviloria on topic Re:HAL question
Thanks for your answer.

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.

More
24 Oct 2012 20:41 #25775 by PCW
Replied by PCW on topic Re:HAL question
You should set the 7I77s analog out 5 (assuming spindle on 5 ) scale to 4000 so it will read directly in RPM

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.

More
24 Oct 2012 22:02 #25779 by jlviloria
Replied by jlviloria on topic Re:HAL question
Peter.

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.

More
24 Oct 2012 22:09 #25780 by PCW
Replied by PCW on topic Re:HAL question
Note that ALL 120V I/O needs to go through your is 2IO4B SSR modules
(no 120V should be connected to Mesa equipment)

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

More
25 Oct 2012 03:11 #25785 by jlviloria
Replied by jlviloria on topic Re:HAL question
Peter, thanks for your answer.


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.

More
25 Oct 2012 07:02 #25787 by cmorley
Replied by cmorley on topic Re:HAL question
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.
The following user(s) said Thank You: jlviloria

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

More
25 Oct 2012 18:53 #25795 by andypugh
Replied by andypugh on topic Re:HAL question

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
The following user(s) said Thank You: jlviloria

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

Time to create page: 0.144 seconds
Powered by Kunena Forum