Delta Electronics AH — 9.5.1. Software limit errors

Appendix 3. Operating Principles of the CPU Module A.3.2 Operating Modes of the CPU Module  Operating Modes There are two operating modes. They can be used to control a user program and all tasks. STOP mode: A program is not executed under this mode. Users can download a module table, initialize CPU configuration and other setting, download a program, check a program, and force a bit ON/OFF. RUN mode: A program is executed under this mode. Users can not download a module table, and initialize CPU configuration and other setting.  Statuses and Operation under Different Operating Mode The STOP mode and the RUN mode are modes for a CPU module.

The statuses and operation under these modes are listed below.  Basic operation A3_  Relation between the operating modes and the tasks  Relation between the change of the modes and the program memory A-9 CPU mode Program I/O refreshing External output Program memory Non-latche d Latched area area STOP The execution of the program stops. The I/O refreshing is executed. OFF (If users set the I/O module so that the final state of the external output on the I/O module is retained, the final state of the external output on the I/O module will be retained.) The data in the program memories are retained. RUN The program is executed. The I/O refreshing is executed.

The external output is controlled by the program. The program memories are controlled by the program. Mode Loop task Interrupt task STOP The execution of the loop task stops. The execution of the interrupt task stops. RUN  The tasks which have not been executed are in the halt state.  If a task is active, or the instruction TKON is executed, the task is executed.  If a task is not active, or the instruction TKOFF is executed, the task is not executed. If the condition of the interrupt is met, the task is executed. Change of the mode Non-latched area Latched area STOP→RUN Whether the data is cleared or retained depends on user’s setting. The data is retained. RUN→STOP The data is retained.

The data is retained.