GET_TICKS_FROM_TIME block

Short summary

Name

GET_TICKS_FROM_TIME

→POU type

→function

Category

IEC-block, UtilEnh functions, block with internal error diagnostic

→Namespace

logicals.standard.util.schedule

Graphical interface

images/download/thumbnails/414782996/GET_TICKS_FROM_TIME-version-1-modificationdate-1535107731794-api-v2.png

Available since

  • version 2.0.5 (for library Standard) – initial variant: in the global namespace

  • version 2.0.7 (for library Standard) – declaration within a separate namespace

Functionality

This block converts time to system timer ticks.

Inputs, return value


Identifier

→Data type

Description

Inputs:

T

TIME

time

Return value:

ULINT

system timer ticks

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

The block checks the value connected to the inpu t before it is executed.
If the value is negative, the output ENO of the block is set to value FALSE (or an equivalent) and 0 is returned.

Example for usage within ST-editor

See "SET_EP_TICKS block".

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.