Professional Documents
Culture Documents
Ems Precal Table2
Ems Precal Table2
#---------------Monthly------------------#
month="'"+str(system.date.format(date,"yyyy-MM-01 00:00:00"))+"'"
shared.sgg_ems.Ems_precal_table.precal_tableUpdate(tagid,month,'Monthly',kWh)
day="'"+str(system.date.format(date,"yyyy-MM-dd 00:00:00"))+"'"
shared.sgg_ems.Ems_precal_table.precal_tableUpdate(tagid,day,'daily',kWh)
hour ="'"+str(system.date.format(date,"yyyy-MM-dd HH:00:00"))+"'"
shared.sgg_ems.Ems_precal_table.precal_tableUpdate(tagid,hour,'hourly',kWh)