by Robertspark » Thu Oct 18, 2018 5:04 am
Mayhem2408, I am not an expert of M10 qxxx use with a laser.
My question was sort of directed at cncdrive to consider.
You've provided more information which is great.
However I suspect there is a difference between gbrl and uccnc regarding the use of pwm and M10 qxxx
It sounds like you are trying to fire your laser directly using M10 qxxx, and I'm not sure if that is the purpose of M10 qxxx.
It sounds like you may be better using maybe an axis output.
Maybe I am not understanding your circuit and what you are trying to do (which is fine, I am sure cncdrive can now use the information you have provided to answer your question)
You talk about using M10 qxxx giving you 100 steps in a uc100 at 10khz. (Again I am no expert and would wait for cncdrive to reply) but I suspect you may not be understanding M10 qxxx.
M10 qxxx is scaled from 0% to 100% as 255 steps (according to the uccnc manual)
I don't think you can scale it from 0-100 unless you are using a macro to rescale the value. Also this is used to vary the pwm signal output from the UC motion controllers
Again don't shoot the messenger, please wait for in drive to reply, but I suspect with using UC motion controllers you are missing a piece of hardware. The reason why I say this is the Arduino board can be programmed to do everything and anything.
If motion controllers do motion, but they can also be programmed to do other things within reason. You mentioned the uc400 running at 400khz giving you 1500khz signal. That I do not believe is possible using just the output of the uc400 motion controller. The maximum pulse output is 400khz, it cannot step more than that.
Pwm is something slightly different.
It can have 255 steps , at 400khz kernel setting, the fastest you can set the pwm carrier wave is 400,000 / 255 = ~ 1568 Hz (i.e 1.5 khz ).... Not 1500khz as your last post
I've got to go to work now, I'll come back to this later