diff --git a/MTC_Adapter/MTC_Adapter/AdapterGeneric.cs b/MTC_Adapter/MTC_Adapter/AdapterGeneric.cs index 5f1a8ae..f6b0f83 100644 --- a/MTC_Adapter/MTC_Adapter/AdapterGeneric.cs +++ b/MTC_Adapter/MTC_Adapter/AdapterGeneric.cs @@ -2483,6 +2483,8 @@ namespace MTC_Adapter { int numEv = 0; int codEv = 0; + // c'รจ un salto di 1 slot di memoria SE fosse osai x vettore variabili dopo num eventi iniziale + int salto = parentForm.tipoScelto == tipoAdapter.OSAI ? 1 : 0; if (currStrobe.HasFlag((StFlag8)Math.Pow(2, bitNum))) { // verifico sia > 0 il numero di valori da leggere - indice 0 sull'area... @@ -2493,7 +2495,7 @@ namespace MTC_Adapter for (int i = 0; i < numEv; i++) { // leggo valore Codice - codEv = BitConverter.ToUInt16(MemBlock, 2 * (i + 2 + memShift)); + codEv = BitConverter.ToUInt16(MemBlock, 2 * (1 + salto + i + memShift)); // accodo evento Codice appendCodeMST(Coda, codEv.ToString(), idxPath); } diff --git a/MTC_Adapter/MTC_Adapter/MainForm.cs b/MTC_Adapter/MTC_Adapter/MainForm.cs index ade0160..aef3eca 100644 --- a/MTC_Adapter/MTC_Adapter/MainForm.cs +++ b/MTC_Adapter/MTC_Adapter/MainForm.cs @@ -70,7 +70,7 @@ namespace MTC_Adapter /// /// tipo di adapter prescelto... /// - protected tipoAdapter tipoScelto = tipoAdapter.DEMO; + public tipoAdapter tipoScelto = tipoAdapter.DEMO; #endregion diff --git a/MaterialeSetup/SIEMENS/Documentazione_SIEMENS_EN/Parameter Manual NC variable and interface signals_V47.pdf b/MaterialeSetup/SIEMENS/Documentazione_SIEMENS_EN/Parameter Manual NC variable and interface signals_V47.pdf new file mode 100644 index 0000000..8ae7059 Binary files /dev/null and b/MaterialeSetup/SIEMENS/Documentazione_SIEMENS_EN/Parameter Manual NC variable and interface signals_V47.pdf differ diff --git a/MaterialeSetup/SIEMENS/Documentazione_SIEMENS_EN/btss_eng.GID b/MaterialeSetup/SIEMENS/Documentazione_SIEMENS_EN/btss_eng.GID index 43359b1..9a0cbbc 100644 Binary files a/MaterialeSetup/SIEMENS/Documentazione_SIEMENS_EN/btss_eng.GID and b/MaterialeSetup/SIEMENS/Documentazione_SIEMENS_EN/btss_eng.GID differ