Fanuc 12 bit binary spindle control
22 Oct 2017 13:00 #100631
by johnmc1
Replied by johnmc1 on topic Fanuc 12 bit binary spindle control
Hydraulic controlled Sliding low and high gear.
Please Log in or Create an account to join the conversation.
22 Oct 2017 13:19 #100632
by andypugh
Replied by andypugh on topic Fanuc 12 bit binary spindle control
Then this could be used, either standalone or added in to the other one.
component gearchoice "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){
if (speed_command > max_low){
motor_speed = max_low * low_ratio;
} else {
motor_speed = speed_command * low_ratio;
}
}
}
The following user(s) said Thank You: johnmc1
Please Log in or Create an account to join the conversation.
23 Oct 2017 12:31 #100669
by johnmc1
Replied by johnmc1 on topic Fanuc 12 bit binary spindle control
Good Day Andy,
Thank you for the spindle component
.
I intent to start on the Matsuura mill refit soon , at the moment working out the mesa cards required
Cheers john
Thank you for the spindle component
![:) :)](/media/kunena/emoticons/smile.png)
![:) :)](/media/kunena/emoticons/smile.png)
I intent to start on the Matsuura mill refit soon , at the moment working out the mesa cards required
Cheers john
Please Log in or Create an account to join the conversation.
Time to create page: 0.099 seconds