-
-

+
MAPO-IOB-WIN
+
v: {{CURRENT-REL}}
+
+
Acquisitore MAPO-IOB per sistemi Windows
+
+ Note di rilascio:
+
+ -
+ v.3.1.* → v.3.2.*
+
+ - Nuovi simulatori con gestione emergenza
+ - Fix gestione invio dati Redis
+ - Implementazione IOB Eurom63
+
+
+ -
+ v.2.6.* → v.3.0.*
+
+ - revisione sistema metodi invio in blocco
+ - Gestione invio contapezzi in step > 1
+ - Gestione eventi in blocco (indipendente e prioritario su EvBlock)
+ - Gestione limite eventi memorizzabili
+ - Integrazione REDIS
+ - Integrazione IOB-MAN
+
+
+ -
+ v.2.5.* → v.2.6.*
+
+ - revisione sistema timeout Ping
+ - Gestione AutoODL in prod generale (non solo SIM)
+
+
+ -
+ v.2.4.* → v.2.5.*
+
+ - Aggiunto adapter MTConnect
+ - Ottimizzazione gestione SIEMENS
+
+
+ -
+ v.2.3.* → v.2.4.*
+
+ - inserita gestione conf json x Flog acquisiti
+ - gestione invio Json blocchi dati FLog
+ - ottimizzazioni varie adapter Siemens
+ - ottimizzazione processo svuotamento code
+ - riduzione interferenza e interblocchi in fase di PLC assente
+
+
+ -
+ Ultime modifiche:
+
+
+ -
+ v.1.18.* → v.2.3.*
+
+ - inserimento WPS x acontrolli WebPage human readable
+ - fix gestione task2exe
+ - aggiunte varie versioni PLC siemens
+ - aggiunto PLC WPS x generiche web pages
+ - revisitazione LOG ODL e contapezzi
+ - modifica pagina presentazione dati (master) x resize
+ - Attivazione IOB SIMULATOR per test di carico (sostituito type DEMO)
+ - Aggiunto simulatore macchine MULTI pallet
+ - Ottimizzazione simulatore
+ - Ottimizzazioni PLC Siemens x riavvio post disconnessione (es spegnimento notturno)
+ - Ottimizzazione processo chiusura in update applicazione
+ - Aggiunta simulazione spegnimento con WU/CD
+
+
+ -
+ v.1.11.* → v.1.18.*
+
+ - Inserimento controller SIEMENS con S7+ library
+ - Inserimento nuove letture FANUC x programmi
+ - Inserimento nuove letture FANUC x SysEx (informazioni sistema)
+ - Inserimento invio FluxLog x parametri estesi (es SysEx, ProgName,...)
+ - FIX visualizzazione dati FluxLog e URL inviati
+ - FIX MAIN program da FANUC (non il current)
+ - Inserita modalita' DUMP memoria (iniziale full + periodica)
+ - Inserimento gestione contapezzi standard/checkBit in IOB.cfg
+ - Inserimento contapezzi da area memoria X
+ - NUOVA Gestione rami cliente e URL di update
+ - Gestione modi CNC
+ - Lettura dari dinamycs FANUC (feed, speed)
+ - aggiunta gestione aree G0..G30 (overrides?)
+ - fix errore disconnessione FANUC (allo spegnimento dl CNC) e memoria valori persistente a 1
+ - fix globali x gestione log IN / FLOG + ottimizzaizone check FANUC (PING)
+ - ottimizzazione fasi di restart in caso di assenza del server (evita reinvii inutili e migliora tempo ripartenza invio)
+ - review procedure controllo connessione x FANUC (es Tornos II)
+ - non richeide più privilegi admin x fare update
+ - gestione segnali inverted
+ - completata gestione configurabilità parametrica segnali (Tornos, CMZ, Biglia)
+ - revisitazione LOG x distinguere processi IOB
+
+
+ -
+ v.0.1.* → v.0.10.*
+
+ - Testato in produzione x update ad avvio e su richiesta
+ - Testato in produzione x lettura dati da Fanuc
+ - Inizio deploy con copia file su area IIS
+ - Prima versione con autoupdate
+ - Test PrettyBin x spostamento dll
+ - Base acquisitore FANUC
+ - Sistema base sw controllo in tray
+
+
+
+
+
+

+
+
-
-
-
\ No newline at end of file
diff --git a/Jenkinsfile b/Jenkinsfile
index f2e21cdd..6805741b 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -9,9 +9,9 @@ pipeline {
steps {
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
script {
- withEnv(['NEXT_BUILD_NUMBER=705']) {
- // env.versionNumber = VersionNumber(versionNumberString : '3.2.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
- env.versionNumber = VersionNumber(versionNumberString : '3.2.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
+ withEnv(['NEXT_BUILD_NUMBER=706']) {
+ // env.versionNumber = VersionNumber(versionNumberString : '3.3.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
+ env.versionNumber = VersionNumber(versionNumberString : '3.3.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
env.APP_NAME = 'MAPO-IOB-WIN'
}
}
diff --git a/TestApp.sln b/TestApp.sln
new file mode 100644
index 00000000..fc358db9
--- /dev/null
+++ b/TestApp.sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.30413.136
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestApp", "TestApp\TestApp.csproj", "{41CED9A1-A4F8-4F8D-97EC-CBEFC2B3F2EB}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {41CED9A1-A4F8-4F8D-97EC-CBEFC2B3F2EB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {41CED9A1-A4F8-4F8D-97EC-CBEFC2B3F2EB}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {41CED9A1-A4F8-4F8D-97EC-CBEFC2B3F2EB}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {41CED9A1-A4F8-4F8D-97EC-CBEFC2B3F2EB}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {D37298AA-67AF-432E-B3BB-12C51CD28F92}
+ EndGlobalSection
+EndGlobal
diff --git a/TestApp/FSWatch.cs b/TestApp/FSWatch.cs
new file mode 100644
index 00000000..89f8715c
--- /dev/null
+++ b/TestApp/FSWatch.cs
@@ -0,0 +1,109 @@
+using System;
+using System.IO;
+using System.Security.Permissions;
+
+namespace TestApp
+{
+ /**************************************************
+ * Classe gestione verifica cambio files in directory
+ *
+ * links:
+ * https://docs.microsoft.com/it-it/dotnet/api/system.io.filesystemwatcher?view=netframework-4.0
+ * https://www.c-sharpcorner.com/UploadFile/puranindia/filesystemwatcher-in-C-Sharp/
+ *
+ *
+ * ***********************************************/
+ public static class FSWatch
+ {
+
+ ///
+ /// Metodo principale esecuzione check filesystem
+ ///
+ [PermissionSet(SecurityAction.Demand, Name = "FullTrust")]
+ public static void Run()
+ {
+ //string[] args = Environment.GetCommandLineArgs();
+
+ //// If a directory is not specified, exit program.
+ //if (args.Length != 2)
+ //{
+ // // Display the proper way to call the program.
+ // Console.WriteLine("Usage: Watcher.exe (directory)");
+ // return;
+ //}
+
+ try
+ {
+ // Create a new FileSystemWatcher and set its properties.
+ using (FileSystemWatcher watcher = new FileSystemWatcher())
+ {
+ //watcher.Path = args[1];
+
+ watcher.Path = Directory.GetCurrentDirectory();
+
+ // NO guardo le subdirs
+ watcher.IncludeSubdirectories = false;
+
+ // Watch for changes in LastAccess and LastWrite times, and
+ // the renaming of files or directories.
+ //watcher.NotifyFilter = NotifyFilters.DirectoryName
+ // | NotifyFilters.FileName
+ // | NotifyFilters.LastAccess
+ // | NotifyFilters.LastWrite
+ // | NotifyFilters.Size;
+ watcher.NotifyFilter = NotifyFilters.Attributes
+ | NotifyFilters.CreationTime
+ | NotifyFilters.DirectoryName
+ | NotifyFilters.FileName
+ | NotifyFilters.LastAccess
+ | NotifyFilters.LastWrite
+ | NotifyFilters.Security
+ | NotifyFilters.Size;
+
+ // Only watch text files.
+ watcher.Filter = "*.*";
+
+ // Add event handlers.
+ watcher.Changed += OnChanged;
+ watcher.Created += OnChanged;
+ watcher.Error += OnError;
+ watcher.Deleted += OnChanged;
+ watcher.Renamed += OnRenamed;
+
+ // Begin watching.
+ watcher.EnableRaisingEvents = true;
+
+ // Wait for the user to quit the program.
+ Console.WriteLine("Press 'q' to quit the sample.");
+ while (Console.Read() != 'q') ;
+ }
+ }
+ catch (IOException e)
+ {
+ //Console.WriteLine("A Exception Occurred :" + e);
+ Utils.Log.Error("A Exception Occurred :" + e);
+ }
+ catch (Exception oe)
+ {
+ //Console.WriteLine("An Exception Occurred :" + oe);
+ Utils.Log.Error("An Exception Occurred :" + oe);
+ }
+ }
+
+ private static void OnError(object sender, ErrorEventArgs e) =>
+ // Specify what is done when a file is changed, created, or deleted.
+ Console.WriteLine($"{DateTime.Now} | Error: {e.GetException()}");
+
+ // Define the event handlers.
+ private static void OnChanged(object source, FileSystemEventArgs e) =>
+ Utils.Log.Info($"File: {e.Name} {e.ChangeType}");
+ // Specify what is done when a file is changed, created, or deleted.
+ //Console.WriteLine($"{DateTime.Now} | File: {e.Name} {e.ChangeType} ({e.FullPath})");
+
+
+ private static void OnRenamed(object source, RenamedEventArgs e) =>
+ Utils.Log.Info($"File: {e.OldName} renamed to {e.Name}");
+ // Specify what is done when a file is renamed.
+ //Console.WriteLine($"{DateTime.Now} | File: {e.OldName} renamed to {e.Name} ({e.OldFullPath} --> {e.FullPath})");
+ }
+}
\ No newline at end of file
diff --git a/TestApp/NLog.config b/TestApp/NLog.config
new file mode 100644
index 00000000..a6354580
--- /dev/null
+++ b/TestApp/NLog.config
@@ -0,0 +1,54 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/TestApp/Program.cs b/TestApp/Program.cs
new file mode 100644
index 00000000..5149f5b6
--- /dev/null
+++ b/TestApp/Program.cs
@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace TestApp
+{
+ internal class Program
+ {
+ private static void Main(string[] args)
+ {
+ // eseguo test FS Watcher
+ FSWatch.Run();
+ }
+ }
+}
\ No newline at end of file
diff --git a/TestApp/Properties/AssemblyInfo.cs b/TestApp/Properties/AssemblyInfo.cs
new file mode 100644
index 00000000..3edf2271
--- /dev/null
+++ b/TestApp/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// Le informazioni generali relative a un assembly sono controllate dal seguente
+// set di attributi. Modificare i valori di questi attributi per modificare le informazioni
+// associate a un assembly.
+[assembly: AssemblyTitle("TestApp")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("TestApp")]
+[assembly: AssemblyCopyright("Copyright © 2020")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Se si imposta ComVisible su false, i tipi in questo assembly non saranno visibili
+// ai componenti COM. Se è necessario accedere a un tipo in questo assembly da
+// COM, impostare su true l'attributo ComVisible per tale tipo.
+[assembly: ComVisible(false)]
+
+// Se il progetto viene esposto a COM, il GUID seguente verrà utilizzato come ID della libreria dei tipi
+[assembly: Guid("41ced9a1-a4f8-4f8d-97ec-cbefc2b3f2eb")]
+
+// Le informazioni sulla versione di un assembly sono costituite dai seguenti quattro valori:
+//
+// Versione principale
+// Versione secondaria
+// Numero di build
+// Revisione
+//
+// È possibile specificare tutti i valori oppure impostare valori predefiniti per i numeri relativi alla revisione e alla build
+// usando l'asterisco '*' come illustrato di seguito:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/TestApp/TestApp.csproj b/TestApp/TestApp.csproj
new file mode 100644
index 00000000..dde66a30
--- /dev/null
+++ b/TestApp/TestApp.csproj
@@ -0,0 +1,73 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {41CED9A1-A4F8-4F8D-97EC-CBEFC2B3F2EB}
+ Exe
+ TestApp
+ TestApp
+ v4.0
+ 512
+ true
+
+
+
+
+ AnyCPU
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ AnyCPU
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+ ..\packages\NLog.4.7.5\lib\net40-client\NLog.dll
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Always
+
+
+ Always
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TestApp/Utils.cs b/TestApp/Utils.cs
new file mode 100644
index 00000000..473b5e49
--- /dev/null
+++ b/TestApp/Utils.cs
@@ -0,0 +1,23 @@
+using NLog;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace TestApp
+{
+ public class Utils
+ {
+
+ ///
+ /// S
+ ///
+ public static Logger Log { get; private set; }
+ static Utils()
+ {
+ LogManager.ReconfigExistingLoggers();
+
+ Log = LogManager.GetCurrentClassLogger();
+ }
+ }
+}
diff --git a/TestApp/logs/.placeholder b/TestApp/logs/.placeholder
new file mode 100644
index 00000000..5f282702
--- /dev/null
+++ b/TestApp/logs/.placeholder
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/TestApp/packages.config b/TestApp/packages.config
new file mode 100644
index 00000000..73e35b24
--- /dev/null
+++ b/TestApp/packages.config
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file