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 [url = https: //www.forum.linuxcnc.org/10-advanced-configuration/31423-gearchange-configuring] 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 DinukaShehan
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: DinukaShehan

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: DinukaShehan

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

Time to create page: 0.092 seconds
Powered by Kunena Forum