FIx analog values (float)
This commit is contained in:
@@ -4626,7 +4626,7 @@ namespace SCMA.AdapterPLC
|
||||
// gestisco in modalità "lazy" qualsiasi variabile (dividendo x opportuno fattore conversione...)
|
||||
try
|
||||
{
|
||||
analogVal = tabDatiAnag[idxTab] / utils.CRI("fattDecVA");
|
||||
analogVal = (double)tabDatiAnag[idxTab] / (double)utils.CRI("fattDecVA");
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
@@ -4664,7 +4664,7 @@ namespace SCMA.AdapterPLC
|
||||
// gestisco in modalità "lazy" qualsiasi variabile (dividendo x opportuno fattore conversione...)
|
||||
try
|
||||
{
|
||||
analogVal = tabDatiAnag[idxTab] / utils.CRI("fattDecVA");
|
||||
analogVal = (double) tabDatiAnag[idxTab] / (double) utils.CRI("fattDecVA");
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user