SysResetPlcProgram

This function of type BOOL can be used to reset the PLC. The reset mode is set with the aid of the enumeration Reset_Mode. The function will return always TRUE.

This function is not synchronous, but it creates a task. The priority of the task is lower than the lowest user task.

Note

The function may not be called in a callback, especially in no one where user tasks are created or destroyed, for example EVENT_BEFORE_RESET, EVENT_AFTER_RESET, EVENT_SHUTDOWN, EVENT_STOP.

Variable Data type Description
rmRESETMODE RESET_MODE

Choose one of the enumeration values to give the desired reset command to the PLC:

0=RESET_WARM, 1=RESET_COLD, 2=RESET_HARD;

RESET_WARM corresponds with the ‘Reset’ command in the Online Menu, RESET_HARD corresponds with the ‘Reset (original)’