GetLastStopCause: Returns the Cause Last Stop

Function Description

This function returns the cause of the last transition from RUN to another state.

NOTE: The similar information value is also available through the System Variable PLC_R.i_wLastStopCause.

Graphical Representation

G-RU-0010336.2.gif-high.gif

 

 

IL and ST Representation

To see the general representation in IL or ST language, refer to the chapter Function and Function Block Representation.

I/O Variable Description

The following table describes the output variable:

Output

Type

Comment

GetLastStopCause

STOP_WHY

Cause of the last transition from RUN to another state.