CIL Generator Error (CILG0030 to CILG0036): The selected resource '...' does not support ...
This description is valid for the CIL Generator errors CILG0030, CILG0031, CILG0032, CILG0033, CILG0035, and CILG0036.
The CIL Generator has detected the use of an element which is not valid in the PLCnext context or for a controller with the firmware version you are using.
If the error message mentions an unsupported POU type (CILG0030), this POU is probably defined in a referenced C# library. (For example, older C# FBs may have an outdated signature or the 'not supported' attribute is set.)
Another reason for the error may be the use of a safety-related POU element in a standard POU.
If the error relates to the use of WSTRING data type (CILG0033), keep in mind that this data type is only supported as of firmware version 2021.0.
Remedy
- Double-click the error message to jump to the affected element.
- Correct the project by replacing the element by a supported one.If the error reason is located in a referenced C# library, contact the provider of the library. If the library source code is available and can be edited, open the C# project and make sure that no invalid property is set for the element mentioned in the error message. Release the library again.