diff --git a/IOB-WIN/IobFanuc.cs b/IOB-WIN/IobFanuc.cs
index ab5b26ab..b4a8d3be 100644
--- a/IOB-WIN/IobFanuc.cs
+++ b/IOB-WIN/IobFanuc.cs
@@ -226,7 +226,7 @@ namespace IOB_WIN
{
if (cIobConf.optPar["PZCOUNT_MODE"].StartsWith("STD"))
{
- pzCntReload();
+ pzCntReload(true);
// refresh associazione Macchina - IOB
sendM2IOB();
// per adesso imposto lettura fanuc == contapezzi (poi farà vera lettura...)
diff --git a/IOB-WIN/IobGeneric.cs b/IOB-WIN/IobGeneric.cs
index cb10bd9a..c9afbbbe 100644
--- a/IOB-WIN/IobGeneric.cs
+++ b/IOB-WIN/IobGeneric.cs
@@ -472,7 +472,8 @@ namespace IOB_WIN
///
/// Effettua rilettura del contapezzi dal server MP/IO
///
- protected void pzCntReload()
+ /// Forza rilettura da DB tempi ciclo rilevati
+ protected void pzCntReload(bool forceCountRec)
{
// legge da IO server ULTIMO valore CONTPEZZI al riavvio...
string currServerCount = "";
@@ -480,7 +481,7 @@ namespace IOB_WIN
if (checkServerAlive)
{
// se ho valori in coda da trasmettere uso dati REDIS
- if (QueueIN.Count > 0)
+ if (QueueIN.Count > 0 && !forceCountRec)
{
currServerCount = utils.callUrl(urlGetPzCount);
lgInfo("Lettura contapezzi dall'url {0}", urlGetPzCount);
@@ -668,7 +669,7 @@ namespace IOB_WIN
if (utils.CRB("enableContapezzi"))
{
// rilettura contapezzi da server... SE ABILITATA
- pzCntReload();
+ pzCntReload(false);
// refresh associazione Macchina - IOB
sendM2IOB();
}
diff --git a/IOB-WIN/IobKawasaki.cs b/IOB-WIN/IobKawasaki.cs
index ed9961dd..e85110d2 100644
--- a/IOB-WIN/IobKawasaki.cs
+++ b/IOB-WIN/IobKawasaki.cs
@@ -219,7 +219,7 @@ namespace IOB_WIN
{
if (cIobConf.optPar["PZCOUNT_MODE"].StartsWith("STD"))
{
- pzCntReload();
+ pzCntReload(true);
// refresh associazione Macchina - IOB
sendM2IOB();
// per adesso imposto lettura fanuc == contapezzi (poi farà vera lettura...)
diff --git a/IOB-WIN/IobOSAI.cs b/IOB-WIN/IobOSAI.cs
index c9109c5b..5f33216c 100644
--- a/IOB-WIN/IobOSAI.cs
+++ b/IOB-WIN/IobOSAI.cs
@@ -127,7 +127,7 @@ namespace IOB_WIN
{
if (cIobConf.optPar["PZCOUNT_MODE"].StartsWith("OVAR"))
{
- pzCntReload();
+ pzCntReload(true);
// refresh associazione Macchina - IOB
sendM2IOB();
// per adesso imposto lettura dal CNC == contapezzi (poi farà vera lettura...)
diff --git a/IOB-WIN/IobSiemens.cs b/IOB-WIN/IobSiemens.cs
index 154d62d3..45cc6720 100644
--- a/IOB-WIN/IobSiemens.cs
+++ b/IOB-WIN/IobSiemens.cs
@@ -309,7 +309,7 @@ namespace IOB_WIN
{
if (cIobConf.optPar["PZCOUNT_MODE"].StartsWith("STD"))
{
- pzCntReload();
+ pzCntReload(true);
// refresh associazione Macchina - IOB
sendM2IOB();
// per adesso imposto lettura fanuc == contapezzi (poi farà vera lettura...)
diff --git a/IOB-WIN/IobSiemensTorri.cs b/IOB-WIN/IobSiemensTorri.cs
index e64866ea..65c62882 100644
--- a/IOB-WIN/IobSiemensTorri.cs
+++ b/IOB-WIN/IobSiemensTorri.cs
@@ -326,7 +326,7 @@ namespace IOB_WIN
{
if (cIobConf.optPar["PZCOUNT_MODE"].StartsWith("STD"))
{
- pzCntReload();
+ pzCntReload(true);
// refresh associazione Macchina - IOB
sendM2IOB();
// per adesso imposto lettura fanuc == contapezzi (poi farà vera lettura...)
diff --git a/Jenkinsfile b/Jenkinsfile
index f8e88976..94c0ea10 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -16,7 +16,7 @@ pipeline {
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
script {
- withEnv(['NEXT_BUILD_NUMBER=325']) {
+ withEnv(['NEXT_BUILD_NUMBER=326']) {
// env.versionNumber = VersionNumber(versionNumberString : '1.18.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
env.versionNumber = VersionNumber(versionNumberString : '1.18.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
env.APP_NAME = 'MAPO-IOB-WIN'