Cpu.CompareRuntimeVersionTo Method

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Cpu.CompareRuntimeVersionTo Method

BR.AN.PviServices .NET


Call this method to see if the given version is

[Visual Basic]

Public Sub CompareRuntimeVersionTo( _

  ByVal vCompare As String _

)

[C#]

public int CompareRuntimeVersionTo(

  string vCompare

);

Parameters

vCompare

The version string without major and minor notation. Has always to have the format cxxxx (e.g.: V2120 or A2031)

Return Value

-2 if the runtime version is not given. (e.g.: the CPU object is not connected) 0 The runtime version of the PLC is same as the given Version string. -1 The runtime version of the PLC is older as the given Version string. 1 The runtime version of the PLC is newer as the given Version string.

Remarks

The version to be compared to.

See Also

Cpu Class | BR.AN.PviServices Namespace


Generated from assembly BR.AN.PviServices [8.1.0.4]