Click or drag to resize

PkLocoIOWriteStates Method

Sends a messages to a LocoIO device writting state data.

Namespace:  RRAutoLib.Loconet
Assembly:  RRAutoLib (in RRAutoLib.dll) Version: 4.0.8678.28884
Syntax
Public Shared Sub WriteStates ( 
	objLoconetService As LoconetService,
	bytLocoIOAdr As Byte,
	blnaMultiMask As Boolean(),
	blnaMultiState As Boolean()
)

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.
blnaMultiMask
Type: SystemBoolean
A Boolean 16 element array containing a mask indicating which of the 16 states should be written.
blnaMultiState
Type: SystemBoolean
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