solved Spindel start/stop with SSR Module

More
14 Aug 2018 10:57 - 15 Aug 2018 06:43 #116031 by caban
I want to start my spindel with a SSR Module.
But something is wrong in my code.
Can somebody help me?
Attachments:
Last edit: 15 Aug 2018 06:43 by caban.

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

More
14 Aug 2018 11:17 #116033 by BigJohnT
I can't open your files for some reason but something like
net spindle-on motion.spindle−on => some.output.pin

JT

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

More
14 Aug 2018 11:46 #116035 by caban
# --- SPINDLE-ON ---
net spindle-on => hm2_5i25.0.7i76.0.0.output-07

is set, but there is too in the hal..

#*******************
# SPINDLE S
#*******************

setp pid.s.Pgain [SPINDLE_9]P
setp pid.s.Igain [SPINDLE_9]I
setp pid.s.Dgain [SPINDLE_9]D
setp pid.s.bias [SPINDLE_9]BIAS
setp pid.s.FF0 [SPINDLE_9]FF0
setp pid.s.FF1 [SPINDLE_9]FF1
setp pid.s.FF2 [SPINDLE_9]FF2
setp pid.s.deadband [SPINDLE_9]DEADBAND
setp pid.s.maxoutput [SPINDLE_9]MAX_OUTPUT
setp pid.s.error-previous-target true

net spindle-index-enable <=> pid.s.index-enable
net spindle-enable => pid.s.enable
net spindle-vel-cmd-rpm => pid.s.command
net spindle-vel-fb-rpm => pid.s.feedback
net spindle-output <= pid.s.output

# ---setup spindle control signals---

net spindle-vel-cmd-rps <= motion.spindle-speed-out-rps
net spindle-vel-cmd-rps-abs <= motion.spindle-speed-out-rps-abs
net spindle-vel-cmd-rpm <= motion.spindle-speed-out
net spindle-vel-cmd-rpm-abs <= motion.spindle-speed-out-abs
net spindle-enable <= motion.spindle-on
net spindle-cw <= motion.spindle-forward
net spindle-ccw <= motion.spindle-reverse
net spindle-brake <= motion.spindle-brake
net spindle-revs => motion.spindle-revs
net spindle-at-speed => motion.spindle-at-speed
net spindle-vel-fb-rps => motion.spindle-speed-in
net spindle-index-enable <=> motion.spindle-index-enable

# ---Setup spindle at speed signals---

sets spindle-at-speed true

Maybe something overlaps .. I'll try M5 or M6 in MIDI
Enclosed the files as *.doc
Attachments:

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

More
14 Aug 2018 14:07 - 14 Aug 2018 14:08 #116048 by OT-CNC

Maybe something overlaps .. I'll try M5 or M6 in MIDI


What M code are you using to turn on the spindle? Spindle CW is M3 and CCW is M4. M5 turns it off.
Does it come on via the gui control ?
Last edit: 14 Aug 2018 14:08 by OT-CNC. Reason: quotes

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

More
14 Aug 2018 15:31 #116051 by caban
Goal is to use M3 and the gui control..

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

More
14 Aug 2018 15:42 #116052 by andypugh
Does the SSR have an LED to show if it is being activated?

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

More
14 Aug 2018 15:46 #116053 by andypugh
I think that the basic problem is that you have inconsistent signal names.

net spindle-on => hm2_5i25.0.7i76.0.0.output-07
net spindle-enable <= motion.spindle-on
net spindle-enable => pid.s.enable

I think that those all need to be net spindle-enable...

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

More
14 Aug 2018 15:59 #116058 by caban
Yes, the SSR has a activated LED..

The signal names were a suggestion from pncconf..

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

More
14 Aug 2018 16:05 #116060 by andypugh
Signal names are entirely arbitrary in HAL.
Stepconf and PnCConf use the same signals fairly consistently, but these should not be viewed as defining any sort of standard.
The following user(s) said Thank You: caban

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

More
14 Aug 2018 16:10 - 14 Aug 2018 16:15 #116061 by caban
Editing

net spindle-on => hm2_5i25.0.7i76.0.0.output-07
to
net spindle-enable => hm2_5i25.0.7i76.0.0.output-07
works..
Last edit: 14 Aug 2018 16:15 by caban.

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

Time to create page: 0.132 seconds
Powered by Kunena Forum