Api.ReadLogData method

The method is defined in remote interface and is used to read logged data from runtime machine.

Namespace: IntervalZero.KINGSTAR.OpcUa.Api

Assembly: IntervalZero.KINGSTAR.OpcUa.Api (in IntervalZero.KINGSTAR.OpcUa.Client.dll) Version: 4.4.0.0

Syntax

C#VB
public KsReturn<LogData> ReadLogData(
       int ChannelCount,
       int StartIndex,
       int EndIndex
)
Public Function ReadLogData(
       ByVal ChannelCount As Integer,
       ByVal StartIndex As Integer,
       ByVal EndIndex As Integer
) As KsReturn(Of Integer)

Parameters

ChannelCount

Type: int

Number of channels to read.

 

StartIndex

Type: int

Index of the first data to collect.

 

EndIndex

Type: int

Index of the last data to collect.

 

Return value

Type: KsReturn<LogData>

Returns Type: KsError and an unsigned short integer value.

Remarks

The ReadLogData can only read at most 50000 points in one call, so EndIndex – StartIndex <= 49999. If your logged data is greater than the limitation, you need to use the method several times to retrieve the data.

Usable EtherCAT states

ecatOffline, ecatInit, ecatBoot, ecatPreOP, ecatSafeOP, ecatOP

Examples

C#
N/A

See also

Api Class

IntervalZero.KINGSTAR.OpcUa.Api Namespace