Merge branch 'release/AddTraceLogFanuc07'
This commit is contained in:
@@ -39,11 +39,9 @@ BIT3=Y91.3
|
||||
BIT4=R0.0
|
||||
; 8.4 --> emg armata= true, 0 = attiva mettere !8.4 (da verificare)
|
||||
BIT5=!X8.4
|
||||
;BIT6=X33.4
|
||||
AREAD_START=128
|
||||
AREAD_SIZE=12
|
||||
AREAG_SIZE=48
|
||||
;AREAG_SIZE=48
|
||||
AREAR_START=15000
|
||||
AREAR_SIZE=4
|
||||
AREAX_START=0
|
||||
|
||||
@@ -684,13 +684,12 @@ namespace IOB_WIN_NEXT.Iob
|
||||
}
|
||||
|
||||
currDispData.semIn = Semaforo.SV;
|
||||
// inizio letture, SEMPRE DA ZERO (possibile ottimizzazione...)
|
||||
int memIndex = 0;
|
||||
// ogni lettura inizia da SUA area inizio
|
||||
// controllo area R: se ha dati (> 0 byte) --> leggo!
|
||||
if (MemBlockR.Length > 0)
|
||||
{
|
||||
stopwatch.Restart();
|
||||
FanucMemRW(R, FANUC.MemType.R, memIndex, ref MemBlockR);
|
||||
FanucMemRW(R, FANUC.MemType.R, areaR.startIdx, ref MemBlockR);
|
||||
if (utils.CRB("recTime"))
|
||||
{
|
||||
TimingData.addResult(cIobConf.codIOB, string.Format("R{0}-R", MemBlockR.Length), stopwatch.ElapsedTicks);
|
||||
@@ -708,7 +707,7 @@ namespace IOB_WIN_NEXT.Iob
|
||||
if (MemBlockX.Length > 0)
|
||||
{
|
||||
stopwatch.Restart();
|
||||
FanucMemRW(R, FANUC.MemType.X, memIndex, ref MemBlockX);
|
||||
FanucMemRW(R, FANUC.MemType.X, areaX.startIdx, ref MemBlockX);
|
||||
if (utils.CRB("recTime"))
|
||||
{
|
||||
TimingData.addResult(cIobConf.codIOB, string.Format("R{0}-X", MemBlockX.Length), stopwatch.ElapsedTicks);
|
||||
@@ -726,7 +725,7 @@ namespace IOB_WIN_NEXT.Iob
|
||||
if (MemBlockY.Length > 0)
|
||||
{
|
||||
stopwatch.Restart();
|
||||
FanucMemRW(R, FANUC.MemType.Y, memIndex, ref MemBlockY);
|
||||
FanucMemRW(R, FANUC.MemType.Y, areaY.startIdx, ref MemBlockY);
|
||||
if (utils.CRB("recTime"))
|
||||
{
|
||||
TimingData.addResult(cIobConf.codIOB, string.Format("R{0}-Y", MemBlockY.Length), stopwatch.ElapsedTicks);
|
||||
@@ -1335,7 +1334,9 @@ namespace IOB_WIN_NEXT.Iob
|
||||
// se è da tracciare...
|
||||
if (mem2trace.Contains($"|{bKey}|"))
|
||||
{
|
||||
lgTrace($"Valore | bKey: {bKey} | bVal: {bVal} | byte: {byte2check} | tgt: {(1 << bitNum)} | B_input: {B_input}");
|
||||
var bMapAct = Convert.ToString(byte2check, 2).PadLeft(8, '0');
|
||||
var bMapReq = Convert.ToString((1 << bitNum), 2).PadLeft(8, '0');
|
||||
lgTrace($"Valore | bKey: {bKey} | bVal: {bVal} | byte: {bMapAct} | tgt: {bMapReq} | B_input: {B_input}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user