Jump to content
OMRON Forums

RESOLVED - ISR and Float


hannsx
 Share

Recommended Posts

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

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share


×
×
  • Create New...