Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 649 Bytes

File metadata and controls

36 lines (25 loc) · 649 Bytes

Iec003 - Method missing that FunctionBlock/Function/Program needs

Severity: Error Error

Functions need the following method and attribute:

[Execution]
public static __Process()
{
}

[FunctionBlock]s and [Program]s need the following methods and attributes:

[Initialization]
public __Init()
{
}
[Execution]
public __Process()
{
}

Solution

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

Insert the missing methods with their attributes to resolve the error.