Click or drag to resize

PkLocoIOWriteConfig Method

Sends three messages to a LocoIO device writting configuration data.

Namespace:  RRAutoLib.Loconet
Assembly:  RRAutoLib (in RRAutoLib.dll) Version: 4.0.8678.28884
Syntax
Public Shared Sub WriteConfig ( 
	objLoconetService As LoconetService,
	bytLocoIOAdr As Byte,
	bytLocoIOSubAdr As Byte,
	objPortConfig As PkLocoIOPortConfig
)

Parameters

objLoconetService
Type: RRAutoLib.LoconetLoconetService
A LoconetService instance that will service the command.
bytLocoIOAdr
Type: SystemByte
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: SystemByte
LocoIO sub-address to be assigned. Valid values are 1-126 with a default of 1.
objPortConfig
Type: RRAutoLib.LoconetPkLocoIOPortConfig
A PkLocoIOPortConfig instance containing configuration data.
Remarks
The LocoIO device being written will respond with a PkPeerXfer packet as a write confirmation.
See Also