-

Semantic Error (SEM1198): Assignment to step status is not allowed.

The semantic analysis has detected a write access to a member of the step state structure SFC_STEP_STATE. This structure applies at the output of an SFC FB and can be used to poll diagnostic data on the state machine execution. It consists of the following members:

As these are status information they may only be read not be written in the code.

Remedy

Further Info
For more information refer to the topic "SFC Parameters, Operating Modes and Data Types"