Added M156

WIP WATCHDOG
WIP Tool movememt
This commit is contained in:
Lucio Maranta
2020-01-23 10:46:59 +00:00
parent 99ff25c071
commit 33ec5dbb3b
8 changed files with 447 additions and 172 deletions
+35
View File
@@ -318,6 +318,13 @@ namespace CMS_CORE_Library.Models
public Dictionary<byte, string> Buttons;
}
public class M156InputIsNeededModel
{
public uint Process;
public int Id;
public double Value;
}
public struct M154DataModel
{
public uint Process;
@@ -438,6 +445,34 @@ namespace CMS_CORE_Library.Models
public ASSISTED_TOOLING_ACTION Action { get; set; }
}
public class ToolMovementModel
{
public ushort NewMagazineId { get; set; }
public ushort NewPositionId { get; set; }
public ushort OldMagazineId { get; set; }
public ushort OldPositionId { get; set; }
public MOVEMENT_TYPE Action { get; set; }
}
public enum MOVEMENT_TYPE
{
NONE = 0,
TRANSFER = 1,
TRANSFER_WITHOUT_ORIG = 2,
SWITCH = 3
}
public enum MOVEMENT_RESPONSE
{
NONE = 0,
OK = 1,
TOOL_NOT_FOUND = 2,
MAGAZINE_NOT_FOUND = 3,
POSITION_NOT_FOUND = 4,
POSITION_OCCUPIED = 5,
POSITION_INCOMPATIBLE = 6
}
public enum ORIGIN
{
NONE = 0,