Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

KWH Logger

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 9

kWh Logger Overview

• Compare daily or monthly total kWh today and


previous
• Dynamic range time
• The raw data is kWh data from power meter
(accumulative)
• Use web Access SCADA

Goal:
- Provide trending data kWh total for power usage

kWh logger
Data structure each power meter
Each cycle :
Hardware tags - Get Raw
- Get Current Total
Raw - Set Last total := Current Total
- Get last total
- Set Current Total := Raw
Local Tags
- Get Current Total
Hidden - Get Current Daily
- Set Last daily := Current Daily
Last total Current total
- Get Last daily
- Set Current daily := Current total – Last total
Display as bar - Get Current Daily
- Deviation := Current Daily – Last daily
Last daily Current daily Deviation

kWh logger
Data structure each power meter
Each cycle :
Hardware tags Get
- A = Raw , B = Current total, C = Current daily
Raw Cal
- D=A–B
- E = ABS(D – C)
Local Tags
SET
Hidden - Last Total = B
- Current Total = A
Last total Current total
- Last Daily = C
- Current Daily = D
Display as bar - Deviation = E

Last daily Current daily Deviation

kWh logger
Data structure each power meter

Power Meter 1

Power Meter 2

Power Meter 3

kWh logger
Requirement

1. Beberapa Area Monitoring --> Berarti nanti Tiap Area memiliki Database masing-
masing.Kebutuhan: Tutorial Pembuatan Database sampai Perhitungan yang berada
di dalamnya termasuk deviation tsb, sepertinya ini juga di paparkan dalam video
tsb.
2. Tiap Area memiliki Script --> Sepertinya ini sudah di paparkan di Youtube, mungkin
untuk Daily, Weekly, Monthly dan Yearly (Atau dijadikan satu juga tidak apa-apa).
3. Penampilan Data sampai ke Dashboard Terkait trend kWH dan kWH (misanya tiap
jam, daily, Weekly, Monthly dan Yearly)Harapannya Point No. 3dpt di sertakan
untuk tampilan konsumsi /jam artinya nilainya bukan komulatif namun fokus tiap
jam misalnya 09.00 - 10.00 dst

kWh logger
Architecture Communication
Dashboard

Slave 1 Area 01

Hub
Slave 5

Slave 1 Area n

ODBC 32 bit
Slave 5

kWh logger
Step by step

• Install postgres odbc connector dan pg • Membuat tags untuk update data dari
admin postgres database, dan log ke access
• Membuat server pada postgres • Configure dassboard
• Membuat database per area
• Membuat table per database
• Create dsn masing masing database
• Mebuat script pada web acccess
• Ambil last record pada database
• Kalkulasi kwh total
• Tulis new record ke database
• Buat event trigger script

kWh logger
Trigger Event
If (GETVAL("HOURNOW") <> GETVAL("%ATMHOUR")) Then
' Daily record script
'this script for update current time SETVAL "HOURNOW=@%ATMHOUR"
'to prevent script run
If ((GETVAL("DAYNOW") <> GETVAL("%ATMMDAY")) And ( GETVAL("%ATMHOUR")= 8 )) Then
SETVAL "HOURNOW=@%ATMHOUR" ' Monthly record script
SETVAL "DAYNOW=@%ATMMDAY" SETVAL "DAYNOW=@%ATMDAY"
SETVAL "MONTHNOW=@%ATMMONTH"
If (GETVAL("MONTHNOW") <> GETVAL("%ATMMONTH")) Then
' Yearly record script
SETVAL "MONTHNOW=@%ATMMONTH"
End If
End If
End If

kWh logger

You might also like