AXC F 2152 Function Block Issue

Hi All,

I recently migrated to a new laptop and encountered an issue when opening an existing project that previously worked without any problems on my old machine.

After installing PLCnext Engineer on the new laptop, the project was automatically updated to the latest software version. The project uses the Modbus_TCP_13 library, and after reading about similar issues discussed in this forum, I upgraded it to Modbus_TCP_16. Unfortunately, I continue to receive the same error.

At this point, I am unsure what is causing the issue or how to resolve it. Has anyone experienced a similar problem or have any suggestions for troubleshooting?

Any assistance would be greatly appreciated. Thank you.

Hi Ameya.D,

if memory serves me correctly then those function blocks were moved to the PLCnext Controller lib a few versions ago (dunno from what version you upgraded). Older libs emit this error message because back then there was no need for them to reference the PLCnext Controller lib.

However… the Modbus_TCP_16 has this reference

image

and when adding it to an empty project it compiles without error.

I assume the root cause lies in another library in your project. Can you add the libraries one by one and see if they compile successfully?

BR

DivisionByZero

Do you mean all the libraries now need to be saved in C:\Program Files\PHOENIX CONTACT\PLCnext Engineer 2026.3\Libraries folder?

I was having an separate issue with the OneDrive access settings where it was not allowing access to the binaries of the project. That’s when I moved all folder including libraries to an accessible folder and updated the paths in the project to reference the new folders.

Just the ones that are referenced in your project where you see the SEM1041 errors.