From 34a4a5be8be0a2ee342619e109f851aa3dd13211 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 4 Dec 2019 09:44:34 +0100 Subject: [PATCH] Logging x decodifica stato macchina... --- IOB-WIN/IobMTC.cs | 11 ++++++++++- Jenkinsfile | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/IOB-WIN/IobMTC.cs b/IOB-WIN/IobMTC.cs index c5b60e86..79a390bd 100644 --- a/IOB-WIN/IobMTC.cs +++ b/IOB-WIN/IobMTC.cs @@ -173,6 +173,8 @@ namespace IOB_WIN private short doConnect() { short esitoLink = 0; + // reset memoria dataItem.. + dataItemMem = new Dictionary(); // avvio un oggetto di comunicazione MTC #if false MTC_ref = new MTConnectClient($"http://{cIobConf.cncIpAddr}:{port}"); @@ -399,7 +401,7 @@ namespace IOB_WIN thresholdDeadBand = threshDBand, samplePeriod = dSamplePeriod }; - // lo g x capire COME ho chiamato alcune cosette... + // log x capire COME ho chiamato alcune cosette... if (dataItem.Id.Contains("EXE_MODE") || dataItem.Id.Contains("RUN_MODE") || dataItem.Id.Contains("POWER") || dataItem.Id.EndsWith("_Status")) { lgInfo($"DEBUG DATA | dataItem.Id : {dataItem.Id}"); @@ -1004,6 +1006,12 @@ namespace IOB_WIN //lgError($"Eccezione in decodifica UnOp_Status: {Environment.NewLine}{exc}"); } + // log! + if (verboseLog) + { + lgInfo($"Stato variabili: currRun: {currRun} | currExe: {currExe} | currUnOpStatus: {currUnOpStatus}"); + } + // controllo lavora... if (currRun == "AUTOMATIC" || currRun == "SEMI_AUTO") { @@ -1015,6 +1023,7 @@ namespace IOB_WIN B_input += (1 << 1); } } + } // se ho almeno 1 allarme E NON SONO IN AUTO --> ALARM! else if (hasError) diff --git a/Jenkinsfile b/Jenkinsfile index 672b01f3..fdfe5250 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,7 +16,7 @@ pipeline { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=562']) { + withEnv(['NEXT_BUILD_NUMBER=563']) { // env.versionNumber = VersionNumber(versionNumberString : '2.6.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true) env.versionNumber = VersionNumber(versionNumberString : '2.6.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') env.APP_NAME = 'MAPO-IOB-WIN'