diff --git a/TestRestCli/.vscode/settings.json b/TestRestCli/.vscode/settings.json deleted file mode 100644 index c02b5cfe..00000000 --- a/TestRestCli/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "dotnet.defaultSolution": "RestApp.sln" -} \ No newline at end of file diff --git a/TestRestCli/RestApp.sln b/TestRestCli/RestApp.sln deleted file mode 100644 index 9b1fb203..00000000 --- a/TestRestCli/RestApp.sln +++ /dev/null @@ -1,22 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.0.31903.59 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RestApp", "RestApp\RestApp.csproj", "{E3094EFE-15CB-40A4-8163-194AE19A7969}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {E3094EFE-15CB-40A4-8163-194AE19A7969}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E3094EFE-15CB-40A4-8163-194AE19A7969}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E3094EFE-15CB-40A4-8163-194AE19A7969}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E3094EFE-15CB-40A4-8163-194AE19A7969}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection -EndGlobal diff --git a/TestRestCli/RestApp/Program.cs b/TestRestCli/RestApp/Program.cs deleted file mode 100644 index 38961eda..00000000 --- a/TestRestCli/RestApp/Program.cs +++ /dev/null @@ -1,99 +0,0 @@ -// See https://aka.ms/new-console-template for more information -using System.Diagnostics; -using System.Dynamic; -using Newtonsoft.Json; - - -internal class Program -{ - private static void Main(string[] args) - { - Console.WriteLine(sep); - Console.WriteLine("Rest Client test application"); - Console.WriteLine(sep); - - Console.WriteLine(); - Console.WriteLine("Call connection"); - // setup oggetti - int tOut = 60; - string apiUrl = "http://192.168.80.61:8733/DRIVER_MES/rest/"; - rCall = new RestCaller(apiUrl, tOut); - - // chiamate! - CallAndLog("checkconnection"); - string token = CallAndLog("gettoken/mecmaticames/mecmatica@mes").Replace("\"", ""); - string gLamp = CallAndLog($"getsingleladderio/{token}/Y/8E"); - string yLamp = CallAndLog($"getsingleladderio/{token}/Y/21"); - string rLamp = CallAndLog($"getsingleladderio/{token}/Y/22"); - string qtyTot = CallAndLog($"gettotalquantity/{token}"); - string qtyReq = CallAndLog($"getneededquantity/{token}"); - string qtyWrk = CallAndLog($"getworkedquantity/{token}"); - string cTime = CallAndLog($"getcycletime/{token}"); - string pName = CallAndLog($"getmainprogram/{token}"); - - string cAlarm = CallAndLog($"getalarm/{token}"); - var sAlarm = JsonConvert.DeserializeObject(cAlarm); - cAlarm = JsonConvert.SerializeObject(sAlarm, Formatting.Indented); - - string allAlarm = CallAndLog($"getallalarmlog/{token}"); - var alarmList = JsonConvert.DeserializeObject>(allAlarm); - allAlarm = JsonConvert.SerializeObject(alarmList, Formatting.Indented); - - string err = CallAndLog($"getsingleladderio/ABC/Y/22"); - // ora scrivo i files dei test x debug successivo - var appPath = System.Reflection.Assembly.GetExecutingAssembly().Location; - var fPath = Directory.GetParent(appPath).FullName; - string basePath = Path.Combine(fPath, "Test"); - if (!Directory.Exists(basePath)) - { - Directory.CreateDirectory(basePath); - } - File.WriteAllText(Path.Combine(basePath, "token.txt"), token); - File.WriteAllText(Path.Combine(basePath, "gLamp.txt"), gLamp); - File.WriteAllText(Path.Combine(basePath, "yLamp.txt"), yLamp); - File.WriteAllText(Path.Combine(basePath, "rLamp.txt"), rLamp); - File.WriteAllText(Path.Combine(basePath, "qtyTot.txt"), qtyTot); - File.WriteAllText(Path.Combine(basePath, "qtyReq.txt"), qtyReq); - File.WriteAllText(Path.Combine(basePath, "qtyWrk.txt"), qtyWrk); - File.WriteAllText(Path.Combine(basePath, "cTime.txt"), cTime); - File.WriteAllText(Path.Combine(basePath, "pName.txt"), pName); - File.WriteAllText(Path.Combine(basePath, "cAlarm.txt"), cAlarm); - File.WriteAllText(Path.Combine(basePath, "allAlarm.txt"), allAlarm); - } - - private static RestCaller rCall { get; set; } = new RestCaller("http://localhost", 60); - private static string sep = "------------------------"; - private static Stopwatch sw = new Stopwatch(); - - private static string CallAndLog(string fullUri) - { - sw.Restart(); - Console.WriteLine(sep); - Console.WriteLine($"Calling: {fullUri}"); - // chiamo - string answ = rCall.ExecuteCallGet(fullUri); - sw.Stop(); - // loggo - Console.WriteLine(answ); - Console.WriteLine($"Elapsed: {sw.ElapsedMilliseconds}"); - Console.WriteLine(sep); - Console.WriteLine(); - return answ; - } -} - -internal class AlarmInfo -{ - public int id { get; set; } = 0; - public string? ErrorMessage { get; set; } = null; - public DateTime date { get; set; } = DateTime.Today.AddYears(-10); - public string message { get; set; } = ""; - public string type { get; set; } = ""; -} -internal class WarnInfo -{ - public bool IsAlarm { get; set; } = false; - public bool IsCaution { get; set; } = false; - public string? ErrorMessage { get; set; } = null; - public string message { get; set; } = ""; -} \ No newline at end of file diff --git a/TestRestCli/RestApp/RestApp.csproj b/TestRestCli/RestApp/RestApp.csproj deleted file mode 100644 index 1cd95a4e..00000000 --- a/TestRestCli/RestApp/RestApp.csproj +++ /dev/null @@ -1,15 +0,0 @@ - - - - Exe - net8.0 - enable - enable - - - - - - - - diff --git a/TestRestCli/RestApp/RestCaller.cs b/TestRestCli/RestApp/RestCaller.cs deleted file mode 100644 index b41b05aa..00000000 --- a/TestRestCli/RestApp/RestCaller.cs +++ /dev/null @@ -1,62 +0,0 @@ - -using RestSharp; - -public class RestCaller -{ - /// - /// Classe gestione chiamate REST - /// - /// - /// - public RestCaller(string ApiUrl, int TimeOutSec) - { - tOut = TimeOutSec; - apiUrl = ApiUrl; - - restOptStd = new RestClientOptions - { - Timeout = TimeSpan.FromSeconds(tOut), - BaseUrl = new Uri(apiUrl) - }; - } - - /// - /// Esecuzione chiamata Rest tipo GET - /// - /// - /// - public string ExecuteCallGet(string resource) - { - string answ = ""; - if (!string.IsNullOrEmpty(resource)) - { - // client chiamate rest - using (var client = new RestClient(restOptStd)) - { - var currReq = new RestRequest(resource, Method.Get); - // currReq.AddHeader("Content-type", "application/xml"); - currReq.AddHeader("Content-type", "application/json"); - // effettuo vera chiamata - var currResp = client.Get(currReq); - if (currResp.StatusCode == System.Net.HttpStatusCode.OK && currResp.Content != null) - { - answ = $"{currResp.Content}"; - } - } - } - return answ; - } - - - - protected string apiUrl = ""; - protected int tOut = 60; - - - - /// - /// Conf client RestSharp standard: - /// - timeout 1 min - /// - private RestClientOptions restOptStd = new RestClientOptions { Timeout = TimeSpan.FromSeconds(60) }; -} \ No newline at end of file diff --git a/TestRestCli/RestApp/Test/json/allAlarm.txt b/TestRestCli/RestApp/Test/json/allAlarm.txt deleted file mode 100644 index 941ea75e..00000000 --- a/TestRestCli/RestApp/Test/json/allAlarm.txt +++ /dev/null @@ -1 +0,0 @@ -[{"ErrorMessage":null,"date":"\/Date(1731318651000+0100)\/","id":1,"message":"Contapezzi pieno. La quantit� impostata � stata raggiunta.","type":"EX200"},{"ErrorMessage":null,"date":"\/Date(1731317285000+0100)\/","id":2,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1731317212000+0100)\/","id":3,"message":"Caricatore barre non pronto. Alimentazione non fornita.","type":"EX133"},{"ErrorMessage":null,"date":"\/Date(1731317211000+0100)\/","id":4,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1731313014000+0100)\/","id":5,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1731312611000+0100)\/","id":6,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1731312520000+0100)\/","id":7,"message":"All. dstrb. (zona)","type":"M04"},{"ErrorMessage":null,"date":"\/Date(1731311075000+0100)\/","id":8,"message":"Sovraccarico convogliatore trucioli. Convogliat. Inceppato.","type":"EX208"},{"ErrorMessage":null,"date":"\/Date(1731106637000+0100)\/","id":9,"message":"Caricatore barre non pronto. Alimentazione non fornita.","type":"EX133"},{"ErrorMessage":null,"date":"\/Date(1731106637000+0100)\/","id":10,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1731095466000+0100)\/","id":11,"message":"Pinza mandrino chiusa. Aprire la pinza.","type":"EX501"},{"ErrorMessage":null,"date":"\/Date(1731095318000+0100)\/","id":12,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1731094918000+0100)\/","id":13,"message":"Caricatore barre non pronto. Alimentazione non fornita.","type":"EX133"},{"ErrorMessage":null,"date":"\/Date(1731094917000+0100)\/","id":14,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1731079195000+0100)\/","id":15,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1731079090000+0100)\/","id":16,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1731078999000+0100)\/","id":17,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1731078850000+0100)\/","id":18,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1731078596000+0100)\/","id":19,"message":"All. distrb. (comando)","type":"M03"},{"ErrorMessage":null,"date":"\/Date(1731077989000+0100)\/","id":20,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1731077960000+0100)\/","id":21,"message":"All. dstrb. (zona)","type":"M04"},{"ErrorMessage":null,"date":"\/Date(1731077517000+0100)\/","id":22,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1731073286000+0100)\/","id":23,"message":"All. dstrb. (zona)","type":"M04"},{"ErrorMessage":null,"date":"\/Date(1731072889000+0100)\/","id":24,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1731072722000+0100)\/","id":25,"message":"All. distrb. (comando)","type":"M03"},{"ErrorMessage":null,"date":"\/Date(1731066125000+0100)\/","id":26,"message":"Caricatore barre non pronto. Alimentazione non fornita.","type":"EX133"},{"ErrorMessage":null,"date":"\/Date(1731062496000+0100)\/","id":27,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1731062178000+0100)\/","id":28,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1731062107000+0100)\/","id":29,"message":"Allarme motore utensili contro mandrino.","type":"EX009"},{"ErrorMessage":null,"date":"\/Date(1731062107000+0100)\/","id":30,"message":"Allarme Motore mandrino utensile opposto.","type":"EX008"},{"ErrorMessage":null,"date":"\/Date(1731062107000+0100)\/","id":31,"message":"Allarme motore mandrino utensile Gang.","type":"EX005"},{"ErrorMessage":null,"date":"\/Date(1731062107000+0100)\/","id":32,"message":"Allarme motore mandr. post. L'azionamento � in allarme.","type":"EX004"},{"ErrorMessage":null,"date":"\/Date(1731062107000+0100)\/","id":33,"message":"Allarme motore mandr. princ. L'azionamento � in allarme.","type":"EX003"},{"ErrorMessage":null,"date":"\/Date(1731062107000+0100)\/","id":34,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1731062107000+0100)\/","id":35,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1731062107000+0100)\/","id":36,"message":"Stop di emerg.","type":"EMG"},{"ErrorMessage":null,"date":"\/Date(1731062107000+0100)\/","id":37,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1731062107000+0100)\/","id":38,"message":"Segnale blocco porta illeg. Blocco porta difett.","type":"EX304"},{"ErrorMessage":null,"date":"\/Date(1731062107000+0100)\/","id":39,"message":"No ctrl.veloc.con porta aperta","type":"Y20"},{"ErrorMessage":null,"date":"\/Date(1731062106000+0100)\/","id":40,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1731062071000+0100)\/","id":41,"message":"Allarme pulsante di emergenza. Pulsante premuto.","type":"EX052"},{"ErrorMessage":null,"date":"\/Date(1731062068000+0100)\/","id":42,"message":"Stop di emerg.","type":"EMG"},{"ErrorMessage":null,"date":"\/Date(1731062065000+0100)\/","id":43,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1731049685000+0100)\/","id":44,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1731043808000+0100)\/","id":45,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1731043380000+0100)\/","id":46,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1731043227000+0100)\/","id":47,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1731042813000+0100)\/","id":48,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1731042448000+0100)\/","id":49,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1731042366000+0100)\/","id":50,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1731042176000+0100)\/","id":51,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1731041953000+0100)\/","id":52,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1731040748000+0100)\/","id":53,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1731012589000+0100)\/","id":54,"message":"Contapezzi pieno. La quantit� impostata � stata raggiunta.","type":"EX200"},{"ErrorMessage":null,"date":"\/Date(1730999923000+0100)\/","id":55,"message":"Allarme mancanza liquido refrigerante. Rabboccare.","type":"EX203"},{"ErrorMessage":null,"date":"\/Date(1730989161000+0100)\/","id":56,"message":"Contapezzi pieno. La quantit� impostata � stata raggiunta.","type":"EX200"},{"ErrorMessage":null,"date":"\/Date(1730965769000+0100)\/","id":57,"message":"Contapezzi pieno. La quantit� impostata � stata raggiunta.","type":"EX200"},{"ErrorMessage":null,"date":"\/Date(1730954444000+0100)\/","id":58,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730943256000+0100)\/","id":59,"message":"Contapezzi pieno. La quantit� impostata � stata raggiunta.","type":"EX200"},{"ErrorMessage":null,"date":"\/Date(1730922376000+0100)\/","id":60,"message":"All. distrb. (comando)","type":"M03"},{"ErrorMessage":null,"date":"\/Date(1730921426000+0100)\/","id":61,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730921341000+0100)\/","id":62,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730920440000+0100)\/","id":63,"message":"All. distrb. (comando)","type":"M03"},{"ErrorMessage":null,"date":"\/Date(1730920403000+0100)\/","id":64,"message":"All. distrb. (comando)","type":"M03"},{"ErrorMessage":null,"date":"\/Date(1730920270000+0100)\/","id":65,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730920004000+0100)\/","id":66,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730918176000+0100)\/","id":67,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730918142000+0100)\/","id":68,"message":"Stop di emerg.","type":"EMG"},{"ErrorMessage":null,"date":"\/Date(1730918140000+0100)\/","id":69,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730918140000+0100)\/","id":70,"message":"Ctrl.sicur.: err.veloc.comando","type":"Y20"},{"ErrorMessage":null,"date":"\/Date(1730917689000+0100)\/","id":71,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730917613000+0100)\/","id":72,"message":"Pinza mandrino chiusa. Aprire la pinza.","type":"EX501"},{"ErrorMessage":null,"date":"\/Date(1730916598000+0100)\/","id":73,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730913167000+0100)\/","id":74,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730912986000+0100)\/","id":75,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730912954000+0100)\/","id":76,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730911578000+0100)\/","id":77,"message":"Contapezzi pieno. La quantit� impostata � stata raggiunta.","type":"EX200"},{"ErrorMessage":null,"date":"\/Date(1730893807000+0100)\/","id":78,"message":"Allarme mancanza liquido refrigerante. Rabboccare.","type":"EX203"},{"ErrorMessage":null,"date":"\/Date(1730884140000+0100)\/","id":79,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730876528000+0100)\/","id":80,"message":"All. dstrb. (zona)","type":"M04"},{"ErrorMessage":null,"date":"\/Date(1730876524000+0100)\/","id":81,"message":"Mandrino posteriore in funzione.","type":"EX591"},{"ErrorMessage":null,"date":"\/Date(1730876150000+0100)\/","id":82,"message":"Ripos. a zero non terminato","type":"P430"},{"ErrorMessage":null,"date":"\/Date(1730875382000+0100)\/","id":83,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730875373000+0100)\/","id":84,"message":"Ripos. a zero non terminato","type":"P430"},{"ErrorMessage":null,"date":"\/Date(1730875288000+0100)\/","id":85,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730875278000+0100)\/","id":86,"message":"Ripos. a zero non terminato","type":"P430"},{"ErrorMessage":null,"date":"\/Date(1730867756000+0100)\/","id":87,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730844080000+0100)\/","id":88,"message":"Contapezzi pieno. La quantit� impostata � stata raggiunta.","type":"EX200"},{"ErrorMessage":null,"date":"\/Date(1730818763000+0100)\/","id":89,"message":"Errore fasatura","type":"P192"},{"ErrorMessage":null,"date":"\/Date(1730816092000+0100)\/","id":90,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730815885000+0100)\/","id":91,"message":"All. distrb. (comando)","type":"M03"},{"ErrorMessage":null,"date":"\/Date(1730815880000+0100)\/","id":92,"message":"All. distrb. (comando)","type":"M03"},{"ErrorMessage":null,"date":"\/Date(1730815804000+0100)\/","id":93,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730815736000+0100)\/","id":94,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730809717000+0100)\/","id":95,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730809654000+0100)\/","id":96,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730809594000+0100)\/","id":97,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730809539000+0100)\/","id":98,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730809447000+0100)\/","id":99,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730809422000+0100)\/","id":100,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730809283000+0100)\/","id":101,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730809224000+0100)\/","id":102,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730809197000+0100)\/","id":103,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730808854000+0100)\/","id":104,"message":"Caricatore barre non pronto. Alimentazione non fornita.","type":"EX133"},{"ErrorMessage":null,"date":"\/Date(1730786841000+0100)\/","id":105,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730781545000+0100)\/","id":106,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730781487000+0100)\/","id":107,"message":"Allarme motore utensili contro mandrino.","type":"EX009"},{"ErrorMessage":null,"date":"\/Date(1730781487000+0100)\/","id":108,"message":"Allarme Motore mandrino utensile opposto.","type":"EX008"},{"ErrorMessage":null,"date":"\/Date(1730781487000+0100)\/","id":109,"message":"Allarme motore mandrino utensile Gang.","type":"EX005"},{"ErrorMessage":null,"date":"\/Date(1730781487000+0100)\/","id":110,"message":"Allarme motore mandr. post. L'azionamento � in allarme.","type":"EX004"},{"ErrorMessage":null,"date":"\/Date(1730781487000+0100)\/","id":111,"message":"Allarme motore mandr. princ. L'azionamento � in allarme.","type":"EX003"},{"ErrorMessage":null,"date":"\/Date(1730781487000+0100)\/","id":112,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730781487000+0100)\/","id":113,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730781487000+0100)\/","id":114,"message":"Stop di emerg.","type":"EMG"},{"ErrorMessage":null,"date":"\/Date(1730781487000+0100)\/","id":115,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730781487000+0100)\/","id":116,"message":"Segnale blocco porta illeg. Blocco porta difett.","type":"EX304"},{"ErrorMessage":null,"date":"\/Date(1730781487000+0100)\/","id":117,"message":"No ctrl.veloc.con porta aperta","type":"Y20"},{"ErrorMessage":null,"date":"\/Date(1730781486000+0100)\/","id":118,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730753269000+0100)\/","id":119,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730753135000+0100)\/","id":120,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730753046000+0100)\/","id":121,"message":"All. distrb. (comando)","type":"M03"},{"ErrorMessage":null,"date":"\/Date(1730752975000+0100)\/","id":122,"message":"All. distrb. (comando)","type":"M03"},{"ErrorMessage":null,"date":"\/Date(1730751420000+0100)\/","id":123,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730751049000+0100)\/","id":124,"message":"All. distrb. (comando)","type":"M03"},{"ErrorMessage":null,"date":"\/Date(1730750959000+0100)\/","id":125,"message":"All. distrb. (comando)","type":"M03"},{"ErrorMessage":null,"date":"\/Date(1730750918000+0100)\/","id":126,"message":"All. distrb. (comando)","type":"M03"},{"ErrorMessage":null,"date":"\/Date(1730750865000+0100)\/","id":127,"message":"All. distrb. (comando)","type":"M03"},{"ErrorMessage":null,"date":"\/Date(1730750621000+0100)\/","id":128,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730750516000+0100)\/","id":129,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730750415000+0100)\/","id":130,"message":"All. distrb. (comando)","type":"M03"},{"ErrorMessage":null,"date":"\/Date(1730750330000+0100)\/","id":131,"message":"All. distrb. (comando)","type":"M03"},{"ErrorMessage":null,"date":"\/Date(1730750163000+0100)\/","id":132,"message":"All. distrb. (comando)","type":"M03"},{"ErrorMessage":null,"date":"\/Date(1730750112000+0100)\/","id":133,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730748819000+0100)\/","id":134,"message":"Caricatore barre non pronto. Alimentazione non fornita.","type":"EX133"},{"ErrorMessage":null,"date":"\/Date(1730748728000+0100)\/","id":135,"message":"Il numero utensile specificato � fuori campo.","type":"EX506"},{"ErrorMessage":null,"date":"\/Date(1730748658000+0100)\/","id":136,"message":"Caricatore barre non pronto. Alimentazione non fornita.","type":"EX133"},{"ErrorMessage":null,"date":"\/Date(1730748558000+0100)\/","id":137,"message":"Lav. con portaut. front. sull�autoc. princ. causa interf.","type":"EX729"},{"ErrorMessage":null,"date":"\/Date(1730748497000+0100)\/","id":138,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730748459000+0100)\/","id":139,"message":"Pinza mandrino chiusa. Aprire la pinza.","type":"EX501"},{"ErrorMessage":null,"date":"\/Date(1730748213000+0100)\/","id":140,"message":"Lav. con portaut. front. sull�autoc. princ. causa interf.","type":"EX729"},{"ErrorMessage":null,"date":"\/Date(1730748148000+0100)\/","id":141,"message":"Pinza mandrino chiusa. Aprire la pinza.","type":"EX501"},{"ErrorMessage":null,"date":"\/Date(1730748128000+0100)\/","id":142,"message":"Pinza mandrino chiusa. Aprire la pinza.","type":"EX501"},{"ErrorMessage":null,"date":"\/Date(1730748016000+0100)\/","id":143,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730747492000+0100)\/","id":144,"message":"All. dstrb. (zona)","type":"M04"},{"ErrorMessage":null,"date":"\/Date(1730747477000+0100)\/","id":145,"message":"Lav. con portaut. front. sull�autoc. princ. causa interf.","type":"EX729"},{"ErrorMessage":null,"date":"\/Date(1730744474000+0100)\/","id":146,"message":"Lav. con portaut. front. sull�autoc. princ. causa interf.","type":"EX729"},{"ErrorMessage":null,"date":"\/Date(1730744436000+0100)\/","id":147,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730744243000+0100)\/","id":148,"message":"Lav. con portaut. front. sull�autoc. princ. causa interf.","type":"EX729"},{"ErrorMessage":null,"date":"\/Date(1730743963000+0100)\/","id":149,"message":"Lav. con portaut. front. sull�autoc. princ. causa interf.","type":"EX729"},{"ErrorMessage":null,"date":"\/Date(1730743835000+0100)\/","id":150,"message":"Lav. con portaut. front. sull�autoc. princ. causa interf.","type":"EX729"},{"ErrorMessage":null,"date":"\/Date(1730743632000+0100)\/","id":151,"message":"Lav. con portaut. front. sull�autoc. princ. causa interf.","type":"EX729"},{"ErrorMessage":null,"date":"\/Date(1730743536000+0100)\/","id":152,"message":"Lav. con portaut. front. sull�autoc. princ. causa interf.","type":"EX729"},{"ErrorMessage":null,"date":"\/Date(1730743510000+0100)\/","id":153,"message":"Lav. con portaut. front. sull�autoc. princ. causa interf.","type":"EX729"},{"ErrorMessage":null,"date":"\/Date(1730743041000+0100)\/","id":154,"message":"Lav. con portaut. front. sull�autoc. princ. causa interf.","type":"EX729"},{"ErrorMessage":null,"date":"\/Date(1730740216000+0100)\/","id":155,"message":"All. distrb. (comando)","type":"M03"},{"ErrorMessage":null,"date":"\/Date(1730739891000+0100)\/","id":156,"message":"Impossibile specificare questo codice T.","type":"EX522"},{"ErrorMessage":null,"date":"\/Date(1730739855000+0100)\/","id":157,"message":"Impossibile specificare questo codice T.","type":"EX522"},{"ErrorMessage":null,"date":"\/Date(1730739721000+0100)\/","id":158,"message":"Impossibile specificare questo codice T.","type":"EX522"},{"ErrorMessage":null,"date":"\/Date(1730739701000+0100)\/","id":159,"message":"Impossibile specificare questo codice T.","type":"EX522"},{"ErrorMessage":null,"date":"\/Date(1730739388000+0100)\/","id":160,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730737445000+0100)\/","id":161,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730734314000+0100)\/","id":162,"message":"Contapezzi pieno. La quantit� impostata � stata raggiunta.","type":"EX200"},{"ErrorMessage":null,"date":"\/Date(1730716887000+0100)\/","id":163,"message":"L'espulsore non � in posizione arretrata.","type":"EX113"},{"ErrorMessage":null,"date":"\/Date(1730716751000+0100)\/","id":164,"message":"All. dstrb. (zona)","type":"M04"},{"ErrorMessage":null,"date":"\/Date(1730716735000+0100)\/","id":165,"message":"Ritrarre estrattore.","type":"EX148"},{"ErrorMessage":null,"date":"\/Date(1730716735000+0100)\/","id":166,"message":"Il sensore urto � anomalo.","type":"EX144"},{"ErrorMessage":null,"date":"\/Date(1730696666000+0100)\/","id":167,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730694998000+0100)\/","id":168,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730430865000+0100)\/","id":169,"message":"Caricatore barre non pronto. Alimentazione non fornita.","type":"EX133"},{"ErrorMessage":null,"date":"\/Date(1730430864000+0100)\/","id":170,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730408309000+0100)\/","id":171,"message":"Ritrarre estrattore.","type":"EX148"},{"ErrorMessage":null,"date":"\/Date(1730408105000+0100)\/","id":172,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730408081000+0100)\/","id":173,"message":"All. dstrb. (zona)","type":"M04"},{"ErrorMessage":null,"date":"\/Date(1730408051000+0100)\/","id":174,"message":"Ritrarre estrattore.","type":"EX148"},{"ErrorMessage":null,"date":"\/Date(1730408051000+0100)\/","id":175,"message":"Il sensore urto � anomalo.","type":"EX144"},{"ErrorMessage":null,"date":"\/Date(1730407021000+0100)\/","id":176,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730406821000+0100)\/","id":177,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730403110000+0100)\/","id":178,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730402945000+0100)\/","id":179,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730399670000+0100)\/","id":180,"message":"All. dstrb. (zona)","type":"M04"},{"ErrorMessage":null,"date":"\/Date(1730399669000+0100)\/","id":181,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730399577000+0100)\/","id":182,"message":"Stop di emerg.","type":"EMG"},{"ErrorMessage":null,"date":"\/Date(1730399577000+0100)\/","id":183,"message":"All. dstrb. (zona)","type":"M04"},{"ErrorMessage":null,"date":"\/Date(1730398345000+0100)\/","id":184,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730395798000+0100)\/","id":185,"message":"Ritrarre estrattore.","type":"EX148"},{"ErrorMessage":null,"date":"\/Date(1730395732000+0100)\/","id":186,"message":"Ritrarre estrattore.","type":"EX148"},{"ErrorMessage":null,"date":"\/Date(1730395436000+0100)\/","id":187,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730395378000+0100)\/","id":188,"message":"All. dstrb. (zona)","type":"M04"},{"ErrorMessage":null,"date":"\/Date(1730395365000+0100)\/","id":189,"message":"Ritrarre estrattore.","type":"EX148"},{"ErrorMessage":null,"date":"\/Date(1730395365000+0100)\/","id":190,"message":"Il sensore urto � anomalo.","type":"EX144"},{"ErrorMessage":null,"date":"\/Date(1730393096000+0100)\/","id":191,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730393053000+0100)\/","id":192,"message":"All. dstrb. (zona)","type":"M04"},{"ErrorMessage":null,"date":"\/Date(1730388265000+0100)\/","id":193,"message":"Ritrarre estrattore.","type":"EX148"},{"ErrorMessage":null,"date":"\/Date(1730388199000+0100)\/","id":194,"message":"Ritrarre estrattore.","type":"EX148"},{"ErrorMessage":null,"date":"\/Date(1730388180000+0100)\/","id":195,"message":"L'espulsore non � in posizione arretrata.","type":"EX113"},{"ErrorMessage":null,"date":"\/Date(1730388172000+0100)\/","id":196,"message":"Ritrarre estrattore.","type":"EX148"},{"ErrorMessage":null,"date":"\/Date(1730388034000+0100)\/","id":197,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730387969000+0100)\/","id":198,"message":"All. dstrb. (zona)","type":"M04"},{"ErrorMessage":null,"date":"\/Date(1730386788000+0100)\/","id":199,"message":"Ritrarre estrattore.","type":"EX148"},{"ErrorMessage":null,"date":"\/Date(1730386788000+0100)\/","id":200,"message":"Il sensore urto � anomalo.","type":"EX144"},{"ErrorMessage":null,"date":"\/Date(1730379252000+0100)\/","id":201,"message":"Caricatore barre non pronto. Alimentazione non fornita.","type":"EX133"},{"ErrorMessage":null,"date":"\/Date(1730379178000+0100)\/","id":202,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730379014000+0100)\/","id":203,"message":"Caricatore barre non pronto. Alimentazione non fornita.","type":"EX133"},{"ErrorMessage":null,"date":"\/Date(1730379014000+0100)\/","id":204,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730372226000+0100)\/","id":205,"message":"Sovraccarico convogliatore trucioli. Convogliat. Inceppato.","type":"EX208"},{"ErrorMessage":null,"date":"\/Date(1730370482000+0100)\/","id":206,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730370319000+0100)\/","id":207,"message":"All. dstrb. (zona)","type":"M04"},{"ErrorMessage":null,"date":"\/Date(1730369760000+0100)\/","id":208,"message":"Ritrarre estrattore.","type":"EX148"},{"ErrorMessage":null,"date":"\/Date(1730369760000+0100)\/","id":209,"message":"Il sensore urto � anomalo.","type":"EX144"},{"ErrorMessage":null,"date":"\/Date(1730367844000+0100)\/","id":210,"message":"Ritrarre estrattore.","type":"EX148"},{"ErrorMessage":null,"date":"\/Date(1730367844000+0100)\/","id":211,"message":"Il sensore urto � anomalo.","type":"EX144"},{"ErrorMessage":null,"date":"\/Date(1730367799000+0100)\/","id":212,"message":"Ritrarre estrattore.","type":"EX148"},{"ErrorMessage":null,"date":"\/Date(1730367738000+0100)\/","id":213,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730367670000+0100)\/","id":214,"message":"All. dstrb. (zona)","type":"M04"},{"ErrorMessage":null,"date":"\/Date(1730367649000+0100)\/","id":215,"message":"Ritrarre estrattore.","type":"EX148"},{"ErrorMessage":null,"date":"\/Date(1730367649000+0100)\/","id":216,"message":"Il sensore urto � anomalo.","type":"EX144"},{"ErrorMessage":null,"date":"\/Date(1730362481000+0100)\/","id":217,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730362027000+0100)\/","id":218,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730361509000+0100)\/","id":219,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730361440000+0100)\/","id":220,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730356251000+0100)\/","id":221,"message":"All. dstrb. (zona)","type":"M04"},{"ErrorMessage":null,"date":"\/Date(1730349652000+0100)\/","id":222,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730349494000+0100)\/","id":223,"message":"Allarme motore utensili contro mandrino.","type":"EX009"},{"ErrorMessage":null,"date":"\/Date(1730349494000+0100)\/","id":224,"message":"Allarme Motore mandrino utensile opposto.","type":"EX008"},{"ErrorMessage":null,"date":"\/Date(1730349494000+0100)\/","id":225,"message":"Allarme motore mandrino utensile Gang.","type":"EX005"},{"ErrorMessage":null,"date":"\/Date(1730349494000+0100)\/","id":226,"message":"Allarme motore mandr. post. L'azionamento � in allarme.","type":"EX004"},{"ErrorMessage":null,"date":"\/Date(1730349494000+0100)\/","id":227,"message":"Allarme motore mandr. princ. L'azionamento � in allarme.","type":"EX003"},{"ErrorMessage":null,"date":"\/Date(1730349494000+0100)\/","id":228,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730349494000+0100)\/","id":229,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730349494000+0100)\/","id":230,"message":"Stop di emerg.","type":"EMG"},{"ErrorMessage":null,"date":"\/Date(1730349494000+0100)\/","id":231,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730349494000+0100)\/","id":232,"message":"Segnale blocco porta illeg. Blocco porta difett.","type":"EX304"},{"ErrorMessage":null,"date":"\/Date(1730349494000+0100)\/","id":233,"message":"No ctrl.veloc.con porta aperta","type":"Y20"},{"ErrorMessage":null,"date":"\/Date(1730349493000+0100)\/","id":234,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730319988000+0100)\/","id":235,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730317188000+0100)\/","id":236,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730317049000+0100)\/","id":237,"message":"Stop di emerg.","type":"EMG"},{"ErrorMessage":null,"date":"\/Date(1730317037000+0100)\/","id":238,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730317037000+0100)\/","id":239,"message":"Riconosc. collis. 0","type":"S03"},{"ErrorMessage":null,"date":"\/Date(1730317037000+0100)\/","id":240,"message":"Stop di emerg.","type":"EMG"},{"ErrorMessage":null,"date":"\/Date(1730316472000+0100)\/","id":241,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730316398000+0100)\/","id":242,"message":"Stop di emerg.","type":"EMG"},{"ErrorMessage":null,"date":"\/Date(1730316391000+0100)\/","id":243,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730316390000+0100)\/","id":244,"message":"Riconosc. collis. 0","type":"S03"},{"ErrorMessage":null,"date":"\/Date(1730316390000+0100)\/","id":245,"message":"Stop di emerg.","type":"EMG"},{"ErrorMessage":null,"date":"\/Date(1730314947000+0100)\/","id":246,"message":"All. distrb. (comando)","type":"M03"},{"ErrorMessage":null,"date":"\/Date(1730313108000+0100)\/","id":247,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730313047000+0100)\/","id":248,"message":"All. distrb. (comando)","type":"M03"},{"ErrorMessage":null,"date":"\/Date(1730313003000+0100)\/","id":249,"message":"All. distrb. (comando)","type":"M03"},{"ErrorMessage":null,"date":"\/Date(1730312860000+0100)\/","id":250,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730311622000+0100)\/","id":251,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730311145000+0100)\/","id":252,"message":"All. dstrb. (zona)","type":"M04"},{"ErrorMessage":null,"date":"\/Date(1730310837000+0100)\/","id":253,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730310811000+0100)\/","id":254,"message":"All. distrb. (comando)","type":"M03"},{"ErrorMessage":null,"date":"\/Date(1730307688000+0100)\/","id":255,"message":"Sovraccarico convogliatore trucioli. Convogliat. Inceppato.","type":"EX208"},{"ErrorMessage":null,"date":"\/Date(1730303727000+0100)\/","id":256,"message":"Lav. con portaut. front. sull�autoc. princ. causa interf.","type":"EX729"},{"ErrorMessage":null,"date":"\/Date(1730303686000+0100)\/","id":257,"message":"Caricatore barre non pronto. Alimentazione non fornita.","type":"EX133"},{"ErrorMessage":null,"date":"\/Date(1730299949000+0100)\/","id":258,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730299910000+0100)\/","id":259,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730297846000+0100)\/","id":260,"message":"Finecorsa S\/W asse presente","type":"M01"},{"ErrorMessage":null,"date":"\/Date(1730295106000+0100)\/","id":261,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730295074000+0100)\/","id":262,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730294849000+0100)\/","id":263,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730292474000+0100)\/","id":264,"message":"Contapezzi pieno. La quantit� impostata � stata raggiunta.","type":"EX200"},{"ErrorMessage":null,"date":"\/Date(1730287887000+0100)\/","id":265,"message":"Sovraccarico convogliatore trucioli. Convogliat. Inceppato.","type":"EX208"},{"ErrorMessage":null,"date":"\/Date(1730287477000+0100)\/","id":266,"message":"Sovraccarico convogliatore trucioli. Convogliat. Inceppato.","type":"EX208"},{"ErrorMessage":null,"date":"\/Date(1730287384000+0100)\/","id":267,"message":"Sovraccarico convogliatore trucioli. Convogliat. Inceppato.","type":"EX208"},{"ErrorMessage":null,"date":"\/Date(1730285630000+0100)\/","id":268,"message":"Allarme mancanza liquido refrigerante. Rabboccare.","type":"EX203"},{"ErrorMessage":null,"date":"\/Date(1730283588000+0100)\/","id":269,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730285866000+0100)\/","id":270,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730285172000+0100)\/","id":271,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730278892000+0100)\/","id":272,"message":"Allarme esterno 3. Dispositivo opzionale in allarme.","type":"EX103"},{"ErrorMessage":null,"date":"\/Date(1730278892000+0100)\/","id":273,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730278614000+0100)\/","id":274,"message":"Allarme esterno 3. Dispositivo opzionale in allarme.","type":"EX103"},{"ErrorMessage":null,"date":"\/Date(1730278614000+0100)\/","id":275,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730277975000+0100)\/","id":276,"message":"Allarme motore utensili contro mandrino.","type":"EX009"},{"ErrorMessage":null,"date":"\/Date(1730277975000+0100)\/","id":277,"message":"Allarme Motore mandrino utensile opposto.","type":"EX008"},{"ErrorMessage":null,"date":"\/Date(1730277975000+0100)\/","id":278,"message":"Allarme motore mandrino utensile Gang.","type":"EX005"},{"ErrorMessage":null,"date":"\/Date(1730277975000+0100)\/","id":279,"message":"Allarme motore mandr. post. L'azionamento � in allarme.","type":"EX004"},{"ErrorMessage":null,"date":"\/Date(1730277975000+0100)\/","id":280,"message":"Allarme motore mandr. princ. L'azionamento � in allarme.","type":"EX003"},{"ErrorMessage":null,"date":"\/Date(1730277975000+0100)\/","id":281,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730277975000+0100)\/","id":282,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730277975000+0100)\/","id":283,"message":"Stop di emerg.","type":"EMG"},{"ErrorMessage":null,"date":"\/Date(1730277975000+0100)\/","id":284,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730277975000+0100)\/","id":285,"message":"Segnale blocco porta illeg. Blocco porta difett.","type":"EX304"},{"ErrorMessage":null,"date":"\/Date(1730277975000+0100)\/","id":286,"message":"No ctrl.veloc.con porta aperta","type":"Y20"},{"ErrorMessage":null,"date":"\/Date(1730277974000+0100)\/","id":287,"message":"Allarme esterno 3. Dispositivo opzionale in allarme.","type":"EX103"},{"ErrorMessage":null,"date":"\/Date(1730277974000+0100)\/","id":288,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730277464000+0100)\/","id":289,"message":"Allarme esterno 3. Dispositivo opzionale in allarme.","type":"EX103"},{"ErrorMessage":null,"date":"\/Date(1730276787000+0100)\/","id":290,"message":"Allarme motore utensili contro mandrino.","type":"EX009"},{"ErrorMessage":null,"date":"\/Date(1730276787000+0100)\/","id":291,"message":"Allarme Motore mandrino utensile opposto.","type":"EX008"},{"ErrorMessage":null,"date":"\/Date(1730276787000+0100)\/","id":292,"message":"Allarme motore mandrino utensile Gang.","type":"EX005"},{"ErrorMessage":null,"date":"\/Date(1730276787000+0100)\/","id":293,"message":"Allarme motore mandr. post. L'azionamento � in allarme.","type":"EX004"},{"ErrorMessage":null,"date":"\/Date(1730276787000+0100)\/","id":294,"message":"Allarme motore mandr. princ. L'azionamento � in allarme.","type":"EX003"},{"ErrorMessage":null,"date":"\/Date(1730276787000+0100)\/","id":295,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730276787000+0100)\/","id":296,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730276787000+0100)\/","id":297,"message":"Stop di emerg.","type":"EMG"},{"ErrorMessage":null,"date":"\/Date(1730276787000+0100)\/","id":298,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730276787000+0100)\/","id":299,"message":"Segnale blocco porta illeg. Blocco porta difett.","type":"EX304"},{"ErrorMessage":null,"date":"\/Date(1730276787000+0100)\/","id":300,"message":"No ctrl.veloc.con porta aperta","type":"Y20"},{"ErrorMessage":null,"date":"\/Date(1730276786000+0100)\/","id":301,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730276126000+0100)\/","id":302,"message":"Allarme motore utensili contro mandrino.","type":"EX009"},{"ErrorMessage":null,"date":"\/Date(1730276126000+0100)\/","id":303,"message":"Allarme Motore mandrino utensile opposto.","type":"EX008"},{"ErrorMessage":null,"date":"\/Date(1730276126000+0100)\/","id":304,"message":"Allarme motore mandrino utensile Gang.","type":"EX005"},{"ErrorMessage":null,"date":"\/Date(1730276126000+0100)\/","id":305,"message":"Allarme motore mandr. post. L'azionamento � in allarme.","type":"EX004"},{"ErrorMessage":null,"date":"\/Date(1730276126000+0100)\/","id":306,"message":"Allarme motore mandr. princ. L'azionamento � in allarme.","type":"EX003"},{"ErrorMessage":null,"date":"\/Date(1730276126000+0100)\/","id":307,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730276126000+0100)\/","id":308,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730276126000+0100)\/","id":309,"message":"Stop di emerg.","type":"EMG"},{"ErrorMessage":null,"date":"\/Date(1730276126000+0100)\/","id":310,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730276126000+0100)\/","id":311,"message":"Segnale blocco porta illeg. Blocco porta difett.","type":"EX304"},{"ErrorMessage":null,"date":"\/Date(1730276126000+0100)\/","id":312,"message":"No ctrl.veloc.con porta aperta","type":"Y20"},{"ErrorMessage":null,"date":"\/Date(1730276125000+0100)\/","id":313,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730273553000+0100)\/","id":314,"message":"Allarme motore utensili contro mandrino.","type":"EX009"},{"ErrorMessage":null,"date":"\/Date(1730273553000+0100)\/","id":315,"message":"Allarme Motore mandrino utensile opposto.","type":"EX008"},{"ErrorMessage":null,"date":"\/Date(1730273553000+0100)\/","id":316,"message":"Allarme motore mandrino utensile Gang.","type":"EX005"},{"ErrorMessage":null,"date":"\/Date(1730273553000+0100)\/","id":317,"message":"Allarme motore mandr. post. L'azionamento � in allarme.","type":"EX004"},{"ErrorMessage":null,"date":"\/Date(1730273553000+0100)\/","id":318,"message":"Allarme motore mandr. princ. L'azionamento � in allarme.","type":"EX003"},{"ErrorMessage":null,"date":"\/Date(1730273553000+0100)\/","id":319,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730273553000+0100)\/","id":320,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730273553000+0100)\/","id":321,"message":"Stop di emerg.","type":"EMG"},{"ErrorMessage":null,"date":"\/Date(1730273553000+0100)\/","id":322,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730273553000+0100)\/","id":323,"message":"Segnale blocco porta illeg. Blocco porta difett.","type":"EX304"},{"ErrorMessage":null,"date":"\/Date(1730273553000+0100)\/","id":324,"message":"No ctrl.veloc.con porta aperta","type":"Y20"},{"ErrorMessage":null,"date":"\/Date(1730273552000+0100)\/","id":325,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730272968000+0100)\/","id":326,"message":"Allarme motore utensili contro mandrino.","type":"EX009"},{"ErrorMessage":null,"date":"\/Date(1730272968000+0100)\/","id":327,"message":"Allarme Motore mandrino utensile opposto.","type":"EX008"},{"ErrorMessage":null,"date":"\/Date(1730272968000+0100)\/","id":328,"message":"Allarme motore mandrino utensile Gang.","type":"EX005"},{"ErrorMessage":null,"date":"\/Date(1730272968000+0100)\/","id":329,"message":"Allarme motore mandr. post. L'azionamento � in allarme.","type":"EX004"},{"ErrorMessage":null,"date":"\/Date(1730272968000+0100)\/","id":330,"message":"Allarme motore mandr. princ. L'azionamento � in allarme.","type":"EX003"},{"ErrorMessage":null,"date":"\/Date(1730272968000+0100)\/","id":331,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730272968000+0100)\/","id":332,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730272968000+0100)\/","id":333,"message":"Stop di emerg.","type":"EMG"},{"ErrorMessage":null,"date":"\/Date(1730272968000+0100)\/","id":334,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730272968000+0100)\/","id":335,"message":"Segnale blocco porta illeg. Blocco porta difett.","type":"EX304"},{"ErrorMessage":null,"date":"\/Date(1730272968000+0100)\/","id":336,"message":"No ctrl.veloc.con porta aperta","type":"Y20"},{"ErrorMessage":null,"date":"\/Date(1730272967000+0100)\/","id":337,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730271945000+0100)\/","id":338,"message":"Allarme motore utensili contro mandrino.","type":"EX009"},{"ErrorMessage":null,"date":"\/Date(1730271945000+0100)\/","id":339,"message":"Allarme Motore mandrino utensile opposto.","type":"EX008"},{"ErrorMessage":null,"date":"\/Date(1730271945000+0100)\/","id":340,"message":"Allarme motore mandrino utensile Gang.","type":"EX005"},{"ErrorMessage":null,"date":"\/Date(1730271945000+0100)\/","id":341,"message":"Allarme motore mandr. post. L'azionamento � in allarme.","type":"EX004"},{"ErrorMessage":null,"date":"\/Date(1730271945000+0100)\/","id":342,"message":"Allarme motore mandr. princ. L'azionamento � in allarme.","type":"EX003"},{"ErrorMessage":null,"date":"\/Date(1730271945000+0100)\/","id":343,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730271945000+0100)\/","id":344,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730271945000+0100)\/","id":345,"message":"Stop di emerg.","type":"EMG"},{"ErrorMessage":null,"date":"\/Date(1730271945000+0100)\/","id":346,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730271945000+0100)\/","id":347,"message":"Segnale blocco porta illeg. Blocco porta difett.","type":"EX304"},{"ErrorMessage":null,"date":"\/Date(1730271945000+0100)\/","id":348,"message":"No ctrl.veloc.con porta aperta","type":"Y20"},{"ErrorMessage":null,"date":"\/Date(1730271944000+0100)\/","id":349,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730270976000+0100)\/","id":350,"message":"Allarme motore utensili contro mandrino.","type":"EX009"},{"ErrorMessage":null,"date":"\/Date(1730270976000+0100)\/","id":351,"message":"Allarme Motore mandrino utensile opposto.","type":"EX008"},{"ErrorMessage":null,"date":"\/Date(1730270976000+0100)\/","id":352,"message":"Allarme motore mandrino utensile Gang.","type":"EX005"},{"ErrorMessage":null,"date":"\/Date(1730270976000+0100)\/","id":353,"message":"Allarme motore mandr. post. L'azionamento � in allarme.","type":"EX004"},{"ErrorMessage":null,"date":"\/Date(1730270976000+0100)\/","id":354,"message":"Allarme motore mandr. princ. L'azionamento � in allarme.","type":"EX003"},{"ErrorMessage":null,"date":"\/Date(1730270976000+0100)\/","id":355,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730270976000+0100)\/","id":356,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730270976000+0100)\/","id":357,"message":"Stop di emerg.","type":"EMG"},{"ErrorMessage":null,"date":"\/Date(1730270976000+0100)\/","id":358,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730270976000+0100)\/","id":359,"message":"Segnale blocco porta illeg. Blocco porta difett.","type":"EX304"},{"ErrorMessage":null,"date":"\/Date(1730270976000+0100)\/","id":360,"message":"No ctrl.veloc.con porta aperta","type":"Y20"},{"ErrorMessage":null,"date":"\/Date(1730270975000+0100)\/","id":361,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730270877000+0100)\/","id":362,"message":"Allarme motore utensili contro mandrino.","type":"EX009"},{"ErrorMessage":null,"date":"\/Date(1730270877000+0100)\/","id":363,"message":"Allarme Motore mandrino utensile opposto.","type":"EX008"},{"ErrorMessage":null,"date":"\/Date(1730270877000+0100)\/","id":364,"message":"Allarme motore mandrino utensile Gang.","type":"EX005"},{"ErrorMessage":null,"date":"\/Date(1730270877000+0100)\/","id":365,"message":"Allarme motore mandr. post. L'azionamento � in allarme.","type":"EX004"},{"ErrorMessage":null,"date":"\/Date(1730270877000+0100)\/","id":366,"message":"Allarme motore mandr. princ. L'azionamento � in allarme.","type":"EX003"},{"ErrorMessage":null,"date":"\/Date(1730270877000+0100)\/","id":367,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730270877000+0100)\/","id":368,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730270877000+0100)\/","id":369,"message":"Stop di emerg.","type":"EMG"},{"ErrorMessage":null,"date":"\/Date(1730270877000+0100)\/","id":370,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730270877000+0100)\/","id":371,"message":"Segnale blocco porta illeg. Blocco porta difett.","type":"EX304"},{"ErrorMessage":null,"date":"\/Date(1730270877000+0100)\/","id":372,"message":"No ctrl.veloc.con porta aperta","type":"Y20"},{"ErrorMessage":null,"date":"\/Date(1730270876000+0100)\/","id":373,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730270781000+0100)\/","id":374,"message":"Allarme motore utensili contro mandrino.","type":"EX009"},{"ErrorMessage":null,"date":"\/Date(1730270781000+0100)\/","id":375,"message":"Allarme Motore mandrino utensile opposto.","type":"EX008"},{"ErrorMessage":null,"date":"\/Date(1730270781000+0100)\/","id":376,"message":"Allarme motore mandrino utensile Gang.","type":"EX005"},{"ErrorMessage":null,"date":"\/Date(1730270781000+0100)\/","id":377,"message":"Allarme motore mandr. post. L'azionamento � in allarme.","type":"EX004"},{"ErrorMessage":null,"date":"\/Date(1730270781000+0100)\/","id":378,"message":"Allarme motore mandr. princ. L'azionamento � in allarme.","type":"EX003"},{"ErrorMessage":null,"date":"\/Date(1730270781000+0100)\/","id":379,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730270781000+0100)\/","id":380,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730270781000+0100)\/","id":381,"message":"Stop di emerg.","type":"EMG"},{"ErrorMessage":null,"date":"\/Date(1730270781000+0100)\/","id":382,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730270781000+0100)\/","id":383,"message":"Segnale blocco porta illeg. Blocco porta difett.","type":"EX304"},{"ErrorMessage":null,"date":"\/Date(1730270781000+0100)\/","id":384,"message":"No ctrl.veloc.con porta aperta","type":"Y20"},{"ErrorMessage":null,"date":"\/Date(1730270780000+0100)\/","id":385,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730269719000+0100)\/","id":386,"message":"Allarme motore utensili contro mandrino.","type":"EX009"},{"ErrorMessage":null,"date":"\/Date(1730269719000+0100)\/","id":387,"message":"Allarme Motore mandrino utensile opposto.","type":"EX008"},{"ErrorMessage":null,"date":"\/Date(1730269719000+0100)\/","id":388,"message":"Allarme motore mandrino utensile Gang.","type":"EX005"},{"ErrorMessage":null,"date":"\/Date(1730269719000+0100)\/","id":389,"message":"Allarme motore mandr. post. L'azionamento � in allarme.","type":"EX004"},{"ErrorMessage":null,"date":"\/Date(1730269719000+0100)\/","id":390,"message":"Allarme motore mandr. princ. L'azionamento � in allarme.","type":"EX003"},{"ErrorMessage":null,"date":"\/Date(1730269719000+0100)\/","id":391,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730269719000+0100)\/","id":392,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730269719000+0100)\/","id":393,"message":"Stop di emerg.","type":"EMG"},{"ErrorMessage":null,"date":"\/Date(1730269719000+0100)\/","id":394,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730269719000+0100)\/","id":395,"message":"Segnale blocco porta illeg. Blocco porta difett.","type":"EX304"},{"ErrorMessage":null,"date":"\/Date(1730269719000+0100)\/","id":396,"message":"No ctrl.veloc.con porta aperta","type":"Y20"},{"ErrorMessage":null,"date":"\/Date(1730269718000+0100)\/","id":397,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730268465000+0100)\/","id":398,"message":"Allarme motore utensili contro mandrino.","type":"EX009"},{"ErrorMessage":null,"date":"\/Date(1730268465000+0100)\/","id":399,"message":"Allarme Motore mandrino utensile opposto.","type":"EX008"},{"ErrorMessage":null,"date":"\/Date(1730268465000+0100)\/","id":400,"message":"Allarme motore mandrino utensile Gang.","type":"EX005"},{"ErrorMessage":null,"date":"\/Date(1730268465000+0100)\/","id":401,"message":"Allarme motore mandr. post. L'azionamento � in allarme.","type":"EX004"},{"ErrorMessage":null,"date":"\/Date(1730268465000+0100)\/","id":402,"message":"Allarme motore mandr. princ. L'azionamento � in allarme.","type":"EX003"},{"ErrorMessage":null,"date":"\/Date(1730268465000+0100)\/","id":403,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730268465000+0100)\/","id":404,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730268465000+0100)\/","id":405,"message":"Stop di emerg.","type":"EMG"},{"ErrorMessage":null,"date":"\/Date(1730268465000+0100)\/","id":406,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730268465000+0100)\/","id":407,"message":"Segnale blocco porta illeg. Blocco porta difett.","type":"EX304"},{"ErrorMessage":null,"date":"\/Date(1730268465000+0100)\/","id":408,"message":"No ctrl.veloc.con porta aperta","type":"Y20"},{"ErrorMessage":null,"date":"\/Date(1730268464000+0100)\/","id":409,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730267940000+0100)\/","id":410,"message":"Allarme motore utensili contro mandrino.","type":"EX009"},{"ErrorMessage":null,"date":"\/Date(1730267940000+0100)\/","id":411,"message":"Allarme Motore mandrino utensile opposto.","type":"EX008"},{"ErrorMessage":null,"date":"\/Date(1730267940000+0100)\/","id":412,"message":"Allarme motore mandrino utensile Gang.","type":"EX005"},{"ErrorMessage":null,"date":"\/Date(1730267940000+0100)\/","id":413,"message":"Allarme motore mandr. post. L'azionamento � in allarme.","type":"EX004"},{"ErrorMessage":null,"date":"\/Date(1730267940000+0100)\/","id":414,"message":"Allarme motore mandr. princ. L'azionamento � in allarme.","type":"EX003"},{"ErrorMessage":null,"date":"\/Date(1730267940000+0100)\/","id":415,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730267940000+0100)\/","id":416,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730267940000+0100)\/","id":417,"message":"Stop di emerg.","type":"EMG"},{"ErrorMessage":null,"date":"\/Date(1730267940000+0100)\/","id":418,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730267940000+0100)\/","id":419,"message":"Segnale blocco porta illeg. Blocco porta difett.","type":"EX304"},{"ErrorMessage":null,"date":"\/Date(1730267940000+0100)\/","id":420,"message":"No ctrl.veloc.con porta aperta","type":"Y20"},{"ErrorMessage":null,"date":"\/Date(1730267939000+0100)\/","id":421,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730266899000+0100)\/","id":422,"message":"Allarme motore utensili contro mandrino.","type":"EX009"},{"ErrorMessage":null,"date":"\/Date(1730266899000+0100)\/","id":423,"message":"Allarme Motore mandrino utensile opposto.","type":"EX008"},{"ErrorMessage":null,"date":"\/Date(1730266899000+0100)\/","id":424,"message":"Allarme motore mandrino utensile Gang.","type":"EX005"},{"ErrorMessage":null,"date":"\/Date(1730266899000+0100)\/","id":425,"message":"Allarme motore mandr. post. L'azionamento � in allarme.","type":"EX004"},{"ErrorMessage":null,"date":"\/Date(1730266899000+0100)\/","id":426,"message":"Allarme motore mandr. princ. L'azionamento � in allarme.","type":"EX003"},{"ErrorMessage":null,"date":"\/Date(1730266899000+0100)\/","id":427,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730266899000+0100)\/","id":428,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730266899000+0100)\/","id":429,"message":"Stop di emerg.","type":"EMG"},{"ErrorMessage":null,"date":"\/Date(1730266899000+0100)\/","id":430,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730266899000+0100)\/","id":431,"message":"Segnale blocco porta illeg. Blocco porta difett.","type":"EX304"},{"ErrorMessage":null,"date":"\/Date(1730266899000+0100)\/","id":432,"message":"No ctrl.veloc.con porta aperta","type":"Y20"},{"ErrorMessage":null,"date":"\/Date(1730266898000+0100)\/","id":433,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730266796000+0100)\/","id":434,"message":"Allarme motore utensili contro mandrino.","type":"EX009"},{"ErrorMessage":null,"date":"\/Date(1730266796000+0100)\/","id":435,"message":"Allarme Motore mandrino utensile opposto.","type":"EX008"},{"ErrorMessage":null,"date":"\/Date(1730266796000+0100)\/","id":436,"message":"Allarme motore mandrino utensile Gang.","type":"EX005"},{"ErrorMessage":null,"date":"\/Date(1730266796000+0100)\/","id":437,"message":"Allarme motore mandr. post. L'azionamento � in allarme.","type":"EX004"},{"ErrorMessage":null,"date":"\/Date(1730266796000+0100)\/","id":438,"message":"Allarme motore mandr. princ. L'azionamento � in allarme.","type":"EX003"},{"ErrorMessage":null,"date":"\/Date(1730266796000+0100)\/","id":439,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730266796000+0100)\/","id":440,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730266796000+0100)\/","id":441,"message":"Stop di emerg.","type":"EMG"},{"ErrorMessage":null,"date":"\/Date(1730266796000+0100)\/","id":442,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730266796000+0100)\/","id":443,"message":"Segnale blocco porta illeg. Blocco porta difett.","type":"EX304"},{"ErrorMessage":null,"date":"\/Date(1730266796000+0100)\/","id":444,"message":"No ctrl.veloc.con porta aperta","type":"Y20"},{"ErrorMessage":null,"date":"\/Date(1730266795000+0100)\/","id":445,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730239150000+0100)\/","id":446,"message":"Allarme motore utensili contro mandrino.","type":"EX009"},{"ErrorMessage":null,"date":"\/Date(1730239150000+0100)\/","id":447,"message":"Allarme Motore mandrino utensile opposto.","type":"EX008"},{"ErrorMessage":null,"date":"\/Date(1730239150000+0100)\/","id":448,"message":"Allarme motore mandrino utensile Gang.","type":"EX005"},{"ErrorMessage":null,"date":"\/Date(1730239150000+0100)\/","id":449,"message":"Allarme motore mandr. post. L'azionamento � in allarme.","type":"EX004"},{"ErrorMessage":null,"date":"\/Date(1730239150000+0100)\/","id":450,"message":"Allarme motore mandr. princ. L'azionamento � in allarme.","type":"EX003"},{"ErrorMessage":null,"date":"\/Date(1730239150000+0100)\/","id":451,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730239150000+0100)\/","id":452,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730239150000+0100)\/","id":453,"message":"Stop di emerg.","type":"EMG"},{"ErrorMessage":null,"date":"\/Date(1730239150000+0100)\/","id":454,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730239150000+0100)\/","id":455,"message":"Segnale blocco porta illeg. Blocco porta difett.","type":"EX304"},{"ErrorMessage":null,"date":"\/Date(1730239150000+0100)\/","id":456,"message":"No ctrl.veloc.con porta aperta","type":"Y20"},{"ErrorMessage":null,"date":"\/Date(1730239149000+0100)\/","id":457,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730238745000+0100)\/","id":458,"message":"Allarme motore utensili contro mandrino.","type":"EX009"},{"ErrorMessage":null,"date":"\/Date(1730238745000+0100)\/","id":459,"message":"Allarme Motore mandrino utensile opposto.","type":"EX008"},{"ErrorMessage":null,"date":"\/Date(1730238745000+0100)\/","id":460,"message":"Allarme motore mandrino utensile Gang.","type":"EX005"},{"ErrorMessage":null,"date":"\/Date(1730238745000+0100)\/","id":461,"message":"Allarme motore mandr. post. L'azionamento � in allarme.","type":"EX004"},{"ErrorMessage":null,"date":"\/Date(1730238745000+0100)\/","id":462,"message":"Allarme motore mandr. princ. L'azionamento � in allarme.","type":"EX003"},{"ErrorMessage":null,"date":"\/Date(1730238745000+0100)\/","id":463,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730238745000+0100)\/","id":464,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730238745000+0100)\/","id":465,"message":"Stop di emerg.","type":"EMG"},{"ErrorMessage":null,"date":"\/Date(1730238745000+0100)\/","id":466,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730238745000+0100)\/","id":467,"message":"Segnale blocco porta illeg. Blocco porta difett.","type":"EX304"},{"ErrorMessage":null,"date":"\/Date(1730238745000+0100)\/","id":468,"message":"No ctrl.veloc.con porta aperta","type":"Y20"},{"ErrorMessage":null,"date":"\/Date(1730238744000+0100)\/","id":469,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730238395000+0100)\/","id":470,"message":"Allarme motore utensili contro mandrino.","type":"EX009"},{"ErrorMessage":null,"date":"\/Date(1730238395000+0100)\/","id":471,"message":"Allarme Motore mandrino utensile opposto.","type":"EX008"},{"ErrorMessage":null,"date":"\/Date(1730238395000+0100)\/","id":472,"message":"Allarme motore mandrino utensile Gang.","type":"EX005"},{"ErrorMessage":null,"date":"\/Date(1730238395000+0100)\/","id":473,"message":"Allarme motore mandr. post. L'azionamento � in allarme.","type":"EX004"},{"ErrorMessage":null,"date":"\/Date(1730238395000+0100)\/","id":474,"message":"Allarme motore mandr. princ. L'azionamento � in allarme.","type":"EX003"},{"ErrorMessage":null,"date":"\/Date(1730238395000+0100)\/","id":475,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730238395000+0100)\/","id":476,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730238395000+0100)\/","id":477,"message":"Stop di emerg.","type":"EMG"},{"ErrorMessage":null,"date":"\/Date(1730238395000+0100)\/","id":478,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730238395000+0100)\/","id":479,"message":"Segnale blocco porta illeg. Blocco porta difett.","type":"EX304"},{"ErrorMessage":null,"date":"\/Date(1730238395000+0100)\/","id":480,"message":"No ctrl.veloc.con porta aperta","type":"Y20"},{"ErrorMessage":null,"date":"\/Date(1730238394000+0100)\/","id":481,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730238243000+0100)\/","id":482,"message":"Allarme motore utensili contro mandrino.","type":"EX009"},{"ErrorMessage":null,"date":"\/Date(1730238243000+0100)\/","id":483,"message":"Allarme Motore mandrino utensile opposto.","type":"EX008"},{"ErrorMessage":null,"date":"\/Date(1730238243000+0100)\/","id":484,"message":"Allarme motore mandrino utensile Gang.","type":"EX005"},{"ErrorMessage":null,"date":"\/Date(1730238243000+0100)\/","id":485,"message":"Allarme motore mandr. post. L'azionamento � in allarme.","type":"EX004"},{"ErrorMessage":null,"date":"\/Date(1730238243000+0100)\/","id":486,"message":"Allarme motore mandr. princ. L'azionamento � in allarme.","type":"EX003"},{"ErrorMessage":null,"date":"\/Date(1730238243000+0100)\/","id":487,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730238243000+0100)\/","id":488,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730238243000+0100)\/","id":489,"message":"Stop di emerg.","type":"EMG"},{"ErrorMessage":null,"date":"\/Date(1730238243000+0100)\/","id":490,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730238243000+0100)\/","id":491,"message":"Segnale blocco porta illeg. Blocco porta difett.","type":"EX304"},{"ErrorMessage":null,"date":"\/Date(1730238243000+0100)\/","id":492,"message":"No ctrl.veloc.con porta aperta","type":"Y20"},{"ErrorMessage":null,"date":"\/Date(1730238242000+0100)\/","id":493,"message":"Allarme caricatore barre. Il caricatore � in allarme.","type":"EX101"},{"ErrorMessage":null,"date":"\/Date(1730238155000+0100)\/","id":494,"message":"Allarme motore utensili contro mandrino.","type":"EX009"},{"ErrorMessage":null,"date":"\/Date(1730238155000+0100)\/","id":495,"message":"Allarme Motore mandrino utensile opposto.","type":"EX008"},{"ErrorMessage":null,"date":"\/Date(1730238155000+0100)\/","id":496,"message":"Allarme motore mandrino utensile Gang.","type":"EX005"},{"ErrorMessage":null,"date":"\/Date(1730238155000+0100)\/","id":497,"message":"Allarme motore mandr. post. L'azionamento � in allarme.","type":"EX004"},{"ErrorMessage":null,"date":"\/Date(1730238155000+0100)\/","id":498,"message":"Allarme motore mandr. princ. L'azionamento � in allarme.","type":"EX003"},{"ErrorMessage":null,"date":"\/Date(1730238155000+0100)\/","id":499,"message":"Ctrl.sicur.: err.stato porta","type":"S01"},{"ErrorMessage":null,"date":"\/Date(1730238155000+0100)\/","id":500,"message":"Ctrl.sicur.: err.stato porta","type":"S01"}] \ No newline at end of file diff --git a/TestRestCli/RestApp/Test/json/cAlarm.txt b/TestRestCli/RestApp/Test/json/cAlarm.txt deleted file mode 100644 index f9e02416..00000000 --- a/TestRestCli/RestApp/Test/json/cAlarm.txt +++ /dev/null @@ -1 +0,0 @@ -{"ErrorMessage":null,"IsAlarm":false,"IsCaution":true,"message":"CAUTION ON MACHINE"} \ No newline at end of file diff --git a/TestRestCli/RestApp/Test/json/cTime.txt b/TestRestCli/RestApp/Test/json/cTime.txt deleted file mode 100644 index 2ebc6516..00000000 --- a/TestRestCli/RestApp/Test/json/cTime.txt +++ /dev/null @@ -1 +0,0 @@ -56 \ No newline at end of file diff --git a/TestRestCli/RestApp/Test/json/gLamp.txt b/TestRestCli/RestApp/Test/json/gLamp.txt deleted file mode 100644 index b777f23c..00000000 --- a/TestRestCli/RestApp/Test/json/gLamp.txt +++ /dev/null @@ -1 +0,0 @@ -{"Address":"8E","Description":"","ErrorMessage":null,"IOType":"Y","VarValue":"0"} \ No newline at end of file diff --git a/TestRestCli/RestApp/Test/json/pName.txt b/TestRestCli/RestApp/Test/json/pName.txt deleted file mode 100644 index e69de29b..00000000 diff --git a/TestRestCli/RestApp/Test/json/qtyReq.txt b/TestRestCli/RestApp/Test/json/qtyReq.txt deleted file mode 100644 index eb1f4948..00000000 --- a/TestRestCli/RestApp/Test/json/qtyReq.txt +++ /dev/null @@ -1 +0,0 @@ -500 \ No newline at end of file diff --git a/TestRestCli/RestApp/Test/json/qtyTot.txt b/TestRestCli/RestApp/Test/json/qtyTot.txt deleted file mode 100644 index eb1f4948..00000000 --- a/TestRestCli/RestApp/Test/json/qtyTot.txt +++ /dev/null @@ -1 +0,0 @@ -500 \ No newline at end of file diff --git a/TestRestCli/RestApp/Test/json/qtyWrk.txt b/TestRestCli/RestApp/Test/json/qtyWrk.txt deleted file mode 100644 index c2270834..00000000 --- a/TestRestCli/RestApp/Test/json/qtyWrk.txt +++ /dev/null @@ -1 +0,0 @@ -0 \ No newline at end of file diff --git a/TestRestCli/RestApp/Test/json/rLamp.txt b/TestRestCli/RestApp/Test/json/rLamp.txt deleted file mode 100644 index 834dc39d..00000000 --- a/TestRestCli/RestApp/Test/json/rLamp.txt +++ /dev/null @@ -1 +0,0 @@ -{"Address":"22","Description":"","ErrorMessage":null,"IOType":"Y","VarValue":"0"} \ No newline at end of file diff --git a/TestRestCli/RestApp/Test/json/token.txt b/TestRestCli/RestApp/Test/json/token.txt deleted file mode 100644 index d54c2765..00000000 --- a/TestRestCli/RestApp/Test/json/token.txt +++ /dev/null @@ -1 +0,0 @@ -6d65636d61746963616d6573c2a76d65636d6174696361406d6573c2a731 \ No newline at end of file diff --git a/TestRestCli/RestApp/Test/json/yLamp.txt b/TestRestCli/RestApp/Test/json/yLamp.txt deleted file mode 100644 index 563a6925..00000000 --- a/TestRestCli/RestApp/Test/json/yLamp.txt +++ /dev/null @@ -1 +0,0 @@ -{"Address":"21","Description":"","ErrorMessage":null,"IOType":"Y","VarValue":"0"} \ No newline at end of file diff --git a/TestSampleMitsubishi/SampleAppCS.sln b/TestSampleMitsubishi/SampleAppCS.sln new file mode 100644 index 00000000..ffc0a1a9 --- /dev/null +++ b/TestSampleMitsubishi/SampleAppCS.sln @@ -0,0 +1,28 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35431.28 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleAppCS", "SampleAppCS\SampleAppCS.csproj", "{3D20D5E3-7DB0-495C-89E0-DF6968879D29}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + Remote_DEBUG|Any CPU = Remote_DEBUG|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3D20D5E3-7DB0-495C-89E0-DF6968879D29}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3D20D5E3-7DB0-495C-89E0-DF6968879D29}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3D20D5E3-7DB0-495C-89E0-DF6968879D29}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3D20D5E3-7DB0-495C-89E0-DF6968879D29}.Release|Any CPU.Build.0 = Release|Any CPU + {3D20D5E3-7DB0-495C-89E0-DF6968879D29}.Remote_DEBUG|Any CPU.ActiveCfg = Remote_DEBUG|Any CPU + {3D20D5E3-7DB0-495C-89E0-DF6968879D29}.Remote_DEBUG|Any CPU.Build.0 = Remote_DEBUG|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {CFD136ED-9DE7-4EFE-A308-6A558B222552} + EndGlobalSection +EndGlobal diff --git a/TestSampleMitsubishi/SampleAppCS/App.config b/TestSampleMitsubishi/SampleAppCS/App.config new file mode 100644 index 00000000..bae5d6d8 --- /dev/null +++ b/TestSampleMitsubishi/SampleAppCS/App.config @@ -0,0 +1,6 @@ + + + + + + diff --git a/TestSampleMitsubishi/SampleAppCS/ClassDefine.cs b/TestSampleMitsubishi/SampleAppCS/ClassDefine.cs new file mode 100644 index 00000000..bc842e12 --- /dev/null +++ b/TestSampleMitsubishi/SampleAppCS/ClassDefine.cs @@ -0,0 +1,98 @@ +// ClassDefine.cs : 定義用ヘッダファイル +// +///////////////////////////////////////////////////////////////////////////// +// +// Copyright (C) 2023 MITSUBISHI Electric Corporation All Rights Reserved +// +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SampleAppCS +{ + static class ClassDefine + { + public const String APPLICATION_NAME = "FCSB1224W000 "; //アプリ名 + + public enum SYSTEMTYPE + { + EZNC_SYS_MELDAS700L = 5, //M700L + EZNC_SYS_MELDAS700M = 6, //M700M + EZNC_SYS_MELDASC70 = 7, //C70 + EZNC_SYS_MELDAS800L = 8, //M800L + EZNC_SYS_MELDAS800M = 9, //M800M + EZNC_SYS_CNCC80 = 10, //C80 + } + + public const Int32 EZNC_SYS_MULTI = 0x00010000; //マルチスレッド指定 + + public const Int32 EZNC_PLCAXIS = 255; //PLC軸指定 + + public enum PROGRAMTYPE + { + EZNC_MAINPRG = 0, //メインプログラム + EZNC_SUBPRG = 1, //サブプログラム + } + + public enum MSTBTYPE + { + EZNC_M = 0, //M指令 + EZNC_S = 1, //S指令 + EZNC_T = 2, //T指令 + EZNC_B = 3, //B指令 + } + + public enum PRGNUMTYPE + { + EZNC_PRG_MAXNUM = 0, //登録可能な最大本数 + EZNC_PRG_CURNUM = 1, //現在登録されている本数 + EZNC_PRG_RESTNUM = 2, //登録可能な残本数 + EZNC_PRG_CHARNUM = 3, //登録されている文字数 + EZNC_PRG_RESTCHARNUM = 4, //登録可能な残文字数 + } + + public enum DISKREADTYPE + { + EZNC_DISK_DIRTYPE = 0x10000, //ディレクトリ情報読み出し + EZNC_DISK_COMMENT = 0x04, //コメント情報読み出し + EZNC_DISK_DATE = 0x02, //日付情報読み出し + EZNC_DISK_SIZE = 0x01, //サイズ情報読み出し + } + + public enum ALARMTYPE + { + M_ALM_ALL_ALARM = 0x000, //アラーム種類の区別なし + M_ALM_NC_ALARM = 0x100, //NCアラーム + M_ALM_STOP_CODE = 0x200, //ストップコード + M_ALM_PLC_ALARM = 0x300, //PLCアラームメッセージ + M_ALM_OPE_MSG = 0x400, //オペレータメッセージ + M_ALM_WARNING = 0x500, //ワーニング + } + + public enum DEVICEDATATYPE + { + EZNC_PLC_BIT = 0x11, //ビット型 + EZNC_PLC_BYTE = 0x12, //バイト型 + EZNC_PLC_WORD = 0x14, //ワード型 + EZNC_PLC_DWORD = 0x18, //ダブルワード型 + } + + public enum RESETTYPE + { + EZNC_RESET_NONE = 0, //NCシステムのリセットなし + EZNC_RESET_SIMPLE = 1, //オープン中のNCシステムのリセット + EZNC_RESET_ALL = 2, //全てのNCシステムのリセット + } + + public enum OPENFILETYPE + { + EZNC_FILE_READ = 1, //読み出しモード + EZNC_FILE_WRITE = 2, //書き出しモード + EZNC_FILE_OVERWRITE = 3, //強制上書きモード + EZNC_FILE_OPEN = 1, //書き込みオープンモード + EZNC_FILE_CREATE = 2, //書き込み新規作成モード + } + } +} diff --git a/TestSampleMitsubishi/SampleAppCS/FormSampleApp.Designer.cs b/TestSampleMitsubishi/SampleAppCS/FormSampleApp.Designer.cs new file mode 100644 index 00000000..e4f35da7 --- /dev/null +++ b/TestSampleMitsubishi/SampleAppCS/FormSampleApp.Designer.cs @@ -0,0 +1,742 @@ +namespace SampleAppCS +{ + partial class FormSampleApp + { + /// + /// 必要なデザイナー変数です。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 使用中のリソースをすべてクリーンアップします。 + /// + /// マネージド リソースを破棄する場合は true を指定し、その他の場合は false を指定します。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows フォーム デザイナーで生成されたコード + + /// + /// デザイナー サポートに必要なメソッドです。このメソッドの内容を + /// コード エディターで変更しないでください。 + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.textBoxOpenStatus = new System.Windows.Forms.TextBox(); + this.textBoxConnectStatus = new System.Windows.Forms.TextBox(); + this.buttonExcute = new System.Windows.Forms.Button(); + this.buttonConnect = new System.Windows.Forms.Button(); + this.comboBoxSystemType = new System.Windows.Forms.ComboBox(); + this.label6 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.textBoxTimeOut = new System.Windows.Forms.TextBox(); + this.textBoxMachineNo = new System.Windows.Forms.TextBox(); + this.textBoxIPAddress = new System.Windows.Forms.TextBox(); + this.label3 = new System.Windows.Forms.Label(); + this.textBoxSystemVersion = new System.Windows.Forms.TextBox(); + this.radioButtonEnd = new System.Windows.Forms.RadioButton(); + this.radioButtonStart = new System.Windows.Forms.RadioButton(); + this.label2 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.groupBox3 = new System.Windows.Forms.GroupBox(); + this.textBoxSequenceNo = new System.Windows.Forms.TextBox(); + this.textBoxPrgNo = new System.Windows.Forms.TextBox(); + this.label17 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.groupBox4 = new System.Windows.Forms.GroupBox(); + this.listBoxCurrentProgram = new System.Windows.Forms.ListBox(); + this.groupBox5 = new System.Windows.Forms.GroupBox(); + this.groupBox8 = new System.Windows.Forms.GroupBox(); + this.textBoxMachinePositionZ = new System.Windows.Forms.TextBox(); + this.textBoxMachinePositionY = new System.Windows.Forms.TextBox(); + this.textBoxMachinePositionX = new System.Windows.Forms.TextBox(); + this.label11 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.textBoxWorkPositionZ = new System.Windows.Forms.TextBox(); + this.groupBox7 = new System.Windows.Forms.GroupBox(); + this.textBoxWorkPositionY = new System.Windows.Forms.TextBox(); + this.textBoxWorkPositionX = new System.Windows.Forms.TextBox(); + this.label10 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.groupBox6 = new System.Windows.Forms.GroupBox(); + this.textBoxCurrentPositionZ = new System.Windows.Forms.TextBox(); + this.textBoxCurrentPositionY = new System.Windows.Forms.TextBox(); + this.textBoxCurrentPositionX = new System.Windows.Forms.TextBox(); + this.label15 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.groupBox9 = new System.Windows.Forms.GroupBox(); + this.textBoxAlarmMessage = new System.Windows.Forms.TextBox(); + this.groupBoxErrorCode = new System.Windows.Forms.GroupBox(); + this.textBoxErrorCode = new System.Windows.Forms.TextBox(); + this.timerHighCycle = new System.Windows.Forms.Timer(this.components); + this.timerLowCycle = new System.Windows.Forms.Timer(this.components); + this.groupBox1.SuspendLayout(); + this.groupBox2.SuspendLayout(); + this.groupBox3.SuspendLayout(); + this.groupBox4.SuspendLayout(); + this.groupBox5.SuspendLayout(); + this.groupBox8.SuspendLayout(); + this.groupBox7.SuspendLayout(); + this.groupBox6.SuspendLayout(); + this.groupBox9.SuspendLayout(); + this.groupBoxErrorCode.SuspendLayout(); + this.SuspendLayout(); + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.groupBox2); + this.groupBox1.Controls.Add(this.buttonExcute); + this.groupBox1.Controls.Add(this.buttonConnect); + this.groupBox1.Controls.Add(this.comboBoxSystemType); + this.groupBox1.Controls.Add(this.label6); + this.groupBox1.Controls.Add(this.label5); + this.groupBox1.Controls.Add(this.label4); + this.groupBox1.Controls.Add(this.textBoxTimeOut); + this.groupBox1.Controls.Add(this.textBoxMachineNo); + this.groupBox1.Controls.Add(this.textBoxIPAddress); + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Controls.Add(this.textBoxSystemVersion); + this.groupBox1.Controls.Add(this.radioButtonEnd); + this.groupBox1.Controls.Add(this.radioButtonStart); + this.groupBox1.Controls.Add(this.label2); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Location = new System.Drawing.Point(16, 11); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(442, 178); + this.groupBox1.TabIndex = 0; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "NCカード通信開始/終了"; + // + // groupBox2 + // + this.groupBox2.Controls.Add(this.textBoxOpenStatus); + this.groupBox2.Controls.Add(this.textBoxConnectStatus); + this.groupBox2.Location = new System.Drawing.Point(329, 24); + this.groupBox2.Name = "groupBox2"; + this.groupBox2.Size = new System.Drawing.Size(98, 85); + this.groupBox2.TabIndex = 15; + this.groupBox2.TabStop = false; + this.groupBox2.Text = "通信状態"; + // + // textBoxOpenStatus + // + this.textBoxOpenStatus.BackColor = System.Drawing.Color.Yellow; + this.textBoxOpenStatus.Location = new System.Drawing.Point(8, 50); + this.textBoxOpenStatus.Name = "textBoxOpenStatus"; + this.textBoxOpenStatus.ReadOnly = true; + this.textBoxOpenStatus.Size = new System.Drawing.Size(86, 19); + this.textBoxOpenStatus.TabIndex = 1; + this.textBoxOpenStatus.Text = "通信終了"; + this.textBoxOpenStatus.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // textBoxConnectStatus + // + this.textBoxConnectStatus.BackColor = System.Drawing.Color.Red; + this.textBoxConnectStatus.Location = new System.Drawing.Point(8, 21); + this.textBoxConnectStatus.Name = "textBoxConnectStatus"; + this.textBoxConnectStatus.ReadOnly = true; + this.textBoxConnectStatus.Size = new System.Drawing.Size(86, 19); + this.textBoxConnectStatus.TabIndex = 0; + this.textBoxConnectStatus.Text = "切断"; + this.textBoxConnectStatus.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // buttonOpenClose + // + this.buttonExcute.Enabled = false; + this.buttonExcute.Location = new System.Drawing.Point(352, 115); + this.buttonExcute.Name = "buttonOpenClose"; + this.buttonExcute.Size = new System.Drawing.Size(57, 22); + this.buttonExcute.TabIndex = 14; + this.buttonExcute.Text = "実行"; + this.buttonExcute.UseVisualStyleBackColor = true; + this.buttonExcute.Click += new System.EventHandler(this.ButtonExcute_Click); + // + // buttonConnect + // + this.buttonConnect.Location = new System.Drawing.Point(258, 25); + this.buttonConnect.Name = "buttonConnect"; + this.buttonConnect.Size = new System.Drawing.Size(57, 23); + this.buttonConnect.TabIndex = 13; + this.buttonConnect.Text = "接続"; + this.buttonConnect.UseVisualStyleBackColor = true; + this.buttonConnect.Click += new System.EventHandler(this.ButtonConnect_Click); + // + // comboBoxSystemType + // + this.comboBoxSystemType.FormattingEnabled = true; + this.comboBoxSystemType.Location = new System.Drawing.Point(89, 58); + this.comboBoxSystemType.Name = "comboBoxSystemType"; + this.comboBoxSystemType.Size = new System.Drawing.Size(152, 20); + this.comboBoxSystemType.TabIndex = 12; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(270, 120); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(60, 12); + this.label6.TabIndex = 11; + this.label6.Text = "(×100ms)"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(101, 119); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(60, 12); + this.label5.TabIndex = 10; + this.label5.Text = "TimeOut値"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(101, 97); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(103, 12); + this.label4.TabIndex = 9; + this.label4.Text = "NC制御ユニット番号"; + // + // textBoxTimeOut + // + this.textBoxTimeOut.Location = new System.Drawing.Point(210, 117); + this.textBoxTimeOut.Name = "textBoxTimeOut"; + this.textBoxTimeOut.Size = new System.Drawing.Size(52, 19); + this.textBoxTimeOut.TabIndex = 8; + this.textBoxTimeOut.Text = "50"; + this.textBoxTimeOut.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; + // + // textBoxMachineNo + // + this.textBoxMachineNo.Location = new System.Drawing.Point(210, 92); + this.textBoxMachineNo.Name = "textBoxMachineNo"; + this.textBoxMachineNo.Size = new System.Drawing.Size(52, 19); + this.textBoxMachineNo.TabIndex = 7; + this.textBoxMachineNo.Text = "1"; + this.textBoxMachineNo.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; + // + // textBoxIPAddress + // + this.textBoxIPAddress.Location = new System.Drawing.Point(89, 27); + this.textBoxIPAddress.Name = "textBoxIPAddress"; + this.textBoxIPAddress.Size = new System.Drawing.Size(152, 19); + this.textBoxIPAddress.TabIndex = 6; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(16, 149); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(97, 12); + this.label3.TabIndex = 5; + this.label3.Text = "システム番号/名称"; + // + // textBoxSystemVersion + // + this.textBoxSystemVersion.BackColor = System.Drawing.SystemColors.Info; + this.textBoxSystemVersion.Location = new System.Drawing.Point(135, 146); + this.textBoxSystemVersion.Name = "textBoxSystemVersion"; + this.textBoxSystemVersion.ReadOnly = true; + this.textBoxSystemVersion.Size = new System.Drawing.Size(292, 19); + this.textBoxSystemVersion.TabIndex = 4; + // + // radioButtonEnd + // + this.radioButtonEnd.AutoSize = true; + this.radioButtonEnd.Location = new System.Drawing.Point(17, 117); + this.radioButtonEnd.Name = "radioButtonEnd"; + this.radioButtonEnd.Size = new System.Drawing.Size(71, 16); + this.radioButtonEnd.TabIndex = 3; + this.radioButtonEnd.Text = "通信終了"; + this.radioButtonEnd.UseVisualStyleBackColor = true; + // + // radioButtonStart + // + this.radioButtonStart.AutoSize = true; + this.radioButtonStart.Checked = true; + this.radioButtonStart.Location = new System.Drawing.Point(17, 95); + this.radioButtonStart.Name = "radioButtonStart"; + this.radioButtonStart.Size = new System.Drawing.Size(71, 16); + this.radioButtonStart.TabIndex = 2; + this.radioButtonStart.TabStop = true; + this.radioButtonStart.Text = "通信開始"; + this.radioButtonStart.UseVisualStyleBackColor = true; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(16, 61); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(47, 12); + this.label2.TabIndex = 1; + this.label2.Text = "NCタイプ"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(15, 30); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(51, 12); + this.label1.TabIndex = 0; + this.label1.Text = "IPアドレス"; + // + // groupBox3 + // + this.groupBox3.Controls.Add(this.textBoxSequenceNo); + this.groupBox3.Controls.Add(this.textBoxPrgNo); + this.groupBox3.Controls.Add(this.label17); + this.groupBox3.Controls.Add(this.label16); + this.groupBox3.Controls.Add(this.groupBox4); + this.groupBox3.Location = new System.Drawing.Point(477, 17); + this.groupBox3.Name = "groupBox3"; + this.groupBox3.Size = new System.Drawing.Size(316, 395); + this.groupBox3.TabIndex = 1; + this.groupBox3.TabStop = false; + this.groupBox3.Text = "プログラム"; + // + // textBoxSequenceNo + // + this.textBoxSequenceNo.BackColor = System.Drawing.SystemColors.Info; + this.textBoxSequenceNo.Font = new System.Drawing.Font("MS UI Gothic", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); + this.textBoxSequenceNo.Location = new System.Drawing.Point(115, 347); + this.textBoxSequenceNo.Name = "textBoxSequenceNo"; + this.textBoxSequenceNo.ReadOnly = true; + this.textBoxSequenceNo.Size = new System.Drawing.Size(188, 34); + this.textBoxSequenceNo.TabIndex = 22; + this.textBoxSequenceNo.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; + // + // textBoxPrgNo + // + this.textBoxPrgNo.BackColor = System.Drawing.SystemColors.Info; + this.textBoxPrgNo.Font = new System.Drawing.Font("MS UI Gothic", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); + this.textBoxPrgNo.Location = new System.Drawing.Point(115, 303); + this.textBoxPrgNo.Name = "textBoxPrgNo"; + this.textBoxPrgNo.ReadOnly = true; + this.textBoxPrgNo.Size = new System.Drawing.Size(188, 34); + this.textBoxPrgNo.TabIndex = 21; + this.textBoxPrgNo.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Font = new System.Drawing.Font("MS UI Gothic", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); + this.label17.Location = new System.Drawing.Point(16, 357); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(95, 15); + this.label17.TabIndex = 2; + this.label17.Text = "シーケンス番号"; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Font = new System.Drawing.Font("MS UI Gothic", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); + this.label16.Location = new System.Drawing.Point(16, 314); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(93, 15); + this.label16.TabIndex = 1; + this.label16.Text = "プログラム番号"; + // + // groupBox4 + // + this.groupBox4.Controls.Add(this.listBoxCurrentProgram); + this.groupBox4.Location = new System.Drawing.Point(6, 21); + this.groupBox4.Name = "groupBox4"; + this.groupBox4.Size = new System.Drawing.Size(304, 269); + this.groupBox4.TabIndex = 0; + this.groupBox4.TabStop = false; + this.groupBox4.Text = "実行プログラム表示"; + // + // listBoxCurrentProgram + // + this.listBoxCurrentProgram.BackColor = System.Drawing.SystemColors.Info; + this.listBoxCurrentProgram.FormattingEnabled = true; + this.listBoxCurrentProgram.ItemHeight = 12; + this.listBoxCurrentProgram.Location = new System.Drawing.Point(8, 18); + this.listBoxCurrentProgram.Name = "listBoxCurrentProgram"; + this.listBoxCurrentProgram.Size = new System.Drawing.Size(289, 244); + this.listBoxCurrentProgram.TabIndex = 17; + // + // groupBox5 + // + this.groupBox5.Controls.Add(this.groupBox8); + this.groupBox5.Controls.Add(this.textBoxWorkPositionZ); + this.groupBox5.Controls.Add(this.groupBox7); + this.groupBox5.Controls.Add(this.groupBox6); + this.groupBox5.Location = new System.Drawing.Point(16, 195); + this.groupBox5.Name = "groupBox5"; + this.groupBox5.Size = new System.Drawing.Size(442, 217); + this.groupBox5.TabIndex = 2; + this.groupBox5.TabStop = false; + this.groupBox5.Text = "位置表示"; + // + // groupBox8 + // + this.groupBox8.Controls.Add(this.textBoxMachinePositionZ); + this.groupBox8.Controls.Add(this.textBoxMachinePositionY); + this.groupBox8.Controls.Add(this.textBoxMachinePositionX); + this.groupBox8.Controls.Add(this.label11); + this.groupBox8.Controls.Add(this.label12); + this.groupBox8.Controls.Add(this.label13); + this.groupBox8.Location = new System.Drawing.Point(268, 118); + this.groupBox8.Name = "groupBox8"; + this.groupBox8.Size = new System.Drawing.Size(168, 94); + this.groupBox8.TabIndex = 19; + this.groupBox8.TabStop = false; + this.groupBox8.Text = "機械位置"; + // + // textBoxMachinePositionZ + // + this.textBoxMachinePositionZ.BackColor = System.Drawing.SystemColors.Info; + this.textBoxMachinePositionZ.Location = new System.Drawing.Point(27, 66); + this.textBoxMachinePositionZ.Name = "textBoxMachinePositionZ"; + this.textBoxMachinePositionZ.ReadOnly = true; + this.textBoxMachinePositionZ.Size = new System.Drawing.Size(130, 19); + this.textBoxMachinePositionZ.TabIndex = 20; + // + // textBoxMachinePositionY + // + this.textBoxMachinePositionY.BackColor = System.Drawing.SystemColors.Info; + this.textBoxMachinePositionY.Location = new System.Drawing.Point(27, 41); + this.textBoxMachinePositionY.Name = "textBoxMachinePositionY"; + this.textBoxMachinePositionY.ReadOnly = true; + this.textBoxMachinePositionY.Size = new System.Drawing.Size(130, 19); + this.textBoxMachinePositionY.TabIndex = 17; + // + // textBoxMachinePositionX + // + this.textBoxMachinePositionX.BackColor = System.Drawing.SystemColors.Info; + this.textBoxMachinePositionX.Location = new System.Drawing.Point(27, 17); + this.textBoxMachinePositionX.Name = "textBoxMachinePositionX"; + this.textBoxMachinePositionX.ReadOnly = true; + this.textBoxMachinePositionX.Size = new System.Drawing.Size(130, 19); + this.textBoxMachinePositionX.TabIndex = 16; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(9, 69); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(12, 12); + this.label11.TabIndex = 3; + this.label11.Text = "Z"; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Location = new System.Drawing.Point(9, 44); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(12, 12); + this.label12.TabIndex = 2; + this.label12.Text = "Y"; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(9, 20); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(12, 12); + this.label13.TabIndex = 1; + this.label13.Text = "X"; + // + // textBoxWorkPositionZ + // + this.textBoxWorkPositionZ.BackColor = System.Drawing.SystemColors.Info; + this.textBoxWorkPositionZ.Location = new System.Drawing.Point(295, 83); + this.textBoxWorkPositionZ.Name = "textBoxWorkPositionZ"; + this.textBoxWorkPositionZ.ReadOnly = true; + this.textBoxWorkPositionZ.Size = new System.Drawing.Size(130, 19); + this.textBoxWorkPositionZ.TabIndex = 18; + // + // groupBox7 + // + this.groupBox7.Controls.Add(this.textBoxWorkPositionY); + this.groupBox7.Controls.Add(this.textBoxWorkPositionX); + this.groupBox7.Controls.Add(this.label10); + this.groupBox7.Controls.Add(this.label9); + this.groupBox7.Controls.Add(this.label8); + this.groupBox7.Location = new System.Drawing.Point(268, 18); + this.groupBox7.Name = "groupBox7"; + this.groupBox7.Size = new System.Drawing.Size(168, 94); + this.groupBox7.TabIndex = 1; + this.groupBox7.TabStop = false; + this.groupBox7.Text = "ワーク座標位置"; + // + // textBoxWorkPositionY + // + this.textBoxWorkPositionY.BackColor = System.Drawing.SystemColors.Info; + this.textBoxWorkPositionY.Location = new System.Drawing.Point(27, 41); + this.textBoxWorkPositionY.Name = "textBoxWorkPositionY"; + this.textBoxWorkPositionY.ReadOnly = true; + this.textBoxWorkPositionY.Size = new System.Drawing.Size(130, 19); + this.textBoxWorkPositionY.TabIndex = 17; + // + // textBoxWorkPositionX + // + this.textBoxWorkPositionX.BackColor = System.Drawing.SystemColors.Info; + this.textBoxWorkPositionX.Location = new System.Drawing.Point(27, 17); + this.textBoxWorkPositionX.Name = "textBoxWorkPositionX"; + this.textBoxWorkPositionX.ReadOnly = true; + this.textBoxWorkPositionX.Size = new System.Drawing.Size(130, 19); + this.textBoxWorkPositionX.TabIndex = 16; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(9, 69); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(12, 12); + this.label10.TabIndex = 3; + this.label10.Text = "Z"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(9, 44); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(12, 12); + this.label9.TabIndex = 2; + this.label9.Text = "Y"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(9, 20); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(12, 12); + this.label8.TabIndex = 1; + this.label8.Text = "X"; + // + // groupBox6 + // + this.groupBox6.Controls.Add(this.textBoxCurrentPositionZ); + this.groupBox6.Controls.Add(this.textBoxCurrentPositionY); + this.groupBox6.Controls.Add(this.textBoxCurrentPositionX); + this.groupBox6.Controls.Add(this.label15); + this.groupBox6.Controls.Add(this.label14); + this.groupBox6.Controls.Add(this.label7); + this.groupBox6.Location = new System.Drawing.Point(6, 18); + this.groupBox6.Name = "groupBox6"; + this.groupBox6.Size = new System.Drawing.Size(254, 193); + this.groupBox6.TabIndex = 0; + this.groupBox6.TabStop = false; + this.groupBox6.Text = "現在座標位置"; + // + // textBoxCurrentPositionZ + // + this.textBoxCurrentPositionZ.BackColor = System.Drawing.SystemColors.Info; + this.textBoxCurrentPositionZ.Font = new System.Drawing.Font("MS UI Gothic", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); + this.textBoxCurrentPositionZ.Location = new System.Drawing.Point(58, 137); + this.textBoxCurrentPositionZ.Name = "textBoxCurrentPositionZ"; + this.textBoxCurrentPositionZ.ReadOnly = true; + this.textBoxCurrentPositionZ.Size = new System.Drawing.Size(177, 34); + this.textBoxCurrentPositionZ.TabIndex = 20; + // + // textBoxCurrentPositionY + // + this.textBoxCurrentPositionY.BackColor = System.Drawing.SystemColors.Info; + this.textBoxCurrentPositionY.Font = new System.Drawing.Font("MS UI Gothic", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); + this.textBoxCurrentPositionY.Location = new System.Drawing.Point(58, 82); + this.textBoxCurrentPositionY.Name = "textBoxCurrentPositionY"; + this.textBoxCurrentPositionY.ReadOnly = true; + this.textBoxCurrentPositionY.Size = new System.Drawing.Size(177, 34); + this.textBoxCurrentPositionY.TabIndex = 19; + // + // textBoxCurrentPositionX + // + this.textBoxCurrentPositionX.BackColor = System.Drawing.SystemColors.Info; + this.textBoxCurrentPositionX.Font = new System.Drawing.Font("MS UI Gothic", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); + this.textBoxCurrentPositionX.Location = new System.Drawing.Point(58, 30); + this.textBoxCurrentPositionX.Name = "textBoxCurrentPositionX"; + this.textBoxCurrentPositionX.ReadOnly = true; + this.textBoxCurrentPositionX.Size = new System.Drawing.Size(177, 34); + this.textBoxCurrentPositionX.TabIndex = 18; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Font = new System.Drawing.Font("MS UI Gothic", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); + this.label15.Location = new System.Drawing.Point(16, 133); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(35, 35); + this.label15.TabIndex = 2; + this.label15.Text = "Z"; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Font = new System.Drawing.Font("MS UI Gothic", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); + this.label14.Location = new System.Drawing.Point(16, 82); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(36, 35); + this.label14.TabIndex = 1; + this.label14.Text = "Y"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Font = new System.Drawing.Font("MS UI Gothic", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); + this.label7.Location = new System.Drawing.Point(16, 29); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(36, 35); + this.label7.TabIndex = 0; + this.label7.Text = "X"; + // + // groupBox9 + // + this.groupBox9.Controls.Add(this.textBoxAlarmMessage); + this.groupBox9.Location = new System.Drawing.Point(19, 422); + this.groupBox9.Name = "groupBox9"; + this.groupBox9.Size = new System.Drawing.Size(384, 83); + this.groupBox9.TabIndex = 3; + this.groupBox9.TabStop = false; + this.groupBox9.Text = "アラーム表示"; + // + // textBoxAlarmMessage + // + this.textBoxAlarmMessage.BackColor = System.Drawing.SystemColors.Info; + this.textBoxAlarmMessage.Font = new System.Drawing.Font("MS UI Gothic", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); + this.textBoxAlarmMessage.Location = new System.Drawing.Point(6, 18); + this.textBoxAlarmMessage.Multiline = true; + this.textBoxAlarmMessage.Name = "textBoxAlarmMessage"; + this.textBoxAlarmMessage.ReadOnly = true; + this.textBoxAlarmMessage.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; + this.textBoxAlarmMessage.Size = new System.Drawing.Size(372, 55); + this.textBoxAlarmMessage.TabIndex = 21; + // + // groupBoxErrorCode + // + this.groupBoxErrorCode.Controls.Add(this.textBoxErrorCode); + this.groupBoxErrorCode.Location = new System.Drawing.Point(409, 422); + this.groupBoxErrorCode.Name = "groupBoxErrorCode"; + this.groupBoxErrorCode.Size = new System.Drawing.Size(384, 83); + this.groupBoxErrorCode.TabIndex = 22; + this.groupBoxErrorCode.TabStop = false; + this.groupBoxErrorCode.Text = "Error Code"; + // + // textBoxErrorCode + // + this.textBoxErrorCode.BackColor = System.Drawing.SystemColors.Info; + this.textBoxErrorCode.Font = new System.Drawing.Font("MS UI Gothic", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); + this.textBoxErrorCode.Location = new System.Drawing.Point(6, 18); + this.textBoxErrorCode.Multiline = true; + this.textBoxErrorCode.Name = "textBoxErrorCode"; + this.textBoxErrorCode.ReadOnly = true; + this.textBoxErrorCode.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; + this.textBoxErrorCode.Size = new System.Drawing.Size(372, 55); + this.textBoxErrorCode.TabIndex = 22; + // + // timerHighCycle + // + this.timerHighCycle.Tick += new System.EventHandler(this.TimerHighCycle_Tick); + // + // timerLowCycle + // + this.timerLowCycle.Interval = 1000; + this.timerLowCycle.Tick += new System.EventHandler(this.TimerLowCycle_Tick); + // + // FormSampleApp + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(805, 520); + this.Controls.Add(this.groupBoxErrorCode); + this.Controls.Add(this.groupBox9); + this.Controls.Add(this.groupBox5); + this.Controls.Add(this.groupBox3); + this.Controls.Add(this.groupBox1); + this.Name = "FormSampleApp"; + this.Text = "Sample Application"; + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.groupBox2.ResumeLayout(false); + this.groupBox2.PerformLayout(); + this.groupBox3.ResumeLayout(false); + this.groupBox3.PerformLayout(); + this.groupBox4.ResumeLayout(false); + this.groupBox5.ResumeLayout(false); + this.groupBox5.PerformLayout(); + this.groupBox8.ResumeLayout(false); + this.groupBox8.PerformLayout(); + this.groupBox7.ResumeLayout(false); + this.groupBox7.PerformLayout(); + this.groupBox6.ResumeLayout(false); + this.groupBox6.PerformLayout(); + this.groupBox9.ResumeLayout(false); + this.groupBox9.PerformLayout(); + this.groupBoxErrorCode.ResumeLayout(false); + this.groupBoxErrorCode.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.TextBox textBoxTimeOut; + private System.Windows.Forms.TextBox textBoxMachineNo; + private System.Windows.Forms.TextBox textBoxIPAddress; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox textBoxSystemVersion; + private System.Windows.Forms.RadioButton radioButtonEnd; + private System.Windows.Forms.RadioButton radioButtonStart; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.GroupBox groupBox2; + private System.Windows.Forms.TextBox textBoxOpenStatus; + private System.Windows.Forms.TextBox textBoxConnectStatus; + private System.Windows.Forms.Button buttonExcute; + private System.Windows.Forms.Button buttonConnect; + private System.Windows.Forms.ComboBox comboBoxSystemType; + private System.Windows.Forms.GroupBox groupBox3; + private System.Windows.Forms.GroupBox groupBox4; + private System.Windows.Forms.GroupBox groupBox5; + private System.Windows.Forms.GroupBox groupBox7; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.GroupBox groupBox6; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.GroupBox groupBox8; + private System.Windows.Forms.TextBox textBoxMachinePositionY; + private System.Windows.Forms.TextBox textBoxMachinePositionX; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.TextBox textBoxWorkPositionZ; + private System.Windows.Forms.TextBox textBoxWorkPositionY; + private System.Windows.Forms.TextBox textBoxWorkPositionX; + private System.Windows.Forms.TextBox textBoxSequenceNo; + private System.Windows.Forms.TextBox textBoxPrgNo; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.TextBox textBoxMachinePositionZ; + private System.Windows.Forms.TextBox textBoxCurrentPositionZ; + private System.Windows.Forms.TextBox textBoxCurrentPositionY; + private System.Windows.Forms.TextBox textBoxCurrentPositionX; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.GroupBox groupBox9; + private System.Windows.Forms.TextBox textBoxAlarmMessage; + private System.Windows.Forms.GroupBox groupBoxErrorCode; + private System.Windows.Forms.TextBox textBoxErrorCode; + private System.Windows.Forms.Timer timerHighCycle; + private System.Windows.Forms.Timer timerLowCycle; + private System.Windows.Forms.ListBox listBoxCurrentProgram; + } +} + diff --git a/TestSampleMitsubishi/SampleAppCS/FormSampleApp.cs b/TestSampleMitsubishi/SampleAppCS/FormSampleApp.cs new file mode 100644 index 00000000..728ae95f --- /dev/null +++ b/TestSampleMitsubishi/SampleAppCS/FormSampleApp.cs @@ -0,0 +1,564 @@ +// FormSampleApp.cs : アプリケーション用クラスの機能定義ファイル +// +///////////////////////////////////////////////////////////////////////////// +// +// Copyright (C) 2023 MITSUBISHI Electric Corporation All Rights Reserved +// +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using static SampleAppCS.ClassDefine; + +namespace SampleAppCS +{ + public partial class FormSampleApp : Form + { + private EZNCAUTLib.DispEZNcCommunication oEZNcAutCom = null; + private Boolean bConnectStatus = false; + private Boolean bCommunicateStatus = false; + //Open3の第4引数は"EZNC_LOCALHOST"固定 + private String strHostName = "EZNC_LOCALHOST"; + + //コンストラクタ + public FormSampleApp() + { + InitializeComponent(); + + //アプリ名の登録 + this.Text = APPLICATION_NAME + this.Text; + groupBoxErrorCode.Text = APPLICATION_NAME + groupBoxErrorCode.Text; + + //NCタイプの登録(C70/C80除く) + foreach (String stType in Enum.GetNames(typeof(SYSTEMTYPE))) + { + if ((stType != "EZNC_SYS_MELDASC70") && (stType != "EZNC_SYS_CNCC80")) + { + comboBoxSystemType.Items.Add(stType); + } + } + } + + //ErrorCodeの出力 + private void CheckError(String strMethod, Int32 lResult) + { + if (lResult != 0) + { + Int32 lBase = 16; + + textBoxErrorCode.Text = strMethod + " failed. " + "0x" + + Convert.ToString(lResult, lBase) + Environment.NewLine + textBoxErrorCode.Text; + } + } + + //「接続/切断」ボタン押下時の処理 + private void ButtonConnect_Click(object sender, EventArgs e) + { + //M700/M800シリーズではポート番号に683という固定値を指定 + Int32 lPort = 683; + Int32 lNCType; + Int32 lResult; + Boolean bResult; + String strIPAddress; + + //IPアドレスの取得 + if (textBoxIPAddress.Text == "") + { + MessageBox.Show("IPアドレスが不正です。"); + return; + } + else + { + strIPAddress = textBoxIPAddress.Text; + } + + //NCタイプの取得 + bResult = Enum.TryParse(comboBoxSystemType.Text, out SYSTEMTYPE sysNCType); + if (bResult == false) + { + MessageBox.Show("NCタイプが不正です。"); + return; + } + + if (oEZNcAutCom == null) + { + //オブジェクトの作成 + oEZNcAutCom = new EZNCAUTLib.DispEZNcCommunication(); + + //通信回線のオープン + if (sysNCType == SYSTEMTYPE.EZNC_SYS_CNCC80) + { + //下記の設定は一例のため、接続環境に合わせた設定が必要 + lResult = oEZNcAutCom.SetMelsecProtocol(0x00, 0xFF, 0x00, 0x00, 0x3E1, 0x1018, + 0x1002, 0x01, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, strIPAddress, 0x04, + Int32.Parse(textBoxTimeOut.Text), 0x00, 0x00, 0x00, 5006, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01); + CheckError("SetMelsecProtocol", lResult); + } + else if (sysNCType == SYSTEMTYPE.EZNC_SYS_MELDASC70) + { + //下記の設定は一例のため、接続環境に合わせた設定が必要 + lResult = oEZNcAutCom.SetMelsecProtocol(0x01, 0x01, 0x00, 0x00, 0x3E1, 0x0901, + 0x1A, 0x01, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, strIPAddress, 0x04, + Int32.Parse(textBoxTimeOut.Text), 0x00, 0x01, 0x04, 5001, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01); + CheckError("SetMelsecProtocol", lResult); + } + else + { + //TCPIP通信設定 + lResult = oEZNcAutCom.SetTCPIPProtocol(strIPAddress, lPort); + CheckError("SetTCPIPProtocol", lResult); + } + + if (oEZNcAutCom != null) + { + //マルチスレッドの有効化 + lNCType = (Int32)sysNCType | EZNC_SYS_MULTI; + + //通信回線のオープン + lResult = oEZNcAutCom.Open3(lNCType, Int32.Parse(textBoxMachineNo.Text), + Int32.Parse(textBoxTimeOut.Text), strHostName); + CheckError("Open", lResult); + + if (lResult == 0) + { + //接続の設定 + bConnectStatus = true; + + //通信回線のクローズ + if (sysNCType == SYSTEMTYPE.EZNC_SYS_CNCC80 || + sysNCType == SYSTEMTYPE.EZNC_SYS_MELDASC70) + { + lResult = oEZNcAutCom.Close(); + } + else + { + lResult = oEZNcAutCom.Close2((Int32)RESETTYPE.EZNC_RESET_SIMPLE); + } + CheckError("Close", lResult); + } + else + { + //オブジェクトの解放 + oEZNcAutCom = null; + MessageBox.Show("ホスト名(IPアドレス)またはNCタイプが不正です。"); + } + } + } + else + { + if (bCommunicateStatus == true) + { + //通信回線のクローズ + if (sysNCType == SYSTEMTYPE.EZNC_SYS_CNCC80 || + sysNCType == SYSTEMTYPE.EZNC_SYS_MELDASC70) + { + lResult = oEZNcAutCom.Close(); + } + else + { + lResult = oEZNcAutCom.Close2((Int32)RESETTYPE.EZNC_RESET_SIMPLE); + } + CheckError("Close", lResult); + + //通信終了の設定 + bCommunicateStatus = false; + + //周期処理の終了 + timerHighCycle.Enabled = false; + timerLowCycle.Enabled = false; + } + + //切断の設定 + bConnectStatus = false; + + //オブジェクトの解放 + oEZNcAutCom = null; + + //GUI状態の初期化 + ResetGUIStatus(); + } + + //GUI状態の更新 + UpdateGUIStatus(); + } + + //「実行」ボタン押下時の処理 + private void ButtonExcute_Click(object sender, EventArgs e) + { + Int32 lNCType; + Int32 lAxisNo = 0; + Int32 lIndex = 0; + Int32 lResult; + String strIPAddress; + + //IPアドレスの取得 + if (textBoxIPAddress.Text == "") + { + MessageBox.Show("IPアドレスが不正です。"); + return; + } + else + { + strIPAddress = textBoxIPAddress.Text; + } + + //NCタイプの取得 + Enum.TryParse(comboBoxSystemType.Text, out SYSTEMTYPE sysNCType); + + if (radioButtonStart.Checked == true) + { + //マルチスレッドの有効化 + lNCType = (Int32)sysNCType | EZNC_SYS_MULTI; + + //通信回線のオープン + lResult = oEZNcAutCom.Open3(lNCType, Int32.Parse(textBoxMachineNo.Text), + Int32.Parse(textBoxTimeOut.Text), strHostName); + CheckError("Open", lResult); + + if (lResult == 0) + { + //通信開始の設定 + bCommunicateStatus = true; + + //周期処理の開始 + timerHighCycle.Enabled = true; + timerLowCycle.Enabled = true; + + //NCシステム番号の取得 + lResult = oEZNcAutCom.System_GetVersion(lAxisNo, lIndex, out String strNCVersion); + CheckError("GetVersion", lResult); + textBoxSystemVersion.Text = strNCVersion; + } + } + else + { + //通信回線のクローズ + if (sysNCType == SYSTEMTYPE.EZNC_SYS_CNCC80 || + sysNCType == SYSTEMTYPE.EZNC_SYS_MELDASC70) + { + lResult = oEZNcAutCom.Close(); + } + else + { + lResult = oEZNcAutCom.Close2((Int32)RESETTYPE.EZNC_RESET_SIMPLE); + } + CheckError("Close", lResult); + + if (lResult == 0) + { + //通信終了の設定 + bCommunicateStatus = false; + + //周期処理の終了 + timerHighCycle.Enabled = false; + timerLowCycle.Enabled = false; + } + } + + //GUI状態の更新 + UpdateGUIStatus(); + } + + //周期処理(0.1秒周期) + private void TimerHighCycle_Tick(object sender, EventArgs e) + { + //位置情報の取得 + GetPosition(); + } + + //周期処理(1秒周期) + private void TimerLowCycle_Tick(object sender, EventArgs e) + { + //アラーム情報の取得 + GetAlarm(); + + //プログラム情報の取得 + GetProgramData(); + } + + //位置情報の取得 + private void GetPosition() + { + Int32 lResult; + Double dPosition; + + //NCタイプの取得 + Enum.TryParse(comboBoxSystemType.Text, out SYSTEMTYPE sysNCType); + + //現在座標位置の取得 + if (sysNCType == SYSTEMTYPE.EZNC_SYS_CNCC80) + { + textBoxCurrentPositionX.Text = "Not supported"; + textBoxCurrentPositionY.Text = "Not supported"; + textBoxCurrentPositionZ.Text = "Not supported"; + } + else + { + lResult = oEZNcAutCom.Position_GetCurrentPosition(1, out dPosition); + CheckError("GetCurrentPosition", lResult); + if (lResult == 0) + { + textBoxCurrentPositionX.Text = dPosition.ToString("F3"); + } + + lResult = oEZNcAutCom.Position_GetCurrentPosition(2, out dPosition); + CheckError("GetCurrentPosition", lResult); + if (lResult == 0) + { + textBoxCurrentPositionY.Text = dPosition.ToString("F3"); + } + + lResult = oEZNcAutCom.Position_GetCurrentPosition(3, out dPosition); + CheckError("GetCurrentPosition", lResult); + if (lResult == 0) + { + textBoxCurrentPositionZ.Text = dPosition.ToString("F3"); + } + } + + //ワーク座標位置の取得 + if (sysNCType == SYSTEMTYPE.EZNC_SYS_CNCC80) + { + textBoxWorkPositionX.Text = "Not supported"; + textBoxWorkPositionY.Text = "Not supported"; + textBoxWorkPositionZ.Text = "Not supported"; + } + else + { + lResult = oEZNcAutCom.Position_GetWorkPosition(1, out dPosition, 0); + CheckError("GetWorkPosition", lResult); + if (lResult == 0) + { + textBoxWorkPositionX.Text = dPosition.ToString("F3"); + } + + lResult = oEZNcAutCom.Position_GetWorkPosition(2, out dPosition, 0); + CheckError("GetWorkPosition", lResult); + if (lResult == 0) + { + textBoxWorkPositionY.Text = dPosition.ToString("F3"); + } + + lResult = oEZNcAutCom.Position_GetWorkPosition(3, out dPosition, 0); + CheckError("GetWorkPosition", lResult); + if (lResult == 0) + { + textBoxWorkPositionZ.Text = dPosition.ToString("F3"); + } + } + + //機械座標位置の取得 + lResult = oEZNcAutCom.Position_GetMachinePosition(1, out dPosition, 0); + CheckError("GetMachinePosition", lResult); + if (lResult == 0) + { + textBoxMachinePositionX.Text = dPosition.ToString("F3"); + } + + lResult = oEZNcAutCom.Position_GetMachinePosition(2, out dPosition, 0); + CheckError("GetMachinePosition", lResult); + if (lResult == 0) + { + textBoxMachinePositionY.Text = dPosition.ToString("F3"); + } + + lResult = oEZNcAutCom.Position_GetMachinePosition(3, out dPosition, 0); + CheckError("GetMachinePosition", lResult); + if (lResult == 0) + { + textBoxMachinePositionZ.Text = dPosition.ToString("F3"); + } + } + + //アラーム情報の取得 + private void GetAlarm() + { + Int32 lMessageNumber = 3; + Int32 lResult; + String strAlarmMsg; + Array lSystem = Array.CreateInstance(typeof(Int32), lMessageNumber); + Array lWarning = Array.CreateInstance(typeof(Int32), lMessageNumber); + Array lAlarmType = Array.CreateInstance(typeof(Int32), lMessageNumber); + + //アラーム表示のテキスト消去 + textBoxAlarmMessage.ResetText(); + + //NCタイプの取得 + Enum.TryParse(comboBoxSystemType.Text, out SYSTEMTYPE sysNCType); + + //アラーム情報の取得 + if (sysNCType == SYSTEMTYPE.EZNC_SYS_MELDASC70) + { + lResult = oEZNcAutCom.System_GetAlarm2(lMessageNumber, + (Int32)ALARMTYPE.M_ALM_ALL_ALARM, out strAlarmMsg); + } + else + { + lResult = oEZNcAutCom.System_GetAlarm3(lMessageNumber, (Int32)ALARMTYPE.M_ALM_ALL_ALARM, + ref lSystem, ref lWarning, ref lAlarmType, out strAlarmMsg); + } + CheckError("GetAlarm", lResult); + + //アラーム情報の出力 + if ((lResult == 0) && (strAlarmMsg != "")) + { + //改行コードを区切りとして文字列を分割 + String[] strAlarmMsgArray = strAlarmMsg.Split(new[] { "\r\n" }, StringSplitOptions.None); + + for (Int32 i = 0; i < strAlarmMsgArray.Length; i++) + { + //アラームメッセージの出力(NC警告メッセージの場合はWaringという文字列を付与) + if (Int32.Parse(lWarning.GetValue(i).ToString()) != 0) + { + textBoxAlarmMessage.Text = textBoxAlarmMessage.Text + "(Warning)" + + strAlarmMsgArray[i] + Environment.NewLine; + } + else + { + textBoxAlarmMessage.Text = textBoxAlarmMessage.Text + + strAlarmMsgArray[i] + Environment.NewLine; + } + } + } + } + + //プログラム情報の取得 + private void GetProgramData() + { + Int32 lBlockNumber = 10; + Int32 lCountSize; + Int32 lCountStart = 0; + Int32 lResult; + String strProgramDataSubstring; + + //NCタイプの取得 + Enum.TryParse(comboBoxSystemType.Text, out SYSTEMTYPE sysNCType); + + //実行プログラム表示のテキスト消去 + listBoxCurrentProgram.Items.Clear(); + + //サポート対象外の場合の処理 + if (sysNCType == SYSTEMTYPE.EZNC_SYS_CNCC80) + { + listBoxCurrentProgram.Items.Add("Not supported"); + textBoxPrgNo.Text = "Not supported"; + textBoxSequenceNo.Text = "Not supported"; + return; + } + + //プログラムブロック読み出し + lResult = oEZNcAutCom.Program_CurrentBlockRead(lBlockNumber, + out String strProgramData, out Int32 lCurrentBlockNumber); + CheckError("CurrentBlockRead", lResult); + + //プログラム情報の出力 + if (lResult == 0) + { + //改行コードを区切りとして文字列をリストに追加 + lCountSize = strProgramData.IndexOf("\n"); + while (lCountSize > 0) + { + strProgramDataSubstring = strProgramData.Substring(lCountStart, + lCountSize - lCountStart - 1); + listBoxCurrentProgram.Items.Add(strProgramDataSubstring); + + lCountStart = lCountSize + 1; + lCountSize = strProgramData.IndexOf("\n", lCountStart); + } + + //強調行の指定 + if (lCurrentBlockNumber == 1) + { + //1ブロック目を強調 + listBoxCurrentProgram.SelectedIndex = 0; + } + else if (lCurrentBlockNumber == 2) + { + //2ブロック目を強調 + listBoxCurrentProgram.SelectedIndex = 1; + } + } + + //プログラム番号の取得 + lResult = oEZNcAutCom.Program_GetProgramNumber2((Int32)PROGRAMTYPE.EZNC_MAINPRG, out String strProgramNo); + CheckError("GetProgramNumber", lResult); + if(lResult == 0) + { + textBoxPrgNo.Text = strProgramNo; + } + + //シーケンス番号の取得 + lResult = oEZNcAutCom.Program_GetSequenceNumber((Int32)PROGRAMTYPE.EZNC_MAINPRG, out Int32 lSequenceNo); + CheckError("GetSequenceNumber", lResult); + if (lResult == 0) + { + textBoxSequenceNo.Text = lSequenceNo.ToString(); + } + } + + //GUI状態の更新 + private void UpdateGUIStatus() + { + //接続中の場合 + if(bConnectStatus == true) + { + textBoxConnectStatus.Text = "接続"; + textBoxConnectStatus.BackColor = Color.LightBlue; + buttonConnect.Text = "切断"; + textBoxIPAddress.Enabled = false; + comboBoxSystemType.Enabled = false; + buttonExcute.Enabled = true; + + //通信開始中の場合 + if(bCommunicateStatus == true) + { + textBoxOpenStatus.Text = "通信開始"; + textBoxOpenStatus.BackColor = Color.LightBlue; + } + //通信終了中の場合 + else + { + textBoxOpenStatus.Text = "通信終了"; + textBoxOpenStatus.BackColor = Color.Yellow; + } + } + //切断中の場合 + else + { + textBoxConnectStatus.Text = "切断"; + textBoxConnectStatus.BackColor = Color.Red; + buttonConnect.Text = "接続"; + textBoxOpenStatus.Text = "通信終了"; + textBoxOpenStatus.BackColor = Color.Yellow; + textBoxIPAddress.Enabled = true; + comboBoxSystemType.Enabled = true; + buttonExcute.Enabled = false; + } + } + + //GUI状態の初期化 + private void ResetGUIStatus() + { + textBoxSystemVersion.ResetText(); + textBoxCurrentPositionX.ResetText(); + textBoxCurrentPositionY.ResetText(); + textBoxCurrentPositionZ.ResetText(); + textBoxWorkPositionX.ResetText(); + textBoxWorkPositionY.ResetText(); + textBoxWorkPositionZ.ResetText(); + textBoxMachinePositionX.ResetText(); + textBoxMachinePositionY.ResetText(); + textBoxMachinePositionZ.ResetText(); + listBoxCurrentProgram.Items.Clear(); + textBoxPrgNo.ResetText(); + textBoxSequenceNo.ResetText(); + textBoxAlarmMessage.ResetText(); + textBoxErrorCode.ResetText(); + } + } +} diff --git a/TestSampleMitsubishi/SampleAppCS/FormSampleApp.resx b/TestSampleMitsubishi/SampleAppCS/FormSampleApp.resx new file mode 100644 index 00000000..b6a1d83a --- /dev/null +++ b/TestSampleMitsubishi/SampleAppCS/FormSampleApp.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + + 152, 17 + + \ No newline at end of file diff --git a/TestSampleMitsubishi/SampleAppCS/Program.cs b/TestSampleMitsubishi/SampleAppCS/Program.cs new file mode 100644 index 00000000..044b2957 --- /dev/null +++ b/TestSampleMitsubishi/SampleAppCS/Program.cs @@ -0,0 +1,28 @@ +// Program.cs : アプリケーションのメインエントリポイント +// +///////////////////////////////////////////////////////////////////////////// +// +// Copyright (C) 2023 MITSUBISHI Electric Corporation All Rights Reserved +// +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace SampleAppCS +{ + static class Program + { + /// + /// アプリケーションのメイン エントリ ポイントです。 + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new FormSampleApp()); + } + } +} diff --git a/TestSampleMitsubishi/SampleAppCS/Properties/AssemblyInfo.cs b/TestSampleMitsubishi/SampleAppCS/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..d33b7e35 --- /dev/null +++ b/TestSampleMitsubishi/SampleAppCS/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。 +// アセンブリに関連付けられている情報を変更するには、 +// これらの属性値を変更してください。 +[assembly: AssemblyTitle("SampleAppCS")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("SampleAppCS")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// ComVisible を false に設定すると、このアセンブリ内の型は COM コンポーネントから +// 参照できなくなります。COM からこのアセンブリ内の型にアクセスする必要がある場合は、 +// その型の ComVisible 属性を true に設定してください。 +[assembly: ComVisible(false)] + +// このプロジェクトが COM に公開される場合、次の GUID が typelib の ID になります +[assembly: Guid("3d20d5e3-7db0-495c-89e0-df6968879d29")] + +// アセンブリのバージョン情報は次の 4 つの値で構成されています: +// +// メジャー バージョン +// マイナー バージョン +// ビルド番号 +// Revision +// +// すべての値を指定するか、次を使用してビルド番号とリビジョン番号を既定に設定できます +// 既定値にすることができます: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/TestSampleMitsubishi/SampleAppCS/Properties/Resources.Designer.cs b/TestSampleMitsubishi/SampleAppCS/Properties/Resources.Designer.cs new file mode 100644 index 00000000..7c6b046a --- /dev/null +++ b/TestSampleMitsubishi/SampleAppCS/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// このコードはツールによって生成されました。 +// ランタイム バージョン:4.0.30319.42000 +// +// このファイルへの変更は、以下の状況下で不正な動作の原因になったり、 +// コードが再生成されるときに損失したりします。 +// +//------------------------------------------------------------------------------ + +namespace SampleAppCS.Properties { + using System; + + + /// + /// ローカライズされた文字列などを検索するための、厳密に型指定されたリソース クラスです。 + /// + // このクラスは StronglyTypedResourceBuilder クラスが ResGen + // または Visual Studio のようなツールを使用して自動生成されました。 + // メンバーを追加または削除するには、.ResX ファイルを編集して、/str オプションと共に + // ResGen を実行し直すか、または VS プロジェクトをビルドし直します。 + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// このクラスで使用されているキャッシュされた ResourceManager インスタンスを返します。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SampleAppCS.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// すべてについて、現在のスレッドの CurrentUICulture プロパティをオーバーライドします + /// 現在のスレッドの CurrentUICulture プロパティをオーバーライドします。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/TestSampleMitsubishi/SampleAppCS/Properties/Resources.resx b/TestSampleMitsubishi/SampleAppCS/Properties/Resources.resx new file mode 100644 index 00000000..af7dbebb --- /dev/null +++ b/TestSampleMitsubishi/SampleAppCS/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/TestSampleMitsubishi/SampleAppCS/Properties/Settings.Designer.cs b/TestSampleMitsubishi/SampleAppCS/Properties/Settings.Designer.cs new file mode 100644 index 00000000..be014109 --- /dev/null +++ b/TestSampleMitsubishi/SampleAppCS/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// このコードはツールによって生成されました。 +// ランタイム バージョン:4.0.30319.42000 +// +// このファイルへの変更は、以下の状況下で不正な動作の原因になったり、 +// コードが再生成されるときに損失したりします。 +// +//------------------------------------------------------------------------------ + +namespace SampleAppCS.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + } +} diff --git a/TestSampleMitsubishi/SampleAppCS/Properties/Settings.settings b/TestSampleMitsubishi/SampleAppCS/Properties/Settings.settings new file mode 100644 index 00000000..39645652 --- /dev/null +++ b/TestSampleMitsubishi/SampleAppCS/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/TestSampleMitsubishi/SampleAppCS/SampleAppCS.csproj b/TestSampleMitsubishi/SampleAppCS/SampleAppCS.csproj new file mode 100644 index 00000000..414baf0a --- /dev/null +++ b/TestSampleMitsubishi/SampleAppCS/SampleAppCS.csproj @@ -0,0 +1,112 @@ + + + + + Debug + AnyCPU + {3D20D5E3-7DB0-495C-89E0-DF6968879D29} + WinExe + SampleAppCS + SampleAppCS + v4.6.1 + 512 + true + true + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + true + + + true + bin\Remote_DEBUG\ + DEBUG;TRACE + full + AnyCPU + 7.3 + prompt + true + + + + + + + + + + + + + + + + + + Form + + + FormSampleApp.cs + + + + + FormSampleApp.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + True + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + + {1B93D6AF-FD32-4281-83FE-533F666FAE6C} + 1 + 0 + 0 + tlbimp + False + True + + + + + "$(ProjectDir)postBuildTgt.bat" "$(ConfigurationName)" "$(TargetDir)" + + \ No newline at end of file diff --git a/TestSampleMitsubishi/SampleAppCS/postBuildTgt.bat b/TestSampleMitsubishi/SampleAppCS/postBuildTgt.bat new file mode 100644 index 00000000..2414d36e --- /dev/null +++ b/TestSampleMitsubishi/SampleAppCS/postBuildTgt.bat @@ -0,0 +1,69 @@ +@echo off +echo Effettua pulizia post build: configurazione %1. directory %2 + +RD /S /Q %2"\lib\da" +RD /S /Q %2"\lib\de" +RD /S /Q %2"\lib\es" +RD /S /Q %2"\lib\fr" +RD /S /Q %2"\lib\it" +RD /S /Q %2"\lib\ja-JP" +RD /S /Q %2"\lib\ko" +RD /S /Q %2"\lib\nl" +RD /S /Q %2"\lib\pl" +RD /S /Q %2"\lib\pt" +RD /S /Q %2"\lib\ru" +RD /S /Q %2"\lib\sv" +RD /S /Q %2"\lib\tr" +RD /S /Q %2"\lib\zh" + +MOVE /Y %2"da" %2"lib\" +MOVE /Y %2"de" %2"lib\" +MOVE /Y %2"es" %2"lib\" +MOVE /Y %2"fr" %2"lib\" +MOVE /Y %2"it" %2"lib\" +MOVE /Y %2"ja-JP" %2"lib\" +MOVE /Y %2"ko" %2"lib\" +MOVE /Y %2"nl" %2"lib\" +MOVE /Y %2"pl" %2"lib\" +MOVE /Y %2"pt" %2"lib\" +MOVE /Y %2"ru" %2"lib\" +MOVE /Y %2"sv" %2"lib\" +MOVE /Y %2"tr" %2"lib\" +MOVE /Y %2"zh" %2"lib\" + + +if %1 == "Release" goto Release +if %1 == "Debug" goto Debug +if %1 == "Remote_DEBUG" goto RemoteDebug + +:Release +REM INIZIO eliminando i files pdb +del /S %2"*.pdb"" +del /S %2"*.xml"" +del /S %2"lib/*.pdb"" +echo Release: eliminato pdb + xml!!! +goto END + +:Debug +echo Debug: nulla da eliminare + +REM copia script verso server remoto +REM ROBOCOPY . \\10.150.0.1\Steamware\IOB-WIN-NEXT-DEB /MIR + +goto END + + +:RemoteDebug +REM copia script verso server remoto +REM echo Debug remoto: effettuo robocopy sync (verificare remote per cliente) + +REM IOB-WIN-SIM +REM ROBOCOPY . \\IOB-WIN-SIMULA\Steamware\IOB-WIN-NEXT-DEB /MIR + +REM IOBVPN4MACHINE +ROBOCOPY . \\10.51.90.6\Steamware\SampleAppCS /MIR + +goto END + +:END +echo Fatto! \ No newline at end of file