Initial commit
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
namespace Sick.SafetyScanners.DataStructures;
|
||||
|
||||
/// <summary>
|
||||
/// Device status enumeration for SICK Safety Scanner
|
||||
/// </summary>
|
||||
public enum SopasDeviceStatus : byte
|
||||
{
|
||||
/// <summary>
|
||||
/// Unknown status
|
||||
/// </summary>
|
||||
Unknown = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Start up status
|
||||
/// </summary>
|
||||
StartUp = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Service mode
|
||||
/// </summary>
|
||||
ServiceMode = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Normal operation
|
||||
/// </summary>
|
||||
NormalOperation = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Suspended operation
|
||||
/// </summary>
|
||||
SuspendedOperation = 4,
|
||||
|
||||
/// <summary>
|
||||
/// Service recommended
|
||||
/// </summary>
|
||||
ServiceRecommended = 5,
|
||||
|
||||
/// <summary>
|
||||
/// Service required
|
||||
/// </summary>
|
||||
ServiceRequired = 6,
|
||||
|
||||
/// <summary>
|
||||
/// Recoverable error
|
||||
/// </summary>
|
||||
RecoverableError = 7,
|
||||
|
||||
/// <summary>
|
||||
/// Fatal error
|
||||
/// </summary>
|
||||
FatalError = 8
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Contains the device status from a COLA2 variable command response
|
||||
/// </summary>
|
||||
public sealed class DeviceStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the device status value
|
||||
/// </summary>
|
||||
public SopasDeviceStatus Status { get; init; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user