Hi Happy new year to all !!
A ton of thanks, i's more than expected ! For sure your file is really better writed for reading/understanding. setp hpg.pwmgen.00.out.00.pin 807 # Digital out from cape Do-0 maybee this is the type of this cape output that make it work directly to the isolator/convertor ? As you can see i have short knowledge for all this pwm dac spindle stuff. As i have check I paste the updated file like you write : Saisissez le code ici... [SPINDLE] # PID, input is RPS P = 1 I = 0.0 D = 0.0 FF0 = 0.0 FF1 = 0.0 FF2 = 0.0 BIAS = 0.0 DEADBAND = 0.0 MAX_ERROR = 0.0 #Max desired spindle speed in RPMs (3300) / 60 = Spindle Speed in RPS. MAX_OUTPUT = 55.00 # quadrature mode (mode-0) is encoder PPR * 4 ENCODER_SCALE = 400 # scale pid output to pwm control value. Max duty cycle of 1.0 / (Max speed * 2) ---range of both directions PWM_OUTPUT_SCALE = 110 # PWMgen output frequency in Hz PWM_PERIOD = 10000000 AT_SPEED_SCALE = 1.01 VELOCITY_RPM_GAIN = 60 -- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit --- You received this message because you are subscribed to the Google Groups "Machinekit" group. To unsubscribe from this group and stop receiving emails from it, send an email to machinekit+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/machinekit/9d918415-24d3-4301-b3c6-5ab12b97c06f%40googlegroups.com.