SysTaskCycleCount block

Short summary

Name

SysTaskCycleCount

→POU type

→function

Category

more system blocks, blocks for target-system diagnostics, block with internal error diagnostic

Graphical interface

images/download/thumbnails/483360833/SysTaskCycleCount-version-1-modificationdate-1638197966822-api-v2.png

Available since

version 2.0.20 (for library System) and version 5.11.0 of the →runtime system
images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/warning.svg This block is supported for these →target systems or platforms:

  • platform WindowsX86 (incl. the built-in PLC under Windows)

  • platform LinuxX86

Functionality

This block returns the number of the →task cycles since the last application start.

The cycle count starts with 1 after these respective actions:

Return value


Identifier

→Data type

Description

Return value:

ULINT

number of task cycles since the last application start

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:

Internal error diagnostic for block

If the required information is not provided by the PLC, the output ENO of the block is set to value FALSE (or an equivalent).

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.