Sends three messages to a LocoIO device writting configuration data.
Namespace: RRAutoLib.LoconetAssembly: RRAutoLib (in RRAutoLib.dll) Version: 1.4.4504.18867
Syntax
| C# |
|---|
public static void WriteConfig( LoconetService objLoconetService, byte bytLocoIOAdr, byte bytLocoIOSubAdr, PkLocoIO..::..PortConfig objPortConfig ) |
| Visual Basic |
|---|
Public Shared Sub WriteConfig ( _ objLoconetService As LoconetService, _ bytLocoIOAdr As Byte, _ bytLocoIOSubAdr As Byte, _ objPortConfig As PkLocoIO..::..PortConfig _ ) |
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.
- objPortConfig
- Type: RRAutoLib.Loconet..::..PkLocoIO..::..PortConfig
A PkLocoIO..::..PortConfig instance containing configuration data.
Remarks
The LocoIO device being written will respond with a PkPeerXfer packet as a write confirmation.