ehuber Posted March 3, 2016 Share Posted March 3, 2016 Hello, I am trying to use a local variable to command the percentage of open loop command in a subprog. The IDE is throwing a invalid data error when I try to download the project to the ppmac. Why can't I use an integer variable in place of an integer? ex. open SubProg 25 local ctr2; ctr2=0; while(Ecat[0].IO[15]data<=(FreeMotionTorque*1.10)) { ctr2++; cout 2:ctr2; //openloop command. This is throwing the invalid data error. } further down in my code I have this..... cout 2:0 //take the openloop command back down to 0. This is perfectly fine. close; Thanks for your help! Eric Link to comment Share on other sites More sharing options...
Omron Forums Support Posted March 3, 2016 Share Posted March 3, 2016 Expressions need to be in parentheses: Change: cout 2:ctr2; To: cout 2:(ctr2); Link to comment Share on other sites More sharing options...
Recommended Posts