fix lettura area BYTE(NON VA moltiplicata x in bytecopy...)
This commit is contained in:
@@ -722,6 +722,8 @@ namespace MTC_Adapter
|
||||
|
||||
// HARD CODE: forzo path 1 (indice 0...)
|
||||
int idxPath = 0;
|
||||
// accodo dati path in DataMonitor......
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
// 2017.03.07 IN BLOCCO processo TUTTI i valori della memoria BYTE...
|
||||
if (useIotMem)
|
||||
@@ -729,8 +731,6 @@ namespace MTC_Adapter
|
||||
inizio = DateTime.Now;
|
||||
ncDevice.ReadBufferByte();
|
||||
if (utils.CRB("recTime")) TimingData.addResult(string.Format("R{0}-PLC_IOT-Byte", ncDevice.PLC_MemoryAreaIOT_Byte.Length), DateTime.Now.Subtract(inizio).Ticks);
|
||||
// accodo dati path in DataMonitor......
|
||||
StringBuilder sb = new StringBuilder();
|
||||
// uno ad uno vado a inserirli nella mappa dei dati dell'adapter...
|
||||
int numero = 0;
|
||||
string status = "";
|
||||
@@ -973,6 +973,7 @@ namespace MTC_Adapter
|
||||
break;
|
||||
}
|
||||
}
|
||||
parentForm.dataMonitor += sb.ToString();
|
||||
}
|
||||
|
||||
public override void getUnOp()
|
||||
@@ -1050,7 +1051,6 @@ namespace MTC_Adapter
|
||||
// salvo valori vettore prec...
|
||||
prevPosAxis[i] = newPos;
|
||||
prevDirAxis[i] = newDir;
|
||||
|
||||
}
|
||||
|
||||
parentForm.dataMonitor += sb.ToString();
|
||||
|
||||
@@ -319,7 +319,7 @@ namespace SCMCncLib
|
||||
// ...e copio in array a byte...
|
||||
try
|
||||
{
|
||||
Buffer.BlockCopy(PLC_MemoryAreaIOT_Byte_tmp, 0, PLC_MemoryAreaIOT_Byte, 0, IOT_ByteAreaByteSize * 4);
|
||||
Buffer.BlockCopy(PLC_MemoryAreaIOT_Byte_tmp, 0, PLC_MemoryAreaIOT_Byte, 0, IOT_ByteAreaByteSize);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
Reference in New Issue
Block a user