Click or drag to resize

PkSlotMove Class

Represents a Loconet packet that moves a slot.
Inheritance Hierarchy

Namespace:  RRAutoLib.Loconet
Assembly:  RRAutoLib (in RRAutoLib.dll) Version: 4.0.8678.28884
Syntax
<SerializableAttribute>
Public Class PkSlotMove
	Inherits Packet

The PkSlotMove type exposes the following members.

Constructors
  NameDescription
Public methodPkSlotMove
Initializes a new instance of the PkSlotMove class
Public methodPkSlotMove(Byte, Byte)
Initializes a new instance of the PkSlotMove class
Protected methodPkSlotMove(SerializationInfo, StreamingContext)
Used to inherit custom serialization from Packet because constructors are not inherited.
Top
Properties
  NameDescription
Public propertyBytes
Gets the bytes that makes up a Loconet packet message.
(Inherited from Packet.)
Public propertyDescription
User friendly description of the packet.
(Overrides PacketDescription.)
Public propertyDestSlot
Gets or sets the destination slot to move to.
Public propertyID
Gets the unique identifier of the packet.
(Inherited from Packet.)
Public propertyIsEchoe
Gets value indicating if the packet is an echoe.
(Inherited from Packet.)
Public propertyNeedsPacketResponse
Gets value indicating if this packet expects a response packet.
(Inherited from Packet.)
Public propertyOpCode
Gets the Loconet operation code associated with the packet.
(Overrides PacketOpCode.)
Public propertyParmsDesc
User friendly description of the most significant packet parameters.
(Overrides PacketParmsDesc.)
Public propertyPostTxWait
Gets or sets the time in milliseconds to wait after sending this packet before performing the next step.
(Inherited from Packet.)
Public propertyRxPacket
Gets the received response packet post transmit.
(Inherited from Packet.)
Public propertySourceSlot
Gets or sets the source slot to move from.
Public propertyTag
Gets or sets an arbitrary object that is associated with the packet.
(Inherited from Packet.)
Public propertyTimeStamp
Gets an event time stamp of the packet's echo or arrival.
(Inherited from Packet.)
Top
Methods
  NameDescription
Public methodBytesToString
Converts the Bytes into a readable string.
(Inherited from Packet.)
Public methodCode exampleClone
Creates a copy of the packet.
(Inherited from Packet.)
Protected methodGetObjectData (Inherited from Packet.)
Public methodValidPacketResponse (Overrides PacketValidPacketResponse(Packet).)
Top
Fields
  NameDescription
Protected field_blnIsEchoe
Exposed through IsEchoe property.
(Inherited from Packet.)
Protected field_bytaBytes
Exposed through Bytes property.
(Inherited from Packet.)
Protected field_dblTimeStamp
Exposed through TimeStamp property.
(Inherited from Packet.)
Protected field_objRxPacket
Exposed through RxPacket property.
(Inherited from Packet.)
Protected field_objTag
Exposed through Tag property.
(Inherited from Packet.)
Protected field_sctID
Exposed through ID property.
(Inherited from Packet.)
Protected field_srtPostTxWait
Exposed through PostTxWait property.
(Inherited from Packet.)
Top
Remarks
One of two packet responses is expected:
Examples
This example demonstrates how PkSlotMove is used to purge a slot:
VB
'assumes LoconetService (locServ) has been previously initialized and started

'slot being released
Dim slot As Byte = 5

'set slot speed to 0
locServ.TxPacket(New PkSetSlotSpeed(slot, 0))  

'set slot status
locServ.TxPacket(New PkSlotStatus(slot, SlotActivity.Idle, ConsistType.NoConsist, SpeedSteps.DCC_128_SS))

'do a slot move to special slot 0
locServ.TxPacket(New PkSlotMove(slot, 0))
See Also