Fix
This commit is contained in:
@@ -307,6 +307,7 @@ namespace CMS_CORE_Library
|
||||
{
|
||||
public bool LoadNextProgram;
|
||||
public QUEUE_STATUS Status;
|
||||
public bool StartStopQueueEnabled;
|
||||
}
|
||||
|
||||
public enum QUEUE_STATUS
|
||||
|
||||
@@ -1804,23 +1804,30 @@ namespace CMS_CORE.Demo
|
||||
if (cmsError.IsError())
|
||||
return cmsError;
|
||||
|
||||
// Read tool manager status
|
||||
// Read next cmd
|
||||
byte next = 0;
|
||||
cmsError = MEM_RWByte(R, 0, QUEUE_NEXT.MemType, QUEUE_NEXT.Address, 0, ref next);
|
||||
if (cmsError.IsError())
|
||||
return cmsError;
|
||||
|
||||
// Read start & stop
|
||||
byte startStopActive = 0;
|
||||
cmsError = MEM_RWByte(R, 0, QUEUE_NEXT.MemType, QUEUE_NEXT.Address, 0, ref startStopActive);
|
||||
if (cmsError.IsError())
|
||||
return cmsError;
|
||||
|
||||
status = new QueueStatusModel()
|
||||
{
|
||||
LoadNextProgram = next == 1,
|
||||
Status = (QUEUE_STATUS)readStatus
|
||||
Status = (QUEUE_STATUS)readStatus,
|
||||
StartStopQueueEnabled = startStopActive == 1
|
||||
};
|
||||
|
||||
if(next == 1)
|
||||
|
||||
if (next == 1)
|
||||
{
|
||||
// Read tool manager status
|
||||
next = 0;
|
||||
cmsError = MEM_RWByte(W, 0, QUEUE_NEXT.MemType, QUEUE_NEXT.Address, 0, ref next);
|
||||
byte val = 0;
|
||||
cmsError = MEM_RWByte(W, 0, QUEUE_NEXT.MemType, QUEUE_NEXT.Address, 0, ref val);
|
||||
if (cmsError.IsError())
|
||||
return cmsError;
|
||||
}
|
||||
@@ -1852,6 +1859,16 @@ namespace CMS_CORE.Demo
|
||||
return MEM_RWByte(W, 0, QUEUE_CMD.MemType, QUEUE_CMD.Address, 0, ref startValue);
|
||||
}
|
||||
|
||||
public override CmsError FILES_WLoadNextPartProgram(string localPath, string ncFileName)
|
||||
{
|
||||
// Check if the NC Demo is Connected
|
||||
CmsError cmsError = CheckConnection();
|
||||
if (cmsError.IsError())
|
||||
return cmsError;
|
||||
|
||||
return NO_ERROR;
|
||||
}
|
||||
|
||||
#endregion File Management
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -1720,11 +1720,16 @@ namespace CMS_CORE.Fanuc
|
||||
return NO_ERROR;
|
||||
}
|
||||
|
||||
public override CmsError FILES_WLoadNextPartProgram(string localPath, string ncFileName)
|
||||
{
|
||||
return NO_ERROR;
|
||||
}
|
||||
|
||||
#endregion File Management
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#region Tools Management
|
||||
#region Tools Management
|
||||
|
||||
public override CmsError TOOLS_RConfiguration(ref ToolTableConfiguration config)
|
||||
{
|
||||
|
||||
@@ -1355,6 +1355,9 @@ namespace CMS_CORE
|
||||
public abstract CmsError FILES_WStartQueue();
|
||||
|
||||
public abstract CmsError FILES_WStopQueue();
|
||||
|
||||
public abstract CmsError FILES_WLoadNextPartProgram(string localPath, string ncFileName);
|
||||
|
||||
|
||||
#endregion File Management (To override)
|
||||
|
||||
|
||||
@@ -2321,6 +2321,11 @@ namespace CMS_CORE.Osai
|
||||
return NO_ERROR;
|
||||
}
|
||||
|
||||
public override CmsError FILES_WLoadNextPartProgram(string localPath, string ncFileName)
|
||||
{
|
||||
return NO_ERROR;
|
||||
}
|
||||
|
||||
#endregion File Management
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -2141,6 +2141,12 @@ namespace CMS_CORE.Siemens
|
||||
return NO_ERROR;
|
||||
}
|
||||
|
||||
public override CmsError FILES_WLoadNextPartProgram(string localPath, string ncFileName)
|
||||
{
|
||||
return NO_ERROR;
|
||||
}
|
||||
|
||||
|
||||
private IEnumerable<string> GetLinesFromString(string text)
|
||||
{
|
||||
string line;
|
||||
|
||||
Reference in New Issue
Block a user