1.Thanks for that. Next problem is with a PWM cust funct ,for some reason the output will not switch off when P=0 if the clock pulse for the cf ladder line is 0.01 sec but if changed to o.1 sec the function works ok what do ou think could cause this ? Should I be using a clock pulse with a PWM cf ?
2. Canbus protocol - probably J1937