inserita variabile ToolId... pubblico update poi inizio refactor codice...
This commit is contained in:
@@ -205,7 +205,7 @@ namespace MTC_Adapter
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
// primo è metri, secondo km (moltiplico x 1000)
|
||||
movTotAssi[i] = ncDevice.PLC_MemoryAreaEOK[9 + 2*i]*1000 + ncDevice.PLC_MemoryAreaEOK[8 + 2*i];
|
||||
movTotAssi[i] = ncDevice.PLC_MemoryAreaEOK[9 + 2 * i] * 1000 + ncDevice.PLC_MemoryAreaEOK[8 + 2 * i];
|
||||
|
||||
// controllo valore riferimento...
|
||||
if (movTotAssi[i] > contKmMovAssi[i])
|
||||
@@ -237,7 +237,7 @@ namespace MTC_Adapter
|
||||
needSave = true;
|
||||
}
|
||||
// ...aggiorno valore riferimento...
|
||||
contKmMovAssi[i] = movTotAssi[i];
|
||||
contKmMovAssi[i] = movTotAssi[i];
|
||||
}
|
||||
|
||||
return needSave;
|
||||
@@ -406,6 +406,13 @@ namespace MTC_Adapter
|
||||
public override void getUnOp()
|
||||
{
|
||||
base.getUnOp();
|
||||
|
||||
int numUnOp = 1;
|
||||
// cicl su path
|
||||
for (int i = 0; i < numUnOp; i++)
|
||||
{
|
||||
vettUnOp[i].mUnOpToolId.Value = (int)ncDevice.PLC_MemoryAreaEOK[31];
|
||||
}
|
||||
}
|
||||
|
||||
public override void getPath()
|
||||
|
||||
@@ -201,7 +201,7 @@ namespace SCMCncLib
|
||||
WriteNumber = 265;
|
||||
VAreaByteSize = 32;
|
||||
ETKAreaByteSize = 8;
|
||||
EOKAreaByteSize = 14;
|
||||
EOKAreaByteSize = 32; // era 14aggiunto sino a 31 x avere 91...
|
||||
AlarmByteSize = 32;
|
||||
#if false
|
||||
// store read and write number of bytes
|
||||
|
||||
Reference in New Issue
Block a user