Rockwell Automation T80018 User Manual

Trusted
TM
AN-T80018
Application Note
Function Block Diagram Program Check
(1) Compiler Limit Issue
There is a limit to the total number of unique nodes in an FBD/LD program. Nodes include variables and function/function block icons. Once that limit has been exceeded, the compiler will fail to produce any application code for that particular program, without producing any errors or warning. The downloaded application will contain no code for that program and none of its logic will work. This only applies to large FBD/LD programs.
(2) Function Block Editor Limit Issue
Each node is assigned an ID number. There is a maximum ID number that the editor can assign. Once past this limit, the editor will “wrap-around”. After this occurs, there is a possibility that the editor will inadvertently assign a duplicate node number. Once a duplicate ID has been assigned, the compiler will produce incorrect code, as only the node referenced by the initial duplicate ID is used. Some of the logic in the program will operate incorrectly. This only applies to very large FBD programs or for FBD programs that have undergone extensive and repeated changes.
This document describes how to check for the two issues using a utility program available from support@icstriplex.com.
Issue Record
Issue Number
1 Jul 08 Nick Owens Pete Stock Gerry Creech Initial Issue
2 Jul 08 Nick Owens Pete Stock Gerry Creech Encrypted applications
Date Revised by Technical
Check
Authorised by Modification
Issue 2 Jul 08 AN-T80018 1
Trusted
TM
AN-T80018 FBD Program Check
Function Block Diagram Program Check

Utility Operation

The utility will find the Toolset application folders and will open the group folder which the Toolset is currently using.
You can choose another group using the drop-down selection called ‘Project Group:’.
To scan an application individually, click on the application and click Scan. The utility will check each FBD program in turn.
To scan all applications in a group, click Scan All. This provides a rapid way to check all applications in a workstation.
The program can only check compiled applications. It checks the first issue by looking for no code for a program in the compiled object code.
Note that programs which only have comments or other non­functional elements will also have no compiled code; these will be reported as such by the utility.
Note that the utility cannot check encrypted applications. Remove the encryption first by unchecking the option ‘Encrypt
POU sources files’ (sic) in the application’s password setup.
If any program fails the test, it will be highlighted in the utility window. In the example shown left, applications aum and esd1 have not been compiled and applications esd01, ler3e41 and ler3e54 had programs which did not create compiled code.
Check each program marked as ‘no code present’. In these cases, each of the programs was genuinely empty.
Program MATRIX_4 in bld4fagm has been deliberately edited to have a duplicate ID. The program source code is stored in a file called program.lsf, e.g. MATRIX_4.lsf. If the option ‘Encrypt POU source
files’ is not selected, it may be viewed in a text editor as shown below. On line 173, an ID was found that had already been used.
Issue 2 Jul 08 AN-T80018 2
Loading...
+ 2 hidden pages