Why do I get an "FBPT Type" error on build of my PG5 2.0 project?

FAQ #101606

In case the FB parameter checker from PG5 2.0.150 is not able to identify the type of an FB parameter this error is generated while linking the object files to the pcd file.

 

Symptom
It is no longer possible to build a PG5 project with PG5 2.0 (while it is possible to build the project with PG5 1.4). On build, during the linking of the object files an error such as the following appears and the build is aborted:

Assembly complete. Errors: 0 Warnings: 17
Linking: _somefile_A.obj + otherfile.obj + morefile.obj + nextfile.obj + somesymbols.obj + _TCPIPDBX.obj

To: somefile_A.pcd somefile_A.map
Error 2103: Object file error: otherfile.obj: Psn 7C3CE (0): FBPT Type
Build failed. Total errors: 1 Total warnings: 17


Reason
This error occurs because there are untyped symbols as base addresses for FB parameters, and the FB parameter checker fails.

An "untyped" symbol is missing the type and is only assigned when the address is used, e.g.
 
Symbol   EQU   100
             CFB   MyFB
                      R Symbol

Solution
There are several ways to build the project:

  • The easy way: Turn off the Build Option "Strict FB Parameter Checks".
  • The recommended way: Add types for all base address definitions. This may detect other errors too, and is much safer. 

Remark
In PG5 2.0 SP2 there will be a better error message than "FBPT Type".

 

Categories

PG5 2.0 / SEdit (IL programming)

Last update: 27.05.2015 14:03

First release: 26.04.2011 10:13

Views: 5387

The requested software / document is no longer marketed by Saia-Burgess Controls AG and without technical support. It is an older software version which can be operated only on certain now no longer commercially available products.

Download