NC0160: User-defined type
![]() | Available from TwinCAT 3.1 Build 4026 |
![]() | The convention that you define under NC0160 has priority over the prefixes defined with the attribute Pragmas and attributes. |
NC0160: User-defined type is an organizational node for configuring a prefix for special user-defined types, especially those from libraries or for read-only types (e.g. PVOID, HRESULT).
- You can expand the list with conventions: click the blank line below. Then enter the name of a user-defined type or select a user-defined type in the Input Assistant dialog.
- You can delete a convention by selecting it and choosing the Del key.
Sample
- In the ‘Name’ column, enter the read-only system data type
PVOIDon a blank line below the prefixes for user-defined types. - In the same row, in the ‘Prefix’ column, enter the desired prefix, e.g.
p. Variables of typePVOIDare checked for this prefix when running Static Analysis.
More examples of user-defined types whose desired prefix you can configure at this point:
- System data type
HRESULT - Function block
TONfrom the Tc2_System library
