Deixo aqui o meu atual script, para instalação monofásica, sem produção de energia:
>D
>BS
smlj=0
tper=60
=>sensor53 r
>S
if upsecs>20
and upsecs<30
then
smlj=1
endif
>M 1
+1,14,m,1,9600,EB,5,5,0104006C,01040079,0104007A,0104007F,01040026,01040027,01040028,0104000B,01040084,01040012,r010400840003,r010400010001
1,=hVALORES TÉCNICOS
1,010404UUuuxxxx@i0:10,Tensão,V,Voltage_P1,17
1,010404xxxxUUuu@i0:10,Corrente,A,Current_P1,17
1,010408UUuuUUuuxxxxxxxxxxxx@i1:1,Potência ativa,W,Power_P1,16
1,010406xxxxxxxxUUuu@i2:1000,Fator de potência,pu,PFactor_P1,19
1,01040aUUuuxxxx@i3:10,Frequência,Hz,Frequency_P1,17
1,=h
1,=hTOTALIZADORES DE ENERGIA
1,010408UUuuUUuuxxxxxxxxxxxx@i4:1000,Vazio (1),kWh,Energy_P1_R1,1
1,010408UUuuUUuuxxxxxxxxxxxx@i5:1000,Ponta (2),kWh,Energy_P1_R2,1
1,010408UUuuUUuuxxxxxxxxxxxx@i6:1000,Cheia (3),kWh,Energy_P1_R3,1
1,=h
1,=hESTADOS
1,010406uuxxxxxxxx@i7:1,Tarifa,,Tariff_P1,16
1,01040auu@i10:1,ICP,,ICP_P1,16
1,010406UUuuUUuuxxxxxxxxxxxx@i9:1000,Potência contratada,kVA,PContracted_P1,2
1,=h<hr>
1,01040axxUUuuUUuu@i10:1,Q,,Q_ICP_Param,0
1,01040axxxxxxxxxxUUuuUUuu@i10:100,k,,K_ICP_Param,1
1,=h<hr>
1,01040cxxxxxxxxxxuu@i11:1,Clock ,h,Clock_H,16
1,01040cxxxxxxxxxxxxuu@i11:1,Clock ,m,Clock_M,16
1,01040cxxxxxxxxxxxxxxuu@i11:1,Clock ,s,Clock_S,16
#