Infosys在阅读器中打开 / AI 翻译

TC170x | TwinCAT 3 Usermode Runtime · 0 次阅读

Method ITcRTimeSimulation:GetTickMode

Query the mode of the Usermode Runtime.

Syntax

virtual HRESULT TCOMAPI GetTickMode(ULONG& rtTickMode) = 0; 

Parameter

Name

Type

Description

rtTickMode

ULONG&

Query the advanced mode of the Usermode Runtime

RtMode_None := 0
RtMode_Normal := 1
RtMode_FastAsPossible := 2
RtMode_Externaltick := 3
RtMode_Cyclic := 4
RtMode_Invalid := -1

Method ITcRTimeSimulation:GetTickMode 1: Return value

If successful, S_OK ("0") or another positive value will be returned, cf. Return values. Extended messages refer in particular to the column HRESULT in ADS Return Codes.