10/21/2008 5:59 AM | |
Joined: 9/27/2006 Last visit: 9/2/2025 Posts: 12397 Rating:
|
Hello weud; Could you show how you are trying to access the Instance database for one FB from another FB? In my experience, whatever the language used, you can always open an instance DB using the absolute address (DBx.DBxxx) or the symbolic addessing, if available ('Motor2_DB'.SpeedRef). Here is what the SCL programming manual (v. 5.3) says about accessing the static variables of an instance DB: Access The variables are accessed from the code section as follows: · Access within the block: In the code section of the function block in which a variable was declared in the declaration section, you can access the variable.This is explained in detail in the section entitled "Value Assignment". · External access using the instance DB: You can access the variable from other blocks using indexed access, for example DBx.variable. |
Last edited by: dchartier at: 10/21/2008 6:00 AM |
|
Follow us on