HA_CS31_CALLBACK_STOP - HA CPU STOP Event Function

../_images/4ff19e6dfe5e553e0a331390012e581c

Function HA_CS31_CALLBACK_STOP

General Information
Available as of PLC runtime system V2.3 and above
Included in library HA_CS31_AC500_V23.lib (V2.4). In previous library versions this component was a program (not a function).
Type DWORD (previously this function was a program)

This mandatory function is intended to detect the CPU stop event and process logic related to HA-CS31 project. For further information please refer to Prerequisites for the Use of HA-CS31 Library.

HA_CS31_CALLBACK_STOP function is programmed to process logic related to HA-CS31 project in case of CPU switching into stop mode.

If there is a STOP event initiated in the PLC, HA_CS31_CALLBACK_STOP function is processed before the CPU switches to STOP state. This function sets/resets some HA-CS31 library global variables, to provide the one CPU’s STOP information to the other CPU.