GETCPUACCOUNT

GETCPUACCOUNT 1:

This functionality is not available on PLC runtime system under Windows CE.

GETCPUACCOUNT 2:

The PLC task cycle ticker can be read with this function block. The PLC task cycle ticker is only incremented while the task is being executed. The numerical value is a 32 bit integer, which, independently of the CPU's internal clock rate, is output in a form converted into 100 ns ticks. The number is refreshed to a precision of 100 ns every time the PLC task is called, and can be used, for instance, for timing purposes. One unit is equivalent to 100 ns.

GETCPUACCOUNT 3: Inputs

VAR_INPUT
(*none*)
END_VAR

GETCPUACCOUNT 4: Outputs

VAR_OUTPUT
    cpuAccountDW : UDINT;
END_VAR

Name

Type

Description

cpuAccountDW

UDINT

Current value of the PLC task ticker

Requirements

Development environment

Target system type

PLC libraries to include

TwinCAT v3.1.0

PC or CX (x86, x64)

Tc2_System (System)