PLC_R_STOP_CAUSE: From RUN State to Other State Transition Cause Codes

Enumerated Type Description

The PLC_R_STOP_CAUSE enumeration data type contains the following values:

Enumerator

Value

Comment

What to do

PLC_R_STOP_REASON_ UNKNOWN

00 hex

Initial value or stop cause is undefined.

Contact your local support in case of undefined stop cause.

PLC_R_STOP_REASON_HW_ WATCHDOG

01 hex

Stopped after hardware watchdog timeout.

Contact your local support.

PLC_R_STOP_REASON_ RESET

02 hex

Stopped after reset.

See reset possibilities in the Controller State Diagram chapter.

PLC_R_STOP_REASON_ EXCEPTION

03 hex

Stopped after exception.

Check your application. See System and Task Watchdogs. A reset is needed to enter Run mode.

PLC_R_STOP_REASON_ USER

04 hex

Stopped after a user request.

See Commanding State Transitions.

PLC_R_STOP_REASON_ IECPROGRAM 

05 hex

Stopped after a program command request (for example: control command with parameter PLC_GVL.PLC_W.q_wPLCControl: =PLC_W_COMMAND.PLC_W_STOP;).

PLC_R_STOP_REASON_ DELETE

06 hex

Stopped after a remove application command.

See Applications.

PLC_R_STOP_REASON_ DEBUGGING

07 hex

Stopped after entering debug mode.

PLC_R_STOP_FROM_ NETWORK_REQUEST

0A hex

Stopped after a request from the network, USB key, or PLC_W command.

PLC_R_STOP_FROM_INPUT

0B hex

Stop required by a controller input.

PLC_R_STOP_REASON_ RETAIN_MISMATCH

0C hex

Stopped after an unsuccessful check context test during rebooting.

Retain variables were deleted because they were not referenced in the application. If the application sets retain variables to their initialization values, the Run Command is available.

PLC_R_STOP_REASON_ BOOT_APPLI_MISMATCH

0D hex

Stopped after an unsuccessful compare between the boot application and the application that was in the memory before rebooting.

Create a valid boot application.

PLC_R_STOP_REASON_ POWERFAIL

0E hex

Stopped after a power interruption.