Jump to content
OMRON Forums

cout in SubProg


ehuber
 Share

Recommended Posts

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Guest
This topic is now closed to further replies.
 Share


×
×
  • Create New...