Gearchange two gears, electronic clutch

More
22 Jul 2019 08:05 #140162 by CNCDoc
Hi, has a Modig md 5000 with two gears and electronic clutch.
The spindle drive manages braking (no mechanical brake), indexing, etc.
Tried gearchanges.comp from this thread gearchange-configuring [/ url] switch selects the function there is nothing wrong with but need some guidance to adjust the start and stop of the spindle when using gears.

Has connected the high gear on NC and low gear on NO on the same relay because I always need a gear in during indexing of the spindle and during braking.

The problem that arises is that when the spindle starts and stops when the low gear is used. During braking, the spindle switches to high gear which does not sound so nice.

The function I want is that the spindle does not start until the magnet coupling has changed (There is no feeback). and stopped before the low gear is deactivated.

Have a zero speed output from the spindle I intend to wire in.

Tried yesterday an off-delay on the spindle-enabel signal to gearchanges.comp. which worked at stopping the spindle. But maybe there is a better solution?
Attachments:

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

More
22 Jul 2019 16:21 #140198 by Dinuka_Shehan
What is your problem ?

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

More
29 Aug 2019 09:03 #143539 by CNCDoc
Want to make the spindle have to change gear BEFORE it starts.
And at stop, the spindle MUST STOP before changing gear.

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

More
29 Aug 2019 21:22 #143594 by HueyHQ
I have successfully done something like this in a remap code, where I ensure the spindle is at zero before switching the VFD to the next spindle - is remap a road you would look at taking?

Other than that - I got nothin'!
The following user(s) said Thank You: Dinuka_Shehan

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

More
29 Aug 2019 22:15 #143608 by andypugh
I have a similar setup on my lathe, perhaps my spindle component would be helpful?
component gearchange "A component to choose spindle gears according to spindle speed";
pin in float speed-command;
pin in bit spindle-on;
pin in bit manual-low;
pin in bit manual-high;
pin in bit brake-enable;
pin out float motor-speed;
pin out bit low-gear;
pin out bit high-gear;
pin out bit brake;
param rw float low-ratio=3;
param rw float high-ratio=1;
param rw float max-low = 500;

author "andy pugh";
license "GPL";
function _;

;;

FUNCTION(_){
    static int old_M3;

    if (spindle_on) {
        if (!old_M3){ // spindle off to on transition
            if (manual_high) {
                high_gear = 1;
                low_gear = 0;
                brake = 0;
            }
            else if (manual_low){
                high_gear = 0;
                low_gear = 1;
                brake = 0;
            } else if (speed_command <= max_low){
                high_gear = 0;
                low_gear = 1;
                brake = 0;
            } else {
                high_gear = 1;
                low_gear = 0;
                brake = 0;
            }
        }
    } else { //spindle off
        high_gear = 0;
        low_gear = 0;
        brake = brake_enable;
    }
        
    old_M3 = spindle_on;

    if (high_gear){
        motor_speed = speed_command * high_ratio;
    } else if (low_gear){
        motor_speed = speed_command * low_ratio;
    }
}
The following user(s) said Thank You: anfänger, Dinuka_Shehan

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

More
03 Jun 2024 09:50 #302231 by vre
Hello.
I have a mill spindle with 2 gear positions(slow-fast) that can change by activating solenoid hydraulic valve also has 2 inductive sensors to verify which gear is engaged.
The motor rpm controlled by drive with analog -10V +10V from mesa 7i33.
I will use also an encoder for rigid tapping.. how many lines per rev is good ? index pulse needed ?

How can change gears automatically only with m3-m4 command
(<250rpm gear1 | >250rpm gear2 )?
For example if i give m3 s200 change to gear1 and run spindle
if i give m3 s1000 change to gear 2 and run spindle.

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

More
06 Jun 2024 09:14 #302450 by andypugh
The component in the previous message is very close to what you require. The only part missing is the check of the inductive sensors that ensure the gear is engaged.

For rigid tapping you can get away with fewer pulser per rev than you might think, but more is better (up to the point that you can't count them any more)
You definitely need an index pulse, and you definitely need full quadrature. Anything around 25 slots or higher will work fine.

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

Time to create page: 0.102 seconds
Powered by Kunena Forum