Writes the given data to given parameter idn.
Namespace: EAL.Interfaces.ParameterAssembly: EAL (in EAL.dll) Version: 1.1.5.0 (1.1.5.0)
Syntax
C# |
---|
void WriteData(
Object data,
string idn,
Object address,
Object set,
Object block,
Object si,
Object se
) |
Visual Basic |
---|
Sub WriteData (
data As Object,
idn As String,
address As Object,
set As Object,
block As Object,
si As Object,
se As Object
) |
Visual C++ |
---|
void WriteData(
Object^ data,
String^ idn,
Object^ address,
Object^ set,
Object^ block,
Object^ si,
Object^ se
) |
Parameters
- data
- Type: System..::..Object
Data to write
- 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.
Examples
Synchronous method
| Copy |
---|
private static void Sample()
{
using (IEALConnection ealConnection = new EALConnection())
{
ealConnection.Connect("192.168.0.10");;
axis.Parameter.WriteData(200, "S", 0, 0, 36, 0, 0);
}
} |
Asynchronous method
| Copy |
---|
private static void Sample()
{
using (IEALConnection ealConnection = new EALConnection(true))
{
ealConnection.Connect("192.168.0.10");;
axis.Parameter.WriteData(200, "S", 0, 0, 36, 0, 0);
ealConnection.WaitUntilQueueComplete();
}
} |
See Also