Hello Guest it is December 13, 2024, 07:56:02 PM

Author Topic: How can I change analog output continuously from a location to another?  (Read 2319 times)

0 Members and 1 Guest are viewing this topic.

Hi, guys,

I'd like to make the controller output digital or analog signal at each location to control a part of my device.
I could change the head speed by putting F code at the end of each coordinate.

X10.0 Y10.0 F20
X11.0 Y10.0 F20.5
...

However, I need to output at least one analog signal differently at each location.
Can I do as following to use the spindle signal?

M3 S10
X10.0 Y10.0 F20
M3 S15
X11.0 Y10.0 F20.5
...

In this case, the problem is that I should divide the path too finely and the voltage changes step-wise rather than gradually.

Isn't there any way to change the analog output voltage gradually by interpolating two values assigned at two different positions?
Thank you for your advice in advance.

Offline KTM

*
  •  92 92
You could possibly use a timer in the M3 macro to increment the feedrate override.