Click or drag to resize

PkDccProgramSetDcc4DigitAddress Method

Sets the four digit address of a DCC decoder.

Namespace:  RRAutoLib.Loconet
Assembly:  RRAutoLib (in RRAutoLib.dll) Version: 4.0.8678.28884
Syntax
Public Shared Function SetDcc4DigitAddress ( 
	objLoconetService As LoconetService,
	enuProgMode As DccProgMode,
	srtAddress As UShort
) As Task

Parameters

objLoconetService
Type: RRAutoLib.LoconetLoconetService
A LoconetService instance that will service the command.
enuProgMode
Type: RRAutoLib.LoconetDccProgMode
One of the DccProgMode values that specifies the programming mode.
srtAddress
Type: SystemUInt16
The four digit DCC Address

Return Value

Type: Task
Remarks
Simplifies the proceess of programming CV17 and CV18 by encoding the four digit address into two PkDccProgram packets and transmitting them. Note: This method is Shared so no instance is required.
See Also