Spark-Concepts / xPro-V5

xPro-V5 CNC Motion Control System Documentation and User Information
42 stars 20 forks source link

Risky situation; spindle speed is remembered after homing #174

Open ImagineerNL opened 2 years ago

ImagineerNL commented 2 years ago

I'm currently in the process of setting up my xPro CNC with a 0-10V Digital Spindle by AMB (Kress) Measuring the 0-10V output to finetune it as per the wiki. https://github.com/Spark-Concepts/xPro-V5/wiki/Front_Panel#toolheadrs485

Using the webUI on the controller. I have the spindle 0-10V through the internal relay (setup as the spindle Enable feature) where it only turns the spindle on when issuing an M3 Sxxxx command and disables when issuing an M5 command. This is because the 0V is actually 0.5V on low, this powering on my spindle on lowest speed. (separate issue, but ive seen plenty of people with this issue already) This is resolved by using the internal relay.

If you set the a spindle speed (M3 S25000 in my case for 10V), then home,

I would have expected the following things to happen when issuing a Home command:

m3 s25000
ok
<Idle|MPos:-185.000,-5.000,-45.000|FS:0,25000|Ov:100,100,100|A:S>
<Idle|MPos:-185.000,-5.000,-45.000|FS:0,25000>
.......
<Idle|MPos:-185.000,-5.000,-25.000|FS:0,25000>
<Idle|MPos:-185.000,-5.000,-25.000|FS:0,25000|Ov:100,100,100|A:S>
$H
<Home|MPos:-185.000,-5.000,0.070|FS:840,0>
<Home|MPos:-185.000,-5.000,25.035|FS:0,0|Pn:Z>
<Home|MPos:-185.000,-5.000,-5.000|FS:0,0|WCO:0.000,0.000,0.000>
<Home|MPos:46.630,46.635,-5.000|FS:1414,0|Pn:Y>
<Home|MPos:96.680,96.680,-5.000|FS:1414,0|Pn:Y>
<Home|MPos:146.545,146.545,-5.000|FS:1414,0|Pn:Y>
<Home|MPos:-5.000,-5.000,-5.000|FS:0,0|Ov:100,100,100>
ok
<Idle|MPos:-5.000,-5.000,-5.000|FS:0,0>
$J=G91 G21 F1000 X-100
ok
<Jog|MPos:-5.140,-5.000,-5.000|FS:960,25000>
<Jog|MPos:-30.325,-5.000,-5.000|FS:1000,25000>
<Jog|MPos:-80.160,-5.000,-5.000|FS:1000,25000|WCO:0.000,0.000,0.000>
<Idle|MPos:-105.000,-5.000,-5.000|FS:0,25000>
<Idle|MPos:-105.000,-5.000,-5.000|FS:0,25000>