RTSCycleInfo block

Short summary

Name

RTSCycleInfo

→POU type

→function

Category

more system blocks, blocks for target-system diagnostics

Graphical interface

images/download/thumbnails/414780299/RTSCycleInfo-version-1-modificationdate-1534499055690-api-v2.png

Available since

Functionality

The block returns information about the execution process of the application that is being executed on the runtime system. The following questions are answered: Is it running? Has it just been started (is it being initialized) or is it being stopped?

If the output returns value TRUE (or an equivalent), the application is run within the corresponding state – see column "Description" in the table under "Outputs".

Use the block within your application and you are able to react in time to the changed states of the application being executed. Reasons for changed states might be actions in
logi.CAD 3 that have been triggered by the user (Starting the execution on PLC - cold restart or warm restart or Stopping the execution on PLC) but an expired runtime system license as well (if you are operating the runtime system as demo version).

Outputs


Identifier

→Data type

Description

Outputs:

Init

BOOL

The application is executed in the initial state. The state can be deactivated/activated by means of a configuration file for the runtime system.
If the initial cycle is activated (this is the default), it is executed as a single cycle after the execution has been started. After this initial state, the application passes into the run state. A period between initial and run state is not defined and cannot be defined by the user.

If you want to configure the state, see this FAQ article: Can I configure the execution of an application (the executed cycles)?


Run

BOOL

The application is executed within the normal operation. You cannot deactivate the execution of the run state.
The run state is applied after the initial state (several cycles are possible in the run state), until the execution is stopped or the runtime system license expires (if you are operating the runtime system as a demo version) .


Shutdown

BOOL

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.
By default, the shutdown state is deactivated. If the shutdown cycle is activated, it is executed after the execution has been stopped (several cycles are possible in the shutdown state). The default configuration specifies a period of 3 seconds for the execution of the shutdown state.

If you want to configure the state, see this FAQ article: Can I configure the execution of an application (the executed cycles)?


Term

BOOL

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.
If the term state is activated (this is the default), it is executed as a single cycle before the code execution is finally stopped. A period between the previous state and the term state is not defined and cannot be defined by the user.

If you want to configure the state, see this FAQ article: Can I configure the execution of an application (the executed cycles)?

Input EN and output ENO are available when →calling the block. See "Execution control: EN, ENO" for information on input EN and output ENO.

See:

Example for usage within ST-editor

At present, there is no example.

When creating your application within the ST-editor, enter a call of a block by typing the text as requested by the syntax or use Content Assist.