4. INITIAL PROGRAMMING
4.14.11. Prepare_Stop Function
In this POU, the PrepareStop system event function is defined. It belongs to the communication task and is called before
stopping the application. When there is active communication with the PLC, it is possible to observe the event status and the
call count in the System Events tab in the Task Configuration object. Every time the user stops the application, the count is
incremented.
4.14.12. Start_Done Function
In this POU, the StartDone system event function is defined. It belongs to the communication task and is called when the
application is successfully started. When there is active communication with the PLC, it is possible to observe the event status
and the call count in the System Events tab in the Task Configuration object. Every time the user successfully launches the
application, the count is incremented.
4.14.13. Stop_Done Function
In this POU, the StopDone system event function is defined. It belongs to the communication task and is called when
the application is successfully stopped. When there is active communication with the PLC, it is possible to observe the event
status and the call count in the System Events tab in the Task Configuration object. Every time the user successfully stops the
application, the count is incremented.
58