Fix contapezzi PLC x ModBus (dati float)

This commit is contained in:
Samuele E. Locatelli
2022-09-16 17:16:32 +02:00
parent b768a8d5aa
commit ef83c4ad66
3 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -39,8 +39,8 @@ CLI_INST=SteamWareSim
;STARTLIST=GIACO_CENTERFRIGO
;STARTLIST=GIACO_NWSE
;STARTLIST=SIM_DP_01
;STARTLIST=FINASSI_HELPI_01
STARTLIST=FINASSI_HELPI_01
;STARTLIST=FINASSI_OMP_01
STARTLIST=BAGLIETTO_CIMOLAI_01
;STARTLIST=BAGLIETTO_CIMOLAI_01
MAXCNC=10
+5 -5
View File
@@ -800,17 +800,17 @@ namespace IOB_WIN_NEXT
if (cIobConf.optPar.Count > 0 && !string.IsNullOrWhiteSpace(getOptPar("PZCOUNT_MODE")))
{
// cerco in lastDynData...
string pzCountKey = getOptPar("PZCOUNT_MODE").Replace("STD.","");
string pzCountKey = getOptPar("PZCOUNT_MODE").Replace("STD.", "");
if (lastDynData.ContainsKey(pzCountKey))
{
string rawVal = lastDynData[pzCountKey];
int pzCounter = -1;
double cntDouble = -1;
if (!string.IsNullOrEmpty(rawVal))
{
int.TryParse(rawVal, out pzCounter);
if (pzCounter >= 0)
double.TryParse(rawVal, out cntDouble);
if (cntDouble >= 0)
{
contapezziPLC = pzCounter;
contapezziPLC = (int)cntDouble;
}
}
}
+2 -2
View File
@@ -57,9 +57,9 @@ REM copia script verso server remoto
REM echo Debug remoto: effettuo robocopy sync (verificare remote per cliente)
REM FINASSI
REM ROBOCOPY . \\10.150.0.1\Steamware\IOB-WIN-NEXT-DEB /MIR
ROBOCOPY . \\10.150.0.1\Steamware\IOB-WIN-NEXT-DEB /MIR
REM Baglietto
ROBOCOPY . \\192.168.60.15\Steamware\IOB-WIN-NEXT-DEB /MIR
REM ROBOCOPY . \\192.168.60.15\Steamware\IOB-WIN-NEXT-DEB /MIR
goto END