You are on page 1of 65

Webaccess/SCADA V9 Basic Training

Chapter 3

PT. Eforel Citra Utama


Agenda
• 3.1 WebAccess SCADA Data Log • 3.4 InfluxDB
– 3.1.1 Data Log VS Open Database Connectivity (ODBC) – 3.4.1 Influx DB configuration
– 3.1.1.1 Data Flow – 3.4.2 Download InfluxDB studio
– 3.1.1.2 Data Log Timestamp – 3.4.3 How to verify data is logged into InfluxDB
– 3.1.2 Data Log – 3.4.4 Check data log trend
– 3.1.2.1 Datalog


3.1.2.2 RTDB
3.1.2.3 InfluxDB
• 3.5 ODBC
– 3.1.3 Open Database Connectivity (ODBC) – 3.5.1 WebAccess SCADA ODBC Structure
– 3.1.3.1 MS Access – 3.5.2 ODBC configuration
– 3.1.3.2 PostgreSQL – 3.5.3 Configure ODBC log data source
– 3.5.4 How to verify data is logged to your
• 3.2 Data Log and Trend Graph database
– 3.5.5 How to use multiple ODBC data source
– 3.2.1 Data Log Configuration
– 3.2.2 Create Trend Graph
– 3.2.2.1 Create Real Time Trend • 3.6 Excel Report
– 3.2.2.2 Create Data Log Trend
– 3.6.1 Basic Concept of excel report
– 3.2.2.3 Create Self-Defined Trend
– 3.6.2 Data Log
– 3.2.2.4 Modify Trend Graph Template
– 3.6.3 ODBC
– 3.2.3 Check Trend Graph
– 3.6.4 Alarm

• 3.3 RTDB and Trend Graph –



3.6.5 Action log
3.6.6 Event log
– 3.3.1 RTDB Configuration
– 3.6.7 Renew / Delete report
– 3.3.2 Create Trend Graph
– 3.6.8 Add Template
– 3.3.3 Check Trend Graph
– 3.3.4 Change Log from Data Log to RTDB
3.1 WebAccess SCADA Data Log
• 3.1.1 Data Log VS Open Database Connectivity (ODBC)
– 3.1.1.1 Data Flow
– 3.1.1.2 Data Log Timestamp
• 3.1.2 Data Log
– 3.1.2.1 Datalog
– 3.1.2.2 RTDB
– 3.1.2.3 InfluxDB
• 3.1.3 Open Database Connectivity (ODBC)
– 3.1.3.1 MS Access
– 3.1.3.2 PostgreSQL
3.1.1 Data Log VS Open Database Connectivity (ODBC)

ODBC Database: 已

Data Log • Log Data By Project Node

• Need to be authenticated by
Windows ODBC Manager
(odbcad32.exe)
Project Node
RTDB ODBC
• Can write into multiple ODBC
database simultaneously

RPC • Can choose any SQL type database


Data Log:
• Can determine the log frequency by
• Log Data By SCADA Node CPU performance
SCADA Node

• Write Protected by Datacore Data Log

• SCADA Nodes conduct data log


respectively and independently

• Can select Datalog、RTDB、Influxdb Device

• Real-time Log tag data


3.1.1.1 Data Flow
Windows ODBC Manager
(32 bits)

`
Write to ODBC
ActPSLINKODBC_1.dat 已
BwDataUpOdbc.exe BulfPSLINKODBC_1.dat

ActPSLINKODBC_x.dat
Execute BulfPSLINKODBC_x.dat
Dissemble data by different Database

`
Project Node BwDataUp.exe
ActPSLINK. dat
Execute
Exact

`
BwPsLinkZip.exe
SCADALOG_Proj_Node_xxxxxx.dat

RPC

`
3 choose 1 Remote Call Copy Data to
Datalog Datalog
SCADA Node
RTDB RTDB Datacore.exe Generate Data
SCADALOG.dat
Write Data Into
InFluxdb

Device Data Log Location Process ODBC Data Flow


3.1.1.2 Data Log Timestamp
 Case Study:
1) Use 【ModSim】 as a simulated device
Data Log ODBC
2) Set Change Interval (Sec) to【1】
3) Log Data (in every minute) use 【Last Value】
4) Compare【Data Log】and【ODBC(Microsoft Access)】 Datalog
5) Use【16:08:00 ~ 16:12:00】to compare log data
Data Log ODBC

 Data Analysis: 【16:08:00 ~ 16:12:00】 Time 16:08:00 16:09:00 16:10:00 16:11:00 16:12:00
16:10:59

• Data Log ->Write 16:10:00~16:10:59 data in 16:11:00 Device Data 205 265 325 385
【Log in next second】
Data Log 204 264 324 384
• ODBC ->Write 16:10:00~16:10:59 data in 16:10:00 ODBC 204 264 324 384
【Log in previous second】
3.1.2 Datalog

ODBC Database:

• Log Data By Project Node

• Need to be authenticated by
Windows ODBC Manager
(odbcad32.exe)
Project Node
• Can write into multiple ODBC
ODBC
database simultaneously

RPC • Can choose any SQL type database


Data Log:
• Can determine the log frequency by
• Log Data By SCADA Node CPU performance
SCADA Node

• Write Protected by Datacore

• SCADA Nodes conduct data log


respectively and independently

• Can select Datalog、RTDB、Influxdb Device

• Real-time Log tag data


3.1.2.1 Datalog
 Datalog:
SCADA Node
1) Data Location: C://WebAccess/Node/ProjectName_SCADAName/LOG/TagName/

Datalog
3.1.2.2 RTDB
 RTDB:
SCADA Node
1) Data Log: C://WebAccess/Node/ProjectName_SCADAName/LOG/

RTDB
3.1.2.3 InfluxDB
 InfluxDB :
SCADA Node
1) Data Location: C://WebAccess/Node/Influxdb/
3.1.3 ODBC

ODBC Database: 已

Data Log • Log Data By Project Node

• Need to be authenticated by
Windows ODBC Manager
(odbcad32.exe)
Project Node
RTDB ODBC
• Can write into multiple ODBC
database simultaneously

RPC • Can choose any SQL type database


Data Log:
• Can determine the log frequency by
• Log Data By SCADA Node CPU performance
SCADA Node

• Write Protected by Datacore Data Log

• SCADA Nodes conduct data log


respectively and independently

• Can select Datalog、RTDB、Influxdb Device

• Real-time Log tag data


3.1.3.1 MS Access
 MS Access:
Project Node
1) Data Location: C://WebAccess/Node/BwPdata.mdb & bwEvent.mdb
3.1.3.2 PostgreSQL
 PostgreSQL:
Project Node
1) Data Location: C://postgresql/data/
3.2 Data Log and Trend Graph
• 3.2.1 Data Log Configuration
• 3.2.2 Create Trend Graph
– 3.2.2.1 Create Real Time Trend
– 3.2.2.2 Create Data Log Trend
– 3.2.2.3 Create Self-Defined Trend
– 3.2.2.4 Modify Trend Graph Template
• 3.2.3 Check Trend Graph
3.2.1 Datalog Configuration
 Log Data by Datalog:

1) Go to tree Diagram select SCADA Node, click【Edit】

2) Go to【Data log】, in Use RTDB For Data Log, select【NO】


(Select “No” will use “Datalog” WebAccess Datalog mechanism to log data )

 Select a specific tag to enable data log:

1) In SCADA node tree, go to Tag List , click the tag you want to log,
and click 【Edit】
2) In【Basic Information】, Go to Log Data, Choose【Yes】
3) In【Basic Information】, Go to Data Log Dead Band, enter
【Number (percentage)】(If the tag value varies more than this percentage, it will be
logged, otherwise it will not.
3.2.2 Create Trend Graph
 Process to create new trend:

Create Project Node


Create SCADA Node
Create Device & Tags

Enable Data Log


3.2.1

Create Real Time Trend Create Data Log Trend

Download SCADA Node

View Trend on SCADA Node


3.2.2.1 Real Time Trend

Create Real Time Trend

Real Time Trend:

✓ Group Number: Number


(Should be unique, used to identify)

✓ Sample Rate: Second


(Minimal Sample Rate:1 sec.)

✓ Tag Name: The tag list


(Existed Tag List)

Click Submit to Finish


3.2.2.2 Data Log Trend
Enable Log Data
3.2.1

Create Data Log Trend

Data Log Trend:

✓ Group Number: Number


(Should be unique, used to identified.)

✓ Sample Rate: Display the


sample time interval
(Total 360 interval in a graph)

✓ Tag Name:The tag list


(Display the tags which enable data log)

✓ Plot Type:Number
(The data display pattern in a specified Click Submit to finish
interval)
3.2.2.3 Create Self-Defined Trend
 Procedures:
1) Go to tree diagram, select the SCADA node, and click【Draw】
2) Open DrawDAQ homepage, click Open DRW
3) Enter【realtrd.dxx or dlogtrd.dxx】to open Real Time or Data log
trend template (dxx is the main template file, please do not overwrite it)

4) Modified and save it as a new template file【realtrd.bcc & .dcc or


dlogtrd.bcc & .dcc】 (.bcc is for run time used while .dcc is the drawing file)

Real Time Trend realtrd.dxx


Real Time Trend
realtrd.bcc
realtrd.dcc

Data Log Trend dlogtrd.dxx


Data Log Trend
dlogtrd.bcc
dlogtrd.dcc
※【cc】in .bcc & .dcc should use【01】~【99】number
to replace
3.2.2.3 Create Self-Defined Trend
 Procedures:

5) Create Trend graph by section【 3.2.2.1 】and【 3.2.2.2 】

6) In【Trend Templates】, select the template you just created

Create Project Node


Real Time Trend Create SCADA Node Data Log Trend
realtrd.bcc Create Device & Tags dlogtrd.bcc

Enable Data Log


3.2.1

Create Real Time Trend Create Data Log Trend


3.2.2.1 3.2.2.2

Download SCADA Node

※【cc】in .bcc & .dcc should use【01】~【99】number to replace View Trend on SCADA Node
3.2.2.4 Modify Trend Graph Template
➢ Goal: ➢ Goal:
Choose the user-defined log period and the log interval In data log trend, user can customize some alarm lines to
of the selected templates. make them acknowledge the alarm situation easier.

➢ Template Download site: ➢ Template Download site:


http://downloadt.advantech.com/download/downloadsr.aspx?File_Id=1- http://downloadt.advantech.com/download/downloadsr.aspx?File_Id=1-
1U2R084&utm_source=ADAMForum&utm_medium=Link&utm_campaign=SR-ADAMForum 1U2R07M&utm_source=ADAMForum&utm_medium=Link&utm_campaign=SR-ADAMForum

➢ Sample View: ➢ Sample View:


3.2.3 Check Trend Graph
 Procedures:

1) Go to Trend Graph and click SCADA node, click 【Viewer】

2) In ViewDAQ homepage, enter username and password to login

3) Click【 】or press【F3 or F4】to open Real time or Data log


trend

Real time trend

Data log trend


3.3 RTDB and Trend Graph
• 3.3.1 RTDB Configuration
• 3.3.2 Create Trend Graph
• 3.3.3 Check Trend Graph
• 3.3.4 Change Log from Data Log to RTDB
3.3.1 RTDB Configuration
 Log Data by RTDB:
1) Go to tree diagram select SCADA node, and click【Edit】
2) Go to【Data log】, in Use RTDB For Data Log, select【RTDB】
(This is WebAccess real time database (RTDB) data log mechanism)

 Select a specific tag to enable data log:


1) In SCADA node tree, go to Tag List , click the tag you want to log,
and click 【Edit】
2) In【Basic Information】, Go to Log Data, and choose【Yes】
3) In【Basic Information】, Go to Data Log Dead Band, enter
【Number (percentage)】
(If the tag value varies more than this percentage, it will be logged, otherwise it will not.
3.3.2 Create Trend Graph
 Process to create new trend:
※If you don’t know how to create trend, please refer to chapter 3.2.2

Create Project Node


Create SCADA Node
Create Device & Tags

Enable Data Log


3.3.1

Create Real Time Trend Create Data Log Trend


3.2.2.1 3.2.2.2

Download SCADA Node

View Trend on SCADA Node


3.3.3 Check Trend Graph
 Procedures:

1) Go to Trend Graph and click SCADA node, click 【Viewer】

2) In ViewDAQ homepage, enter username and password to login

3) Click【 】or press【F3 or F4】to open Real time or Data log


trend

Real time trend

Data log trend


3.3.4 Change Log from Data Log to RTDB
➢ Usage:
When used Datalog to perform data logging, and want to change to
RTDB for data log

➢ Configuration modification:
1) Go to tree diagram select SCADA node, and click【Edit】
2) Go to【Data log】, in Use RTDB For Data Log, change it from
【No】to【RTDB】

➢ Data Conversion:

1) Execute【C:\WebAccess\Node\ConvToRTDB.EXE】

2) In【Project】drop list select【Project Name_SCADA Name】

3) Click【Convert】and wait it to finish


※Datalog can change to RTDB, but RTDB can not change back to Datalog
※You can not view datalog and RTDB log at the same time, please convert all data log to the
same log type to view it
※It is suggested to choose the exact datalog type in the beginning, log conversion may cause
issue sometimes.
3.4 influxDB
• 3.4.1 Influx DB configuration
• 3.4.2 Download InfluxDB studio
• 3.4.3 How to verify data is logged into InfluxDB
• 3.4.4 Check data log trend
3.4.1 InfluxDB Configuration

• Go to SCADA node > Edit -> Data log->influxDB


3.4.1 InfluxDB Configuration

• Go to Tag List > select a tag > Edit > Data log
3.4.2 Download InfluxDB studio

• Download website:

https://support.advantech.com/support/DownloadSRDetail_New.aspx?SR_ID=1-1KRCCHH&Doc_Source=Download
3.4.3 How to verify data is logged into InfluxDB

• Execute InfluxDBStudio.exe, click connect (InfluxDBStudio is located under influxDBStudio-0.2.0 folder which
can be downloaded in previous link)
3.4.3 How to verify data is logged into InfluxDB

• No user name and password is required


3.4.3 How to verify data is logged into InfluxDB

• You can see SCADA node name and datalogX data log in second level

SQL Query:
SELECT *
FROM "datalogX"
order by time desc

Note: the time need


to add 8 hours
3.4.4 Check Data Log Trend

• Click SCADA Node -> Trend -> Data Log Trend


3.4.4 Check Data Log Trend

• Click Insert -> Select a tag -> Submit


• Remember to download the project again

2
3.4.4 Check Data Log Trend

• Open View DAQ -> Choose data log trend


3.4.4 Check Data Log Trend

• The data log trend can be viewed


3.5 ODBC

• 3.5.1 WebAccess SCADA ODBC Structure


• 3.5.2 ODBC configuration
• 3.5.3 Configure ODBC log data source
• 3.5.4 How to verify data is logged to your database
• 3.5.5 How to use multiple ODBC data source
3.5.1 WebAccess SCADA ODBC Structure
3.5.2 ODBC configuration

• Click SCADA Node->Edit->Data Log->Data Log To ODBC, choose Yes

3
1

5
3.5.2 ODBC configuration

• Go to Tag List, select one of your tag


• Click Edit -> Log to ODBC frequency. Choose a log frequency

4
3.5.3 Configure ODBC log data source

• Go to ODBC Data Log Data Source

1
2

3
3.5.3 Configure ODBC log data source
• Enter a new ODBC Log Data Source, and click Submit for New ODBC Log Data Source, and select it
• Click “Connection Test” can test if the data source can be connected successfully

2
3.5.4 How to verify data is logged to your database
• Choose the log period you want to check and select all the tag of which value you want to view
• Click Submit
1

2 4

5
3.5.5 How to use multiple ODBC data source
• Go to Tag List, for different tags, click “Edit” and choose different ODBC Log Data Source for the tags
respectively
Agenda
• 3.6 Excel Report
– 3.6.1 Basic Concept of excel report
– 3.6.2 Data Log
– 3.6.3 ODBC
– 3.6.4 Alarm
– 3.6.5 Action log
– 3.6.6 Event log
– 3.6.7 Renew / Delete report
– 3.6.8 Add Template
3.6.1 Basic concept of excel report
(1).Excel Report
WebAccess/SCADA Excel reports are
generated from the historical Data log, ODBC
data (Analog, Discrete, and Text Tag), Alarm
Log, Action log, and Event log based on the
templates built by the data table and analysis
charts as the report format in the WebAccess
SCADA Node. Users & Operators can build
customized report templates based on EXCEL
functions and key words and uploaded in the
WebAccess Excel report function to
automatically generated
daily/weekly/monthly or specific date reports.
The function provide extensive analysis and
viewing functions for statistical and event
data. Reports are built using easy to follow
“Report Template Forms” based on Excel
format. View immediately in View DAQ via IE
or local PC or store as “Predefined Reports”
for later use.
3.6.1 Basic concept of excel report
(2). How to go to excel report setting
Please go to SCADA node setting and click on
“Report”. Excel report option would be
shown as picture.

There would be “Report List”, “New Report”


and “Template List” in excel report. Next
chapter will introduce from “New Report”.
3.6.2 Data Log
(1). Data Log
From Top to Bottom
1. Please put a name for the report
2. Please choose log type in Data Log
3. User can choose which template to be
used when generating report. Magnifier
icon show what template looks like.
3.6.2 Data Log
(2). Report Type
Report Type:
1. Self-Defined: Users can set time period by
themselves.
2. Previous Date
3. Previous Month
4. Daily Report: Report will be automatically
generated
5. Weekly Report
6. Monthly Report
7. Yearly Report
3.6.2 Data Log
(3). Time
Time Setting:
1. Start: If self-defined is chosen, please
choose starting date and time. It would
be fixed when previous date or month is
chosen.
2. End: If self-defined is chosen, please
choose end date and time. It would be
fixed when previous date or month is
chosen.
3. Time Interval and Unit: Please put
number in Time Interval. It would
combine Time Unit to show in excel
report.
4. Data Type: Please choose one of them as
picture shown. Excel report will get data
according to data type.
3.6.2 Data Log
(4). Tag and Email Setting
Tag Setting:
Tag should be chosen in order to let system
know which tags is supposed to show in excel
report. Move tags from left to right column.

Email Setting:
User does not need to collect excel report by
surfing computer. System will help to send
Email with excel report(or PDF form) when
generating report.
3.6.3 ODBC
(1). Data source from ODBC database
When ODBC Data is chosen, system will pop
up one more row to inform user which
database would like to be used as data source.
The rest setting are the same as datalog.
3.6.4 Alarm
(1). Alarm Excel Setting
When Alarm log type is chosen, user
need to configure below properties:
1. Template: template would
become alarm template. User can
also check what template looks
like by using magnifier icon
2. Filter: Filer alarms by using
priority/alarm groups/user
name/project node name/project
node IP address.
3. Sort by
time/tag(name)/priority/alarm
groups to show in excel report.
3.6.4 Alarm
(2). Alarm Excel Report template
3.6.5 Action Log
(1). Action Log Setting
When Action log type is chosen, user
need to configure below properties:
1. Template: template would
become alarm template. User can
also check what template looks
like by using magnifier icon
2. Filter: Filer alarms by using
priority/alarm groups/user
name/project node name/project
node IP address.
3.6.5 Action Log
(1). Action Log template
3.6.6 Event Log
(1). Event Log Setting

When Event log type is chosen, user need to


configure below properties:
1. Event log comes from database. Please
also choose database source in the next
row.
2. Please set report type.
3.6.6 Event Log
(2). Event Log template
3.6.7 Renew / Delete report
(1). Report List
In report list user can see the report which
just modified and saved. User can also
manually generated/update(renew)/delete
excel report on the list. Default folder which
system would save excel is
C:\Inetpub\wwwroot\broadweb\WaExlViewe
r\proj_scada name\excel report name
3.6.8 Add template
(1). Template List

In template list, user can see all the


templates corresponding to different
report types. User can check log type of
each template, and preview the template
by clicking the magnifier icon.
User can click “update” or “delete” to
update or delete the report template.
3.6.8 Add template
(2). New Template

In new template tab, user can upload


customized excel template to system:
1. Upload Template: Choose customized
excel template
2. Add description in the second row.
3. Choose Log type. Normal(for
datalog/ODBC), Alarm, Action, Event
log.
4. Upload preview picture if user has it.
3.6.8 Add template
(3). Customized Template

Customized template is recommended to be modified


from original templates due to there are lots of VBA
commands in it. Original templates are in
C:\Intepub\wwwroot\broadweb\WaExlViewer\templ
ates. Copy templates from folder then modify it.
Finally upload modified version via previous slide.
Co-Creating the Future
of the IoT World

You might also like