Got axes up and running.
So now I'm focusing on a spindle control setup and get confused.
First some dry run findings:
It looks I cannot get spindle running at all.
By looking at the section "Spindle Speed" on Mach screen, there is a DRO "RPM". I cannot get any readings to that, except for a very short period (1 sec). There are number decreasing from about 1000 to 0 within second once I hit F5 or type appropriate code in MDI input (e.g. M3 S500). If I cannot get any readings in to that DRO, I guess that means that the spindle is not rotating at all (Mach is not generating control signals).
Then, how to configure CSMIO/ip-M?
I have ticked "Spindle" in "Motor Outputs" config.
In a CSMIO plugin config I have enable "Spindle DAC" as I am trying to get 0...+10 VDC for my spindle driver.
For the analog output I have chosen Analog OUT 0 and connected pins 1 and 2 accordingly in an analog out out terminal of CSMIO.
Then back to Mach port&pin setup and "Spindle Setup" tab. What should be chosen in a "Motor Control" section? Or does it matter when CSMIO is used? Since I'm using a spindle motor, it would be easy to think "Use Spindle Motor Output" should be checked. But what then, PWM or Step/dir? In a relay control section I have unchecked "Disable Spindle Relays" checkbox, and set output# to 4 and 5 as CSMIO manual recommends. However, I cannot get these output activated in CSMIO by using codes M3 and M4 in MDI or in G-code program.
Spindle pulley ratios are all set to 1 and min and max speed are from few hundres to couple thousands. One question here, are the pulleys selected in a G-code (like in my "real" CNC lathe. Okuma uses codes M40 upwards for calling different gears)?
I am basically looking for a stepbystep spindle setup guide for really dummies. At least I did not find anybody else struggling with the same issue...
Cheers,
Juha