Reads the unit of the given parameter idn
Namespace: EAL.Interfaces.ParameterAssembly: EAL (in EAL.dll) Version: 1.1.5.0 (1.1.5.0)
Syntax
C# |
---|
string ReadUnit( string idn ) |
Visual Basic |
---|
Function ReadUnit ( idn As String ) As String |
Visual C++ |
---|
String^ ReadUnit( String^ idn ) |
Parameters
- idn
- Type: System..::..String
Parameter idn to read unit
Return Value
Type: StringUnit of the given parameter idn
Examples
Synchronous method
Asynchronous method
Copy | |
---|---|
private static void Sample() { using (IEALConnection ealConnection = new EALConnection()) // Creates axis object with synchronous execution method. { // Connects to the real drive ealConnection.Connect("192.168.0.10");; // Reads the unit of the S-0-0036 parameter. Read method is always synchronous string unit = axis.Parameter.ReadUnit("S-0-0036"); // Display unit value Console.WriteLine("Unit of S-0-0036 parameter is {0}", unit); } } |
Copy | |
---|---|
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 the unit of the S-0-0036 parameter. Read method is always synchronous string unit = axis.Parameter.ReadUnit("S-0-0036"); // Display unit value Console.WriteLine("Unit of S-0-0036 parameter is {0}", unit); } } |