Merge branch 'release/AddTraceLogFanuc02'
This commit is contained in:
@@ -761,6 +761,7 @@ namespace IOB_UT_NEXT
|
||||
// verifico directory
|
||||
checkDir(dirPath);
|
||||
string[] lines = dictionary.OrderBy(i => i.Key).Select(kvp => kvp.Key + ":" + kvp.Value).ToArray();
|
||||
//string[] lines = dictionary.OrderBy(i => i.Key).Select(kvp => kvp.Key + ":" + kvp.Value).ToArray();
|
||||
try
|
||||
{
|
||||
File.WriteAllLines(file, lines);
|
||||
|
||||
@@ -42,10 +42,10 @@ BIT5=!X8.4
|
||||
;BIT6=X33.4
|
||||
AREAD_START=128
|
||||
AREAD_SIZE=12
|
||||
AREAG_SIZE=8
|
||||
AREAG_SIZE=48
|
||||
;AREAG_SIZE=48
|
||||
AREAR_START=15000
|
||||
AREAR_SIZE=2
|
||||
AREAR_SIZE=4
|
||||
AREAX_START=0
|
||||
AREAX_SIZE=40
|
||||
AREAY_START=0
|
||||
|
||||
@@ -94,7 +94,7 @@ namespace IOB_WIN_NEXT.Iob
|
||||
}
|
||||
|
||||
// leggo conf x ricerca valori memoria da tracciare in log di continuo...
|
||||
mem2trace = fIni.ReadString("MEMORY", "MEM_2_TRACE", "");
|
||||
mem2trace = fIni.ReadString("OPTPAR", "MEM_2_TRACE", "");
|
||||
|
||||
// è little endian (NON serve conversione)
|
||||
hasBigEndian = false;
|
||||
@@ -1337,7 +1337,7 @@ namespace IOB_WIN_NEXT.Iob
|
||||
// se è da tracciare...
|
||||
if (mem2trace.Contains($"|{bKey}|"))
|
||||
{
|
||||
lgTrace($"Valore | bKey: {bKey} | bVal: {bVal} | byte2check: {byte2check} | bitNum: {bitNum} | i: {i} | B_input: {B_input}");
|
||||
lgTrace($"Valore | bKey: {bKey} | bVal: {bVal} | byte: {byte2check} | tgt: {(1 << bitNum)} | B_input: {B_input}");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1407,7 +1407,7 @@ namespace IOB_WIN_NEXT.Iob
|
||||
mappaValori = new Dictionary<string, string>();
|
||||
for (int i = 0; i < MemBlockCurr.Length; i++)
|
||||
{
|
||||
mappaValori.Add(i.ToString("0000"), MemBlockCurr[i].ToString());
|
||||
mappaValori.Add($"[{i:0000}]", $"{MemBlockCurr[i]:B}={MemBlockCurr[i]}");
|
||||
}
|
||||
utils.WritePlain(mappaValori, nomeFileB);
|
||||
|
||||
@@ -1415,7 +1415,7 @@ namespace IOB_WIN_NEXT.Iob
|
||||
mappaValori = new Dictionary<string, string>();
|
||||
for (int i = 0; i < MemBlockCurr.Length / 2; i++)
|
||||
{
|
||||
mappaValori.Add(i.ToString("0000"), BitConverter.ToUInt16(MemBlockCurr, i * 2).ToString());
|
||||
mappaValori.Add($"[{i:0000}]", BitConverter.ToUInt16(MemBlockCurr, i * 2).ToString());
|
||||
}
|
||||
utils.WritePlain(mappaValori, nomeFileW);
|
||||
|
||||
@@ -1423,7 +1423,7 @@ namespace IOB_WIN_NEXT.Iob
|
||||
mappaValori = new Dictionary<string, string>();
|
||||
for (int i = 0; i < MemBlockCurr.Length / 4; i++)
|
||||
{
|
||||
mappaValori.Add(i.ToString("0000"), BitConverter.ToUInt32(MemBlockCurr, i * 4).ToString());
|
||||
mappaValori.Add($"[{i:0000}]", BitConverter.ToUInt32(MemBlockCurr, i * 4).ToString());
|
||||
}
|
||||
utils.WritePlain(mappaValori, nomeFileDW);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user