Jump to content
OMRON Forums

RESOLVED - Floating-point in User-Written Phase Routines


hannsx
 Share

Recommended Posts

Hi, I found a problem that may bug other users as well and I wanted to share that issue. I have a project with 2 user-written phase routines and a CCISR.

 

Out of no special reason I set up the usrcode.c-file like this:

 

|phase routine 1

|CCISR

|phase routine 2

 

When I wanted to declare a double-type variable I got the notice:

"Double type is not allowed in this context" .

 

I searched the manuals for explanations but could instead find examples which use double data-types. Turns out that all is fine when I change the order the routines to:

 

|phase routine 1

|phase routine 2

|CCISR

 

I know I am not allowed floating point math in the CCISR. But when I declare double variables there I do not even get an error - notice.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Guest
This topic is now closed to further replies.
 Share


×
×
  • Create New...