Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 725 Bytes

File metadata and controls

11 lines (6 loc) · 725 Bytes

Iec062 - Only use OPC, Ehmi, ProfiCloud and Redundant where possible

Severity: Error Error

Checks all [OPC], [Ehmi], [ProfiCloud] and [Redundant] attributes, reports if one is not on fields of classes attributed with [FunctionBlock] or [Program] that are of primitive type, IecString/IecWString type or a user defined type (a struct with [String], [Array] or [Structure] attribute or an enum with the [Enumeration] attribute).

Solution

You can also use the provided automatic Code Fix to remove the attribute. ( Press Alt + Enter on the Error line to find the Code Fix in the context menu)

Remove the attribute or meet the attribute's requirements named above.