HAL question
25 Oct 2012 22:53 #25812
by jlviloria
Replied by jlviloria on topic Re:HAL question
Cris, Andy. Thank you.
clear that's what I want, but not how to express in HAL.
hm2_5i25.0.7i77.0.1.output motion.spindle-on-01
hm2_5i25.0.7i77.0.1.inverter_output motion.spindle-on-02
This would be correct.?
I can not express properly timedelay in HAL.
I you could you please give me an example.
thanks in advance.
clear that's what I want, but not how to express in HAL.
hm2_5i25.0.7i77.0.1.output motion.spindle-on-01
hm2_5i25.0.7i77.0.1.inverter_output motion.spindle-on-02
This would be correct.?
I can not express properly timedelay in HAL.
I you could you please give me an example.
thanks in advance.
Please Log in or Create an account to join the conversation.
25 Oct 2012 23:33 #25818
by andypugh
net spindle-on motion.spindle-on hm2_5i25.0.7i64.0.1.output-01
net spindle-brake motion.spindle-brake hm2_5i25.0.7i64.0.1.output-02
(or something along those lines for a simple connection)
To use timedelay
loadrt timedelay count=1
...
addf timedelay servo-thread
...
net brake-on motion.spindle-brake timedelay.0.in
net break-delayed timedelay.0.out hm2_5i25.0.7i64.0.1.output-02
setp timedelay.0.on-delay 0.5
setp timedelay.0.off-delay 0
Replied by andypugh on topic Re:HAL question
clear that's what I want, but not how to express in HAL.
net spindle-on motion.spindle-on hm2_5i25.0.7i64.0.1.output-01
net spindle-brake motion.spindle-brake hm2_5i25.0.7i64.0.1.output-02
(or something along those lines for a simple connection)
To use timedelay
loadrt timedelay count=1
...
addf timedelay servo-thread
...
net brake-on motion.spindle-brake timedelay.0.in
net break-delayed timedelay.0.out hm2_5i25.0.7i64.0.1.output-02
setp timedelay.0.on-delay 0.5
setp timedelay.0.off-delay 0
Please Log in or Create an account to join the conversation.
26 Oct 2012 01:12 #25822
by jlviloria
Replied by jlviloria on topic Re:HAL question
apology with what I wrote above, I set as google translated that part.
apart from the brake,
I need to remove, 120VAC, variable speed drive (VSD stop)
if not, the spindle would stay energized.
then it would be this:
net spindle-on motion.spindle-on hm2_5i25.0.7i64.0.1.output-01
net spindle-stop motion.spindle-on hm2_5i25.0.7i64.0.1.inverter_output-02
net spindle-brake motion.spindle-brake hm2_5i25.0.7i64.output-03
adding the timedely to apply the brake only 3 seconds when the VSD has gone out with (net spindle-stop) and can stop the spindle.
This would be correct?
apart from the brake,
I need to remove, 120VAC, variable speed drive (VSD stop)
if not, the spindle would stay energized.
then it would be this:
net spindle-on motion.spindle-on hm2_5i25.0.7i64.0.1.output-01
net spindle-stop motion.spindle-on hm2_5i25.0.7i64.0.1.inverter_output-02
net spindle-brake motion.spindle-brake hm2_5i25.0.7i64.output-03
adding the timedely to apply the brake only 3 seconds when the VSD has gone out with (net spindle-stop) and can stop the spindle.
This would be correct?
Please Log in or Create an account to join the conversation.
26 Oct 2012 01:59 #25824
by andypugh
No, there are several errors there.
The motion.spindle-on HAL pin is an output (writer) pin. You are
linking it there to two signals, one called spindle-on and one called
spindle-stop.
That seems odd.
There is no pin called hm2_5i25.0.7i64.0.1.inverter_output-02
If you want to have an output on the 7i64 which is the inverse of
spindle on the syntax is:
net spindle-on motion.spindle-on
net spindle-on hm2_5i25.0.7i64.0.1.output-01
net spindle-on hm2_5i25.0.7i64.0.1.output-02
setp hm2_5i25.0.7i64.0.1.output-01-invert
Or, if you prefer all the nets can be one line.
net spindle-on motion.spindle-on n hm2_5i25.0.7i64.0.1.output-01
hm2_5i25.0.7i64.0.1.output-02
setp hm2_5i25.0.7i64.0.1.output-01-invert
Replied by andypugh on topic Re:HAL question
net spindle-on motion.spindle-on hm2_5i25.0.7i64.0.1.output-01
net spindle-stop motion.spindle-on hm2_5i25.0.7i64.0.1.inverter_output-02
net spindle-brake motion.spindle-brake hm2_5i25.0.7i64.output-03
This would be correct?
No, there are several errors there.
The motion.spindle-on HAL pin is an output (writer) pin. You are
linking it there to two signals, one called spindle-on and one called
spindle-stop.
That seems odd.
There is no pin called hm2_5i25.0.7i64.0.1.inverter_output-02
If you want to have an output on the 7i64 which is the inverse of
spindle on the syntax is:
net spindle-on motion.spindle-on
net spindle-on hm2_5i25.0.7i64.0.1.output-01
net spindle-on hm2_5i25.0.7i64.0.1.output-02
setp hm2_5i25.0.7i64.0.1.output-01-invert
Or, if you prefer all the nets can be one line.
net spindle-on motion.spindle-on n hm2_5i25.0.7i64.0.1.output-01
hm2_5i25.0.7i64.0.1.output-02
setp hm2_5i25.0.7i64.0.1.output-01-invert
Please Log in or Create an account to join the conversation.
Time to create page: 0.171 seconds