Reads the List lenght details of the given parameter idn.

Namespace: EAL.Interfaces.Parameter
Assembly: EAL (in EAL.dll) Version: 1.1.5.0 (1.1.5.0)

Syntax

C#
ParameterListLength ReadListLength(
	string idn,
	Object address,
	Object set,
	Object block,
	Object si,
	Object se
)
Visual Basic
Function ReadListLength ( 
	idn As String,
	address As Object,
	set As Object,
	block As Object,
	si As Object,
	se As Object
) As ParameterListLength
Visual C++
ParameterListLength ReadListLength(
	String^ idn, 
	Object^ address, 
	Object^ set, 
	Object^ block, 
	Object^ si, 
	Object^ se
)

Parameters

idn
Type: System..::..String
String representation of a SERCOS parameter IDN. For example "S-0-0051", "S-0-1050.0.1", "C-0-0484", or "S".
address
Type: System..::..Object
Optional argument for the address instance. Necessary if the address information is not part of the IDN string.
set
Type: System..::..Object
Optional argument for the set information. Necessary if the set information is not part of the IDN string.
block
Type: System..::..Object
Optional argument for the block instance. Necessary if the block information is not part of the IDN string.
si
Type: System..::..Object
Optional argument for the si instance. Necessary if the si information is not part of the IDN string.
se
Type: System..::..Object
Optional argument for the se instance. Necessary if the se information is not part of the IDN string.

Return Value

Type: ParameterListLength
Parameter list length

Examples

Synchronous method
 Copy imageCopy
private static void Sample()
{
    using (IEALConnection ealConnection = new EALConnection())    // Creates axis object with synchronous execution method
    {
        // Connect to the real drive task will be added to the queue
        ealConnection.Connect("192.168.0.10");;
        // Waits untill all task in the queue gets executed
        ealConnection.WaitUntilQueueComplete();
        // Reads parameter list length. Read method is always synchronous.
        ParameterListLength parameterListLength = axis.Parameter.ReadListLength("P", 0, 0, 1206, 0, 0);
        // Displays parameter list lengths properties
        Console.WriteLine("Element size by bytes = {0}\nNumber of actual elements = {1}\nNumber of maximum elements = {2}",
            parameterListLength.elementSizeBytes, parameterListLength.numActualElements, parameterListLength.numMaximumElements);
    }
}
Asynchronous method
 Copy imageCopy
private static void Sample()
{
    using (IEALConnection ealConnection = new EALConnection())    // Creates axis object with asynchronous execution method
    {
        // Connects to the real drive
        ealConnection.Connect("192.168.0.10");;
        // Reads parameter list length. Read method is always synchronous.
        ParameterListLength parameterListLength = axis.Parameter.ReadListLength("P", 0, 0, 1206, 0, 0);
        // Displays parameter list lengths properties
        Console.WriteLine("Element size by bytes = {0}\nNumber of actual elements = {1}\nNumber of maximum elements = {2}",
            parameterListLength.elementSizeBytes, parameterListLength.numActualElements, parameterListLength.numMaximumElements);
    }
}

See Also