Author Topic: PLC Code Compilation Failure {Function block instance 'GetSPNName' not defined  (Read 6720 times)

Offline ElecHydEng

  • PLUS+1 Novice
  • *
  • Posts: 1
  • Karma: +0/-0
Gents,

Can someone please help with the compilation Failure am getting relating to Fault Error446:1077.

*** ERROR 446:1077 *** [PLC2C] PLC Code Compilation Failure {Function block instance 'GetSPNName' is not defined, and there is no function by that name.}
Line: [ 29 ] in implementation of PrintSPNName



not sure what going on, i have pretty much deleted the whole program and tried to compile again its still gives the same error.


can someone help please happy to pay for the service.


Regards,
H.A

Offline Tor

  • Administrator
  • PLUS+1 Guru
  • *
  • Posts: 296
  • Karma: +28/-1
Hello ElecHydEng

A guess is that you have some PLC Units left in the project manager.  See image.

If you know you are not using any them, you can delete it all. 
DO A BACKUP BEFORE DELETING ANYTHING.  Just in case.

You might also delete the C Code part. I missed marking it.


I hope it helps.
« Last Edit: December 12, 2022, 08:04:23 AM by Tor »
Best regards,
Tor
PLUS+1® SW PAE Team