Fix contapezzi PLC x ModBus (dati float)
This commit is contained in:
@@ -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
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user