Jump to content
OMRON Forums

Unable to use variable reference syntax


Recommended Posts

In the users manual an example is given of defining an array:


global IncrementDist(512);


and then doing


MyTotalDist = sum(&IncrementDist, 512, 1)


to get the sum.


I'm trying to do this but getting the error:


Error : ( error #31) data error in equation : Q1045 = sum(&IncrementDist, 512, 1)


This seems to happen regardless of where I place the line or what variable it's assigning to. I am using IDE version and firmware version

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

This topic is now closed to further replies.

  • Create New...