Now Error C0136, C0046, C0032 but i don't change the code

Hello,

I’m currently working on a project for a PFC200 using CodeSys 3.5 SP19 patch 2 and I haven’t encountered any errors. I upgraded to patch 7 to try it out, and now I’m getting the following errors, whether in patch 2 or 7:
----- Compilation process started: application: Device.Application_Element_de_CMD -------
Assigning a type to a code…
[ERROR] wagosyscom_internal_pfc, 1.0.2.5 (wago): FbSerialInterface_internal: C0136: Ambiguous use of name ‘RTS_IEC_HANDLE’
[ERROR] wagosyscom_internal_pfc, 1.0.2.5 (wago): FbSerialInterface_internal: C0136: Ambiguous use of name ‘RTS_IEC_RESULT’
[ERROR] wagosyscom_internal_pfc, 1.0.2.5 (wago): Initialize [FbSerialInterface_internal]: C0032: The type 'Unknown type: ‘RTS_INVALID_HANDLE’ cannot be converted to type ‘POINTER TO BYTE’
[ERROR] wagosyscom_internal_pfc, 1.0.2.5 (wago): Initialize [FbSerialInterface_internal]: C0136: Ambiguous use of name ‘RTS_INVALID_HANDLE’
[ERROR] wagosyscom_internal_pfc, 1.0.2.5 (wago): Initialize [FbSerialInterface_internal]: C0046: Identifier ‘RTS_INVALID_HANDLE’ not defined
[ERROR] wagosyscom_internal_pfc, 1.0.2.5 (wago): comextra_is_tx_empty: C0136: Ambiguous use of name ‘RTS_IEC_HANDLE’
[ERROR] wagosyscom_internal_pfc, 1.0.2.5 (wago): comextra_get_line_state: C0136: Ambiguous use of name ‘RTS_IEC_HANDLE’
[ERROR] wagosyscom_internal_pfc, 1.0.2.5 (wago): comextra_is_line_available: C0136: Ambiguous use of name ‘RTS_IEC_HANDLE’
[ERROR] wagosyscom_internal_pfc, 1.0.2.5 (wago): COMSW_SET_MODE: C0136: Ambiguous use of name ‘RTS_IEC_HANDLE’
[ERROR] wagosyscom_internal_pfc, 1.0.2.5 (wago): comextra_set_line_state: C0136: Ambiguous use of name ‘RTS_IEC_HANDLE’
Compilation is complete – 10 errors, 0 warnings
Compilation is complete – 10 errors, 0 warnings: no download possible

Apparently, the error comes from this library. How can I resolve this problem?

Thank you for your attention.

Open up the Library Manager and go to the Placeholders screen. Then find wagosyscom_internal_pfc in the list. Click on the middle column of that row and you should be able to change the library version. If the most recent is not already selected, pick it. If it is, pick the next more recent instead. This usually solves the issue for me.

Hello Adam Reeve,

Thanks for your help, as it was indeed a library version issue. With wagosyscom_internal_pfc version 1.0.2.5, I had a lot of errors. I upgraded to version 1.0.2.7, and the errors all disappeared.

Thank you for your help.

Eric

1 Like