Sends a messages to a LocoIO device writting state data.

Namespace: RRAutoLib.Loconet
Assembly: RRAutoLib (in RRAutoLib.dll) Version: 1.4.4504.18867

Syntax

C#
public static void WriteStates(
	LoconetService objLoconetService,
	byte bytLocoIOAdr,
	bool[] blnaMultiMask,
	bool[] blnaMultiState
)
Visual Basic
Public Shared Sub WriteStates ( _
	objLoconetService As LoconetService, _
	bytLocoIOAdr As Byte, _
	blnaMultiMask As Boolean(), _
	blnaMultiState As Boolean() _
)

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.
blnaMultiMask
Type: array<System..::..Boolean>[]()[][]
A Boolean 16 element array containing a mask indicating which of the 16 states should be written.
blnaMultiState
Type: array<System..::..Boolean>[]()[][]
A Boolean 16 element array containing the state values to be written. Values masked out will be ignored.

Remarks

The LocoIO device being written will respond with a PkPeerXfer packet as a write confirmation.

See Also