WIP Scada

Fanuc fix
This commit is contained in:
Lucio Maranta
2018-12-21 13:12:56 +01:00
parent ebfbfd2d9e
commit c379ed8f22
5 changed files with 7 additions and 7 deletions
Binary file not shown.
@@ -26,7 +26,7 @@ namespace Step.Model.DatabaseModels
{
MagazineId = obj.MagazineId,
PositionId = (ushort)obj.PositionId,
Disabled = obj.Disabled ? (byte)1 : (byte)0,
// Disabled = obj.Disabled ? (byte)1 : (byte)0,
Type = obj.Type
};
}
+3 -2
View File
@@ -1562,7 +1562,7 @@ namespace Step.NC
magazineStatus = new DTOMagazineActionModel();
MagazineActionModel libModel = new MagazineActionModel();
// Read status from NC
CmsError cmsError = numericalControl.TOOLS_GetMagazinesStatus(ref libModel);
CmsError cmsError = numericalControl.TOOLS_RMagazineAction(ref libModel);
if (cmsError.IsError())
return cmsError;
@@ -2464,7 +2464,7 @@ namespace Step.NC
Value = new DTOScadaValueModel()
{
IsVisible = Convert.ToBoolean(val),
Value = Convert.ToBoolean(val)
Value = val2
}
});
}
@@ -2479,6 +2479,7 @@ namespace Step.NC
private SCADA_MEM_TYPE GetMemTypeFromString(string memType)
{
memType = memType.ToUpper();
switch (memType)
{
case "BOOL":
+1 -2
View File
@@ -17,7 +17,7 @@ namespace Step.Controllers.WebApi
[Route("list")]
public IHttpActionResult GetScadaList()
{
using (NcHandler ncHandler = new NcHandler())
using (NcHandler ncHandler = new NcHandler())
{
ncHandler.Connect();
CmsError cmsError = ncHandler.ReadScadaData(out List<DTOScadaModel> values);
@@ -35,7 +35,6 @@ namespace Step.Controllers.WebApi
}
}
[Route("production/list")]
public IHttpActionResult GetProductionPageList()
{
+2 -2
View File
@@ -5,8 +5,8 @@ export const CONFIGURATION_DEMO = "";
// stabilise quale configurazione deve leggere il client per andare in DEBUG
export const DEBUG_CONFIGURATION = CONFIGURATION_SIEMENS;
export const DEBUG_CONFIGURATION = CONFIGURATION_OSAI;
// stabilisce se leggere la configurazione dal server o
// se utilizzare la configurazione locale
export const USE_RUNTIME_CONFIGURATION = false;
export const USE_RUNTIME_CONFIGURATION = true;