Problems with Infi90FCLib in 800xA.... How to solve the Problem
I'm trying to configure some control strategies with Infi90FCLib Library in a 800xA System, however when i compile the program for pass to Test Mode (for softcontroller) some blocks cannot pass the compile stage..... Generating the following error: Error 1346, Unresolved external Variable InfiAppData.
Some blocks like Device driver pass the compiling whereas AOL or ControlStation
Can you please help me with this problem
Thanks is Advance
Voted best answer
Check the Online Help files or manuals for how External Variables work.
Basically "External Variables" Completely bypass the normal methods for connecting and passing parameters. If a function block has an external variable declared, then at compile time, the block looks for a variable of that same name and type in the Global Variables list of the parent application where the block is placed.
If the Global Variable doesnt exist or is the wrong type, then the compile fails. In your case the block is looking for a Global Variable called "InfiAppData" which is unresolved - ie you havent created it.
( Btw, the Soft Controller does not use "Test Mode". Compile and load the program to a soft controller just like you would load it to a real controller. The soft controller is identified by the port number after its IP address, usually :2 )
Answers
Please refer to Infi90lib manual & check you have setup this var
3BUA000938-310 page 46:
The global variable is created by double clicking the application (Say
Application_1) and in the “Global variables” tab, add a variable named
“infiappdata” of Data type “InfiAppData”
Further details are in the manual as to the values needed here. This is an excerpt from the Infi90lib 3.1 but is equally applicable to older Lib versions.
Add new comment