Fix Siemens lang

Added start&stop queue
This commit is contained in:
Lucio Maranta
2018-09-12 07:12:27 +00:00
parent 63936daaeb
commit 7a8ded5118
5 changed files with 61 additions and 5 deletions
+24
View File
@@ -1828,6 +1828,30 @@ namespace CMS_CORE.Demo
return NO_ERROR;
}
public override CmsError FILES_WStartQueue()
{
// Check if the NC Demo is Connected
CmsError cmsError = CheckConnection();
if (cmsError.IsError())
return cmsError;
// Write start
byte startValue = 1;
return MEM_RWByte(W, 0, QUEUE_CMD.MemType, QUEUE_CMD.Address, 0, ref startValue);
}
public override CmsError FILES_WStopQueue()
{
// Check if the NC Demo is Connected
CmsError cmsError = CheckConnection();
if (cmsError.IsError())
return cmsError;
// Write stop
byte startValue = 2;
return MEM_RWByte(W, 0, QUEUE_CMD.MemType, QUEUE_CMD.Address, 0, ref startValue);
}
#endregion File Management
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////