Misspelling GefMain When Using Pacs Systems C Programmers Toolkit ka21t0000008XpsAAE | Emerson Customer Center

Misspelling GefMain When Using Pacs Systems C Programmers Toolkit

Description

When creating a C block using PAC's Systems C toolkit there is an issue where if the call to GefMain is spelled incorrectly the block compiles with an error but a project that contains the C block cannot be Stored to the PLC.

Resolution

If the call to GefMain is misspelled as Gefmain and the block is compiled there is an error seen during the compile:

Error 0x1 undefined reference to 'GefMain'

The block does compile, but when this block is added to a project and a Store is attempted an error is seen:

Error 8097: PLC Error - PLC aborted the request [0x05][0xFF] [0x01001B80]

A fault is also logged in the PLC Fault table:

Non-critical CPU software event

Error CodeGroupActionTask Num
901401:Informational3
Fault Extra Data:00 c9 05 c9 8e ae 0e 2d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

If the spelling is corrected (GefMain) and the block is re-compiled the compile error is not seen and if the block is updated in the PLC project with the newly compiled block the project can be stored without error's or faults.