Api.WriteIOSdoObject method
Writes the value of an SDO object into an I/O module.
Namespace: IntervalZero.KINGSTAR.Local.Api
Assembly: IntervalZero.KINGSTAR.Local.Api (in IntervalZero.KINGSTAR.Local.dll) Version: 4.4.0.0
Syntax
public KsCommandStatus WriteIOSdoObject(
int Index,
int ObIndex,
int ObSubIndex,
bool CompleteAccess,
byte[] Value
)
Public Function WriteIOSdoObject(
Index As Integer,
ObIndex As Integer,
ObSubIndex As Integer,
CompleteAccess As Boolean,
Value As Byte()
) As KsCommandStatus
Parameters
Index
Type: int
The index of an I/O module. Indexes are zero based. Aliases affect this parameter.
ObIndex
Type: int
The index of the object. See your device manual to get the value.
ObSubIndex
Type: int
The subindex of the object. See your device manual to get the value.
CompleteAccess
Type: bool
TRUE: Writes all subindexes. FALSE: Writes a single subindex.
Value
Type: byte[]
Pointer to the buffer containing the data to be written to the object.
Return value
Type: KsCommandStatus
Returns the KsCommandStatus class.
Usable EtherCAT states
ecatOP
Examples
N/A
See also