Ralfy
To test whether I can write a simple code to Arduino Uno I read an  Uno AI into a Variable (Class: Input, Type: Real, Location %IW1) and used the variable to triggr (by Greater Than Block) the Uno Build in LED at port 13 (%QX).3). And it worked! 
 
But when I compiled a second time it no longer worked because the Location of the variable had been deleted and the Location field for this variable did not allow to enter the location again, unless I change the variable Class to Local. However with the variable class as "Local" the program does not upload to Arduino. Change class back to Input allows fault free uploading and functioning of program, however the Location is deleted again, not allowing me easily to upgrade and evaluate the program.
 
What am I missing here?
 
Cheers
Ralf
Reply 0 0
thiagoralves
You should only use class input or output when you are coding blocks. For your main program the class should always be local (except in some unusual cases). The problem must be somewhere else.
Reply 0 0
Ralfy
OK. Thiago. I will keep all variables local. Will figure out why it sometimes does not compile.  I just started OpenPLC in the hope to run actual industrial PLC rather than Arduino in the next years.  I also looked at Visuino, all in the hope to find some graphical programming tool as nice as Labview which is good for lab processes.
 
Great to have such a quick reply from the creator. Regards
 
Ralf
Reply 0 0
thiagoralves
Post your full compilation output and we might be able to help figure out where the problem is
Reply 0 0
Reply