-

Semantic Error (SEM1268): Invalid method call.

This error has been reported for an invalid call of a method in ST. A method belonging to an SFC function block has been called from outside the FB. Such a method can be one of the following:

Such SFC-specific methods may only be called inside the SFC function block to which they are belong.

Error example

The SFC function block SFC_FB contains a coded transition method Transition1. The FB is instantiated in a program using the instance name MySFC_FB. In the program code, the transition is incorrectly called as follows: b := MySFC_FB.Transition1();

Remedy

Double-clicking the error message opens the code and marks the incorrect code position. Delete the method call.