Can I configure the execution of an application (the executed cycles)?
You are able to configure most of the states in which the current application is being executed by the →runtime system.
Advanced user The configuration and the following instruction is aimed at advanced users! |
Graphical survey:
Explanation on the states (meanings: = yes; = no):
State |
Meaning for application |
Configurable? |
Activated by default? |
---|---|---|---|
Init state |
The application is executed in the initial state. The state can be deactivated/activated by means of a configuration file for the runtime system. |
|
|
Run state |
The application is executed within the normal operation. You cannot deactivate the execution of the run state. |
|
|
Shutdown state |
Stopping the application is being prepared. The state can be deactivated/activated by means of a configuration file for the runtime system. Moreover, the execution period of the state may be defined by means of a configuration file for the runtime system. |
|
|
Term state |
The application is within the last cycle before the application passes into the stop state. The state can be deactivated/activated by means of a configuration file for the runtime system. |
|
|
Stop state |
The application is not executed. You cannot deactivate the execution of the stop state. The execution has been stopped. The runtime system license has expired (if you are operating the runtime system as demo version). |
|
|
How to configure these states:
-
If the runtime system is running, terminate the runtime system. If you are using the built-in PLC, stop it.
-
Open a command prompt on the target system or PC where the runtime system or Neuron Power Engineer (if the built-in PLC is used) has been installed.
Change to sub-directoryPLC
of the runtime system installation directory.
If you are using the built-in PLC, go to the Windows folder where you installed Neuron Power Engineer. Then go to this sub-folder:plugins\com.logicals.ptk.win32.win_x.y.z\rts
(x.y.z is a placeholder for the respective version number of Neuron Power Engineer.) -
Open file
RTSIO.cfg
in any text editor, search for the lineFlags
and change the entered value to one of the following values.
These values are applied for →tasks with a cycle time ≠0
(= for a periodic execution).Value
Activated states
Note
0
run state + stop state
Run state and stop state are always activated – no matter which value is entered in the line.
1
init state + run state + stop state
2
run state + term state + stop state
3
init state + run state + term state + stop state
Line
Flags 3
is entered in the default configuration.
Therefore, all states but the shutdown state are activated.8
run state + shutdown state + stop state
9
init state + run state + shutdown state + stop state
10
run state + shutdown state + term state + stop state
11
init state + run state + shutdown state + term state + stop state
-
Save the changed file
RTSIO.cfg
. -
If you want to define the execution period of the shutdown state, perform the following steps, too:
-
Open file
RTS.cfg
in any text editor, search for the following lines and change the entered value (the values are interpreted as milliseconds).Line
Meaning
Example
AddSymbol Shutdown.Timeout
period for execution of the shutdown state
Neuron recommends a period of 3 seconds at most (= value3000
or less).
If you specify a longer period, Neuron Power Engineer might report a timeout when loading/stopping the application.AddSymbol Shutdown.Timeout 3000
AddSymbol Shutdown.CheckDelay
check interval for sequence of
Shutdown.Timeout
AddSymbol Shutdown.CheckDelay 500
TriggeredTasks.HaveInitCycle
only possible for Windows and platform
LinuxX86
: activate or deactivate the init state for →tasks with a cycle time0
(= for a triggered execution)
In case of value0
( = default behavior), the init state is deactivated for these tasks. In case of other values, the init state is activated.TriggeredTasks.HaveInitCycle 1
-
Save the changed file
RTS.cfg
.
-
-
Restart the runtime system on the Windows PC. If you are using the built-in PLC, start it.
Consider the possible effect, if you have deactivated the init state, shutdown state and/or term state: Concerning the RTSCycleInfo block, its outputs evaluating the status of the appropriate state will always return value FALSE
(or an equivalent).