10.02.2018, 12:43
Hi there,
what's wrong with this below?
Consumo_impianto = grp.getvalue('3/3/30')
os.sleep(0.5)
Consumo_ftv_fase_1 = grp.getvalue('3/3/24')
os.sleep(0.5)
Consumo_ftv_fase_2 = grp.getvalue('3/3/25')
os.sleep(0.5)
Consumo_ftv_fase_1 = grp.getvalue('3/3/26')
os.sleep(0.5)
Consumo_pdc = grp.getvalue('3/3/27')
os.sleep(0.5)
Consumo_impianto_kwh = (Consumo_impianto / 1000)
os.sleep(0.5)
Consumo_ftv_fase_1_kwh = (Consumo_ftv_fase_1 / 1000)
os.sleep(0.5)
Consumo_ftv_fase_2_kwh = (Consumo_ftv_fase_2 / 1000)
os.sleep(0.5)
Consumo_ftv_fase_3_kwh = (Consumo_ftv_fase_3 / 1000)
os.sleep(0.5)
Consumo_pdc_kwh = (Consumo_pdc / 1000)
os.sleep(0.5)
grp.write ('3/3/121', Consumo_impianto_kwh)
os.sleep(0.5)
grp.write ('3/3/124', Consumo_ftv_fase_1_kwh)
os.sleep(0.5)
grp.write ('3/3/125', Consumo_ftv_fase_2_kwh)
os.sleep(0.5)
grp.write ('3/3/126', Consumo_ftv_fase_3_kwh)
os.sleep(0.5)
grp.write ('3/3/127', Consumo_pdc_kwh)
Nothing write.
Thanks.
what's wrong with this below?
Consumo_impianto = grp.getvalue('3/3/30')
os.sleep(0.5)
Consumo_ftv_fase_1 = grp.getvalue('3/3/24')
os.sleep(0.5)
Consumo_ftv_fase_2 = grp.getvalue('3/3/25')
os.sleep(0.5)
Consumo_ftv_fase_1 = grp.getvalue('3/3/26')
os.sleep(0.5)
Consumo_pdc = grp.getvalue('3/3/27')
os.sleep(0.5)
Consumo_impianto_kwh = (Consumo_impianto / 1000)
os.sleep(0.5)
Consumo_ftv_fase_1_kwh = (Consumo_ftv_fase_1 / 1000)
os.sleep(0.5)
Consumo_ftv_fase_2_kwh = (Consumo_ftv_fase_2 / 1000)
os.sleep(0.5)
Consumo_ftv_fase_3_kwh = (Consumo_ftv_fase_3 / 1000)
os.sleep(0.5)
Consumo_pdc_kwh = (Consumo_pdc / 1000)
os.sleep(0.5)
grp.write ('3/3/121', Consumo_impianto_kwh)
os.sleep(0.5)
grp.write ('3/3/124', Consumo_ftv_fase_1_kwh)
os.sleep(0.5)
grp.write ('3/3/125', Consumo_ftv_fase_2_kwh)
os.sleep(0.5)
grp.write ('3/3/126', Consumo_ftv_fase_3_kwh)
os.sleep(0.5)
grp.write ('3/3/127', Consumo_pdc_kwh)
Nothing write.
Thanks.