Dammerel
Hi All
just need a little help
how do i get the pin assignments for a board after i click the location button ?

c2.JPG 

thanks Andrew
Quote 0 0
thiagoralves
You will have to manually insert them. Check the getting started guide on openplcproject.com for your board. Digital inputs start at %IX0.0 digital outputs start at %QX0.0 analog inputs start at %IW0 and analog outputs start at %QW0
Quote 0 0
skv
Browse location is working only for targets supported by Beremiz project. But you probably use openplcproject. It doesn't have such functionality. As thiago, pointed you have to set IEC addresses by hand.
Quote 0 0
Saudalwasly
You will have to manually insert them. Check the getting started guide on openplcproject.com for your board. Digital inputs start at %IX0.0 digital outputs start at %QX0.0 analog inputs start at %IW0 and analog outputs start at %QW0


I am running OpenPLC Editor version 1.0 on ubuntu 16.04. The problem is I cannot enter manual values in the program variable location. The location cell is freezed. It is worth mentioning that when I try to add a global variable from the configuration section, the location cell allows me to enter values. 

Can you please suggest a solution.

All the best 
Quote 0 0
thiagoralves
It depends on the type of the variable. Not all variable types can be located.
Quote 0 0
Saudalwasly
I am trying to define BOOL  variable. The same type can have a location if it is defined globally!
By the way, does the variable class defer a lot?
It only allows me to enter a location if the variable class set to LOCAL

what is the concept behind each class?
Quote 0 0
thiagoralves
Only variables of class LOCAL can be located. Global variables must be defined in the resource and then redefined in the program with class External.
Quote 0 0
Saudalwasly
That explained it!
Thank you for your help.
Quote 0 0
qing
Hi Thiago. I put %IW0 for an analog input. I was able to compile it in OpenPLC Runtime when setting it to INT, but when I changed it to REAL, I got an error message: ./st_files/374641.st:6-6..6-37: error: Bit size of data type is incompatible with bit size of location. Does it mean that I could only use INT for analog input? Is it possible to use REAL for input at all?

Thanks,
Qing Guo
S&C Electric Company
Quote 0 0
thiagoralves
REAL are 32 bit variables. %IW0 is a 16-bit location. Unless you have a hardware that has 32-bit precision on the analog input (quite rare), there is no need to have a 32-bit variable on the analog input. That being said, you can always convert your %IW0 variable to REAL inside your program and manipulate it as REAL.
Quote 0 0