Delta Tau Forums
RESOLVED - ISR and Float - Printable Version

+- Delta Tau Forums (http://forums.deltatau.com)
+-- Forum: Delta Tau Data Systems (http://forums.deltatau.com/forumdisplay.php?fid=1)
+--- Forum: Power PMAC (http://forums.deltatau.com/forumdisplay.php?fid=2)
+--- Thread: RESOLVED - ISR and Float (/showthread.php?tid=2726)



RESOLVED - ISR and Float - hannsx - 07-20-2018

Hi,
in the User Manual it says that I can not use float variables or math in the ISR. So is it not even possible to declare a float pointer and to do a typecast of an integer value to write it to that pointer?
I would like to use the speed of the ISR to inject a position offset and would therefore need to write to the floating point register Motor[x].CompPos.
Ii know that injecting a position offset is possible by using a 0D-Compensation Table, but is there a way to accomplish what I have in my mind?
I am using a Linear Motor on a PowerbrickLV,
best regards,
hannsx


RE: ISR and Float - hannsx - 07-20-2018

I got the advice from the support to realize my application in either the servo or phase interrupt, as there are no benefits from having position corrections faster than these. In these Interrupts there are no Limitations to the data formats,
best regards,
hannsx