Represents a Loconet packet that moves a slot.
Namespace: RRAutoLib.LoconetAssembly: RRAutoLib (in RRAutoLib.dll) Version: 1.4.4420.16901
Syntax
| C# |
|---|
[SerializableAttribute] public class PkSlotMove : Packet |
| Visual Basic |
|---|
<SerializableAttribute> _ 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 has been previously initialized and started '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))