Sends a message to a LocoIO device writting setup data.
Namespace: RRAutoLib.LoconetAssembly: RRAutoLib (in RRAutoLib.dll) Version: 1.4.4504.18867
Syntax
| C# |
|---|
public static void WriteSetup( LoconetService objLoconetService, byte bytLocoIOAdr, byte bytLocoIOSubAdr, PkLocoIO..::..Setup objSetup ) |
| Visual Basic |
|---|
Public Shared Sub WriteSetup ( _ objLoconetService As LoconetService, _ bytLocoIOAdr As Byte, _ bytLocoIOSubAdr As Byte, _ objSetup As PkLocoIO..::..Setup _ ) |
Parameters
- objLoconetService
- Type: RRAutoLib.Loconet..::..LoconetService
A LoconetService instance that will service the command.
- bytLocoIOAdr
- Type: System..::..Byte
LocoIO address to be assigned. Valid values are 1-79 and 81-127 with a default of 81. 80 is reserved for the PC.
- bytLocoIOSubAdr
- Type: System..::..Byte
LocoIO sub-address to be assigned. Valid values are 1-126 with a default of 1.
- objSetup
- Type: RRAutoLib.Loconet..::..PkLocoIO..::..Setup
A PkLocoIO..::..Setup instance containing setup data.
Remarks
The LocoIO device being written will respond with a PkPeerXfer packet as a write confirmation.