CCW dosen´t Work

More
03 Aug 2024 16:16 #306860 by Basti
CCW dosen´t Work was created by Basti
Hello everyone,

First of all, many thanks to the forum and the many helpful contributions. Thanks to you, I almost got an old Emcotourn 340 working again.

I just can't get the spindle's CCW to work.

With CW the control gives me everything.

With CCW, the spindle brack signal comes briefly and then signals that the spindle has reached speed. But nothing turns.the other signals don't come on either.
 Maybe someone can tell me what's wrong in the ini or hal. Thank you very much and best regards Sebastian
 
Attachments:

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

More
03 Aug 2024 16:27 #306862 by Aciera
Replied by Aciera on topic CCW dosen´t Work
Use the 'Halshow' tool and watch these signals when trying to run the spindle CCW:

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

Post a screenshot so we can have a look.
The following user(s) said Thank You: spumco, Basti

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

More
03 Aug 2024 16:32 #306863 by spumco
Replied by spumco on topic CCW dosen´t Work
Without getting in to hardware diagnostics, first thing I'd try is editing the INI file.

Change [SPINDLE]:
MAX_VELOCITY = 3000

To:
[code]MAX_FORWARD_VELOCITY =3000
MIN_FORWARD_VELOCITY =
MAX_REVERSE_VELOCITY =3000
MIN_REVERSE_VELOCITY =
[/code]

And see if that helps.  I assume you're using a 0-10v analog signal the the spindle motor VFD.  I suggest setting up a halshow watch list that includes all the spindle output signals/pins, including the output voltage to the VFD.
The following user(s) said Thank You: Aciera, Basti

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

More
03 Aug 2024 16:43 #306866 by spumco
Replied by spumco on topic CCW dosen´t Work

Use the 'Halshow' tool and watch these signals when trying to run the spindle CCW:


Post a screenshot so we can have a look.
 


You seem to be about 10 seconds ahead of every response I type!
The following user(s) said Thank You: tommylight, Basti

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

More
03 Aug 2024 17:09 #306868 by Aciera
Replied by Aciera on topic CCW dosen´t Work

You seem to be about 10 seconds ahead of every response I type!

But your diagnostic seems more informed than mine.
The following user(s) said Thank You: tommylight, spumco, Basti

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

More
03 Aug 2024 17:11 - 03 Aug 2024 17:12 #306869 by PCW
Replied by PCW on topic CCW dosen´t Work
The spindle analog settings are for a -10V to +10V controlled spindle
If you have a 0 to +10V controlled spindle you will need to replace

net spindle-vel-cmd-rpm => pid.s.command

with

net spindle-vel-cmd-rpm-abs => pid.s.command

and use a separate digital output to control the spindle direction
Last edit: 03 Aug 2024 17:12 by PCW.
The following user(s) said Thank You: tommylight, Basti

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

More
03 Aug 2024 18:11 #306871 by Basti
Replied by Basti on topic CCW dosen´t Work
Hello everyone, with spumco's idea the ccw works. Only that the spindle accelerates to the maximum and ignores every S command.

As for the hardware, there is an old Contraves ADB/F converter installed for the spindle that needs +/- 10 volts. This is cams from The Mesa 7i83

I also noticed that my spindle at speed is only displayed when it is stationary.

However, the expected value for CCW now shows that the S500 only revs up to full speed.


Attached are pictures of standstill and M3 S500. M4 I don't dare take a screen shot because the spindle rotates at 6000 when cold

Thank you very much for such quick answers :-)
Attachments:

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

More
03 Aug 2024 19:28 - 03 Aug 2024 19:37 #306875 by PCW
Replied by PCW on topic CCW dosen´t Work
The spindle PID settings are odd.

Normally you would start with:

P = 0
I = 0
D = 0
FF0 = 1
FF1 = 0
FF2 = 0
BIAS = 0
DEADBAND = 0
MAX_OUTPUT = 6000

== open loop

Once open loop is working and the feedback RPM is correct
Then it is appropriate to worry about  closing the loop (if that's even needed)

also
net spindle-vel-cmd-rpm => pid.s.command
is correct for a -10 to +10 controlled device

(I guessed wrong that you had a more common 0 to 10V controlled  VFD)
 
Last edit: 03 Aug 2024 19:37 by PCW.
The following user(s) said Thank You: Basti

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

More
03 Aug 2024 20:09 #306877 by Basti
Replied by Basti on topic CCW dosen´t Work
Mega M4 does almost what it's supposed to do,
still can't get the spindle at speed but the speed is just a little bit higher.

the problem was in the Hal, I deleted it.

I also changed the tuning as you suggested

This did the strange run up for CCW
# Use ACTUAL spindle speed from spindle encoder
# Spindle speed jumps back and forth, so we filter it with low pass
# Spindle speed is signed, so we use an absolute component to remove the sign
# ACTUAL speed is in RPS, not RPM, so we scale it.
setp scale.spindle.gain 60
setp lowpass.spindle.gain 1.000000
net spindle-vel-fb-rps => scale.spindle.in
net spindle-fb-rpm scale.spindle.out => abs.spindle.in
net spindle-fb-rpm-abs abs.spindle.out => lowpass.spindle.in
net spindle-fb-rpm-abs-filtered lowpass.spindle.out
 
Attachments:

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

More
03 Aug 2024 20:16 - 03 Aug 2024 20:18 #306878 by PCW
Replied by PCW on topic CCW dosen´t Work
All that scale x60 stuff has been obsolete for a long time
Since the -rpm velocity pin from the encoder was added:

hm2_7i95.0.encoder.02.velocity-rpm

The previous hal file without the scale stuff was much closer
 
Last edit: 03 Aug 2024 20:18 by PCW.
The following user(s) said Thank You: Basti

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

Moderators: newbynobiHansU
Time to create page: 0.160 seconds
Powered by Kunena Forum