How can I define the axis name of a AC spindle motor?
Posted: Wed Aug 19, 2020 5:54 pm
I use 5 step motors to drive the gantry. I use another step or a DC servo motor to drive the extruder. I also use a AC motor driven by a frequency converter to be the spindle motor. I will connect the frequency converter with the Kstep board, refer to the figure below:
My question is: I know in the gcode the code "S**" is to set the spindle speed. But how can the program interpreter knows which port is to control the spindle motor? Because now the AC motor is controlled by the KFLOP IO 44 JP7 Pin5 now, not by the channel 0-3 or 5-7. So it can't be defined by the function named "DefineCoordSystem()" or "DefineCoordSystem8()". So how can the gcode to run the AC motor by a axis name such as A,B,C,U,V?
The nature of my question is: how can we define the axis name of a motor that is not driven by the channel 0-7. For example if the used extruder motor, spindle motor or other motor is not a step motor, but a DC servo motor or AC motor, it can not be connected to the channel 0-7. Then how can we define this DC/AC motor as the A,B,C or U, V axis to make the gcode program can use them?
This maybe a simple question but I am only a beginner come from automation/computer science area. So, sorry...
Yours,
Huang Lei
08-19-2020
I will try to run the example program named "KStepPWMCorrected.c" to test it. And I think it should be ok.My question is: I know in the gcode the code "S**" is to set the spindle speed. But how can the program interpreter knows which port is to control the spindle motor? Because now the AC motor is controlled by the KFLOP IO 44 JP7 Pin5 now, not by the channel 0-3 or 5-7. So it can't be defined by the function named "DefineCoordSystem()" or "DefineCoordSystem8()". So how can the gcode to run the AC motor by a axis name such as A,B,C,U,V?
The nature of my question is: how can we define the axis name of a motor that is not driven by the channel 0-7. For example if the used extruder motor, spindle motor or other motor is not a step motor, but a DC servo motor or AC motor, it can not be connected to the channel 0-7. Then how can we define this DC/AC motor as the A,B,C or U, V axis to make the gcode program can use them?
This maybe a simple question but I am only a beginner come from automation/computer science area. So, sorry...
Yours,
Huang Lei
08-19-2020