Resources declaration must contain an address whose class (input/output) corresponds to that of the address not fully specified (%I*, %Q*) in the function block. The data type must also match the declaration in the function block. Configuration variables whose instance path is not valid because the instance does not exist are marked as errors. Conversely, an error is also reported if no configuration exists for an instance variable. To get a complete list of all required configuration variables, the menu command ' All instance paths ' in the menu 'Insert' can be used. Sample: In a program there is the following definition of function blocks: PROGRAM PLC_PRG VAR Hugo: locio; Otto:
locio; END_VAR Then a correct variable configuration looks like this: VAR_CONFIG PLC_PRG.Hugo.loci AT %IX1.0 : BOOL; PLC_PRG.Hugo.loco AT %QX0.0 : BOOL; PLC_PRG.Hugo.loci AT %IX1.0 : BOOL; PLC_PRG.Otto.loco AT %QX0.3 : BOOL; END_VAR Two local I/O variables are defined here, a local-In (%I*) and a local-Out (%Q*). An output that is used in the variable configuration must not be described in the project directly or via a variable (AT declaration), since this is not observed. 'Insert''All Instance Paths' This command creates a VAR_CONFIG - END_VAR function block containing all instance paths present in the project. Existing declarations are not re-inserted to preserve existing addresses.
This menu item is available in the variable configuration window when the project is compiled (' Project''Rebuild all '). Document frame If you need to document a project several times, for example with German and with English comments, or if you want to document several similar projects that use the same variable names, then you can save yourself a lot of work by creating a document frame with the command ' Extras' 'Make Docuframe file'. You can load the created file into any text editor and edit it.
The file begins with the line DOKUFILE , then follows a listing of the project variables, with three lines given for each variable, a line VAR , which indicates when a new variable is coming, then a line with the name of the variable, and finally an empty line. You can now replace this line with a comment about the variable. Simply delete variables from the text that you do not want to document. You can create as many document frames as you want for your project. TX1200 163 Version: 1.3