Inserito process parameters x ingenia, lasco, pressoil...
This commit is contained in:
Binary file not shown.
@@ -152,6 +152,7 @@ namespace IOB_WIN
|
||||
break;
|
||||
case taskType.setParameter:
|
||||
// richiedo da URL i parametri WRITE da popolare
|
||||
lgInfo("Chiamata processMemWriteRequests");
|
||||
taskVal = processMemWriteRequests();
|
||||
// se restituiscce "" faccio altra prova...
|
||||
if (!string.IsNullOrEmpty(taskVal))
|
||||
@@ -159,7 +160,7 @@ namespace IOB_WIN
|
||||
taskOk = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
{
|
||||
// i parametri me li aspetto come stringa composta paramName|paramvalue
|
||||
if (item.Value.Contains("|"))
|
||||
{
|
||||
|
||||
@@ -140,6 +140,7 @@ namespace IOB_WIN
|
||||
break;
|
||||
case taskType.setParameter:
|
||||
// richiedo da URL i parametri WRITE da popolare
|
||||
lgInfo("Chiamata processMemWriteRequests");
|
||||
taskVal = processMemWriteRequests();
|
||||
// se restituiscce "" faccio altra prova...
|
||||
if (string.IsNullOrEmpty(taskVal))
|
||||
|
||||
@@ -92,8 +92,8 @@ namespace IOB_WIN
|
||||
{
|
||||
// incremento
|
||||
counterMes2Plc++;
|
||||
// se > 9999 --> 0
|
||||
if (counterMes2Plc > 9999) counterMes2Plc = 0;
|
||||
// se > 999'999'999 --> 0
|
||||
if (counterMes2Plc > 999999999) counterMes2Plc = 0;
|
||||
// salvo su DB
|
||||
Dictionary<string, string> task2exe = new Dictionary<string, string>();
|
||||
Dictionary<string, string> taskDone = new Dictionary<string, string>();
|
||||
@@ -129,7 +129,6 @@ namespace IOB_WIN
|
||||
taskType tName = taskType.nihil;
|
||||
Enum.TryParse(item.Key, out tName);
|
||||
// controllo sulla KEY
|
||||
//!!!FIXME!!! totalmente da rivedere
|
||||
switch (tName)
|
||||
{
|
||||
case taskType.nihil:
|
||||
@@ -146,13 +145,32 @@ namespace IOB_WIN
|
||||
case taskType.sendWatchDogMes2Plc:
|
||||
memAddrWrite = "DB701.DBB12";
|
||||
saveProdData(item);
|
||||
MemBlock = wordToByte(counterMes2Plc.ToString());
|
||||
MemBlock = dwordToByte(counterMes2Plc.ToString());
|
||||
taskVal = $"VALUE DB701.DBB12 --> {counterMes2Plc} ({MemBlock})";
|
||||
if (verboseLog)
|
||||
{
|
||||
lgInfo(taskVal);
|
||||
}
|
||||
break;
|
||||
case taskType.setParameter:
|
||||
// richiedo da URL i parametri WRITE da popolare
|
||||
lgInfo("Chiamata processMemWriteRequests");
|
||||
taskVal = processMemWriteRequests();
|
||||
// se restituiscce "" faccio altra prova...
|
||||
if (string.IsNullOrEmpty(taskVal))
|
||||
{
|
||||
// i parametri me li aspetto come stringa composta paramName|paramvalue
|
||||
if (item.Value.Contains("|"))
|
||||
{
|
||||
string[] paramsJob = item.Value.Split('|');
|
||||
taskVal = $"REQUEST SET PARAMETERS: {paramsJob[0]} --> {paramsJob[1]}";
|
||||
}
|
||||
else
|
||||
{
|
||||
taskVal = $"WRONG REQUEST FOR SET PARAMETERS: {item.Value} doesnt contain pipe for splitting key/value";
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
taskVal = "SKIPPED | NO EXEC";
|
||||
break;
|
||||
|
||||
@@ -275,6 +275,26 @@ namespace IOB_WIN
|
||||
MemBlock[0] = (byte)valore;
|
||||
taskVal = $"VALUE DB1002.92 --> {counterMes2Plc}";
|
||||
break;
|
||||
|
||||
case taskType.setParameter:
|
||||
// richiedo da URL i parametri WRITE da popolare
|
||||
lgInfo("Chiamata processMemWriteRequests");
|
||||
taskVal = processMemWriteRequests();
|
||||
// se restituiscce "" faccio altra prova...
|
||||
if (string.IsNullOrEmpty(taskVal))
|
||||
{
|
||||
// i parametri me li aspetto come stringa composta paramName|paramvalue
|
||||
if (item.Value.Contains("|"))
|
||||
{
|
||||
string[] paramsJob = item.Value.Split('|');
|
||||
taskVal = $"REQUEST SET PARAMETERS: {paramsJob[0]} --> {paramsJob[1]}";
|
||||
}
|
||||
else
|
||||
{
|
||||
taskVal = $"WRONG REQUEST FOR SET PARAMETERS: {item.Value} doesnt contain pipe for splitting key/value";
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
taskVal = "SKIPPED | NO EXEC";
|
||||
break;
|
||||
|
||||
@@ -120,6 +120,25 @@ namespace IOB_WIN
|
||||
MemBlock[0] = (byte)valore;
|
||||
taskVal = $"VALUE DB67.0 --> {valore} | counter interno {counterMes2Plc}";
|
||||
break;
|
||||
case taskType.setParameter:
|
||||
// richiedo da URL i parametri WRITE da popolare
|
||||
lgInfo("Chiamata processMemWriteRequests");
|
||||
taskVal = processMemWriteRequests();
|
||||
// se restituiscce "" faccio altra prova...
|
||||
if (string.IsNullOrEmpty(taskVal))
|
||||
{
|
||||
// i parametri me li aspetto come stringa composta paramName|paramvalue
|
||||
if (item.Value.Contains("|"))
|
||||
{
|
||||
string[] paramsJob = item.Value.Split('|');
|
||||
taskVal = $"REQUEST SET PARAMETERS: {paramsJob[0]} --> {paramsJob[1]}";
|
||||
}
|
||||
else
|
||||
{
|
||||
taskVal = $"WRONG REQUEST FOR SET PARAMETERS: {item.Value} doesnt contain pipe for splitting key/value";
|
||||
}
|
||||
}
|
||||
break;
|
||||
case taskType.startSetup:
|
||||
// salvo che SONO IN SETUP!
|
||||
inSetup = true;
|
||||
|
||||
Vendored
+1
-1
@@ -16,7 +16,7 @@ pipeline {
|
||||
|
||||
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
|
||||
script {
|
||||
withEnv(['NEXT_BUILD_NUMBER=564']) {
|
||||
withEnv(['NEXT_BUILD_NUMBER=565']) {
|
||||
// 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'
|
||||
|
||||
Reference in New Issue
Block a user