Operation
10/10 MN05003003Z-EN
44
Starting/stopping the program via external switch
An external switch connected to an input can be used to start or
stop the processing of the program. Some additional program
instructions are required, which are shown in the example in the
Appendix (
page 94). The SysLibPlcCtrl.lib library contains the
function SysStartPlcProgram required for the start, and the
function SysStopPlcProgram required for the stop.
In this case, the startup behaviour of the controller must be set to
WARM START in the PLC Configurator under <Other Parameters
l
Settings>!
It is then still possible to switch the controller to START or STOP via
the PC in Online mode.
Program processing and system time
The user program is processed cyclically. The states of the inputs
are read before the start of each program cycle, and the output
states are written to the physical outputs at the end of the cycle.
The cycle time depends on the length and the structure of the user
program. In order to ensure a fast response to events, program
routines can be programmed that are started when a system event
occurs. See
section “System events” on page 49.
Cycle time monitoring
The cycle time of the user program is monitored. The controller
switches to STOP status and the outputs are switched off if the
cycle time exceeds the set time.
You should set the maximum permissible time in Other Parameters
in the PLC configurator: between 20 ms (default value) and
1000 ms.
Reset
You can carry out a reset via the PC in online mode or via the
controller menu. To do this, select the appropriate menu item in
the PLC configurator or in the controller menu.
The following Reset commands are provided in the menu:
Warm reset
• The program is stopped.
• The non-retentive variables are initialised, the “Retain”
variables are retained.
• The program can be restarted.
Cold reset
• The program is stopped.
• All variables are initialised.
• The program can be restarted.
Hard Reset
• The program in the working memory and the boot project in the
system memory of the controller are deleted.
• With the memory card fitted:
– All the project files on the memory card, the operating system
and the boot project are deleted.
– All user specific files and the startup.ini file remain
unchanged
• The PLC is set into the NOT READY state.
Restoring factory settings (factory set)
The browser command “factoryset” or choosing
<SYSTEM
l
FACTORY SET> can start a Hard reset command
(
section “Hard Reset”). The startup.ini file on the memory card
and the system parameters in the controller are also deleted.
After a start the controller resumes operation with the STARTUP
data. The interfaces are initialised with their default values.
Configurator (Online menu) PLC menu
Warm reset
Warm reset
Cold reset
Cold reset
Hard reset
DELETE-> HARD RESET
Содержание easyControl EC4-200
Страница 4: ...II...
Страница 10: ...10 10 MN05003003Z EN 6...
Страница 14: ...10 10 MN05003003Z EN 10...
Страница 22: ...10 10 MN05003003Z EN 18...
Страница 38: ...10 10 MN05003003Z EN 34...
Страница 62: ...10 10 MN05003003Z EN 58...
Страница 78: ...10 10 MN05003003Z EN 74...
Страница 96: ...10 10 MN05003003Z EN 92...