Represents a Loconet packet that moves a slot.
Namespace:
RRAutoLib.LoconetAssembly: RRAutoLib (in RRAutoLib.dll) Version: 1.3.3371.40749 (1.3.0.0)
Syntax
| Visual Basic (Declaration) |
|---|
<ComVisibleAttribute(False)> _ Public Class PkSlotMove _ Inherits Packet |
Remarks
One of two packet responses is expected:
- A PkRdWrSlotData, if the slot move was successful.
- A PkLongAck, if the slot move was illegal.
Examples
This example demonstrates how PkSlotMove is used to purge a slot:
CopyVB.NET
'assumes objLoconetService holds an instance of the LoconetService class 'slot being released Dim bytSlot As Byte = 5 'set slot speed to 0 objLoconetService.TxPacket(New PkSetSlotSpeed(bytSlot, 0)) 'set slot status objLoconetService.TxPacket(New PkStatus(bytSlot, SlotActivity.Idle, ConsistType.NoConsist, SpeedSteps.DCC_128_SS)) 'do a slot move to special slot 0 objLoconetService.TxPacket(New PkSlotMove(bytSlot, 0))