Professional Documents
Culture Documents
3BTG811796-3057 Functional Description - Reporting
3BTG811796-3057 Functional Description - Reporting
PPLib800xA 6.2
Functional Description
Reporting
—
PPLib800xA 6.2
Functional Description
Reporting
—
Trademarks
All rights to copyrights, registered trademarks, and trademarks reside with their respective owners.
Copyright © 2019 by ABB.
All rights reserved.
Table of Contents
INTRODUCTION ............................................................................................................................... 5
General .............................................................................................................................................. 5
FUNCTION .......................................................................................................................................11
Shift ..................................................................................................................................................11
Number of Shifts .......................................................................................................................11
ShiftStartTime ...........................................................................................................................11
DayStartTime .............................................................................................................................11
Error Code ...................................................................................................................................11
Function .......................................................................................................................................... 12
Integrator ................................................................................................................................... 12
Counter....................................................................................................................................... 12
Timer ........................................................................................................................................... 12
Control Utilization .................................................................................................................... 12
Reset ........................................................................................................................................... 12
Interaction Window ...................................................................................................................... 13
Text Configuration........................................................................................................................ 14
General
ReportData01 is a functional unit for reporting in ControlIT, to be operated from 800xA
System. A ReportData01 normally performs a complete function together with ReportConfig.
ReportData01 has the following functions and properties:
· Support up to 4 shifts
· Configurable shift start time
· Store last 3 days value
· Support 4 different type reporting
5
INTRODUCTION
General
6
FUNCTION BLOCK & DATA TYPES
Function Block
ReportConfig
Name Data Type Direction Initial Value Description
Enable bool in true Enable object
Err bool out Error configuration
ErrNo dint out Error number
ReportsPar ReportsPar out Report parameter
ReportData01
Name Data Type Direction Initial Value Description
Name string in Object name
Description string in Object description
Enable bool in true Enable object
MV01 real in MV01 input
MV02 real in MV02 input
MV03 real in MV03 input
MV04 real in MV04 input
MV05 real in MV05 input
MV06 real in MV06 input
MV07 real in MV07 input
MV08 real in MV08 input
MV09 real in MV09 input
MV10 real in MV10 input
Reset bool in Reset
InPar ReportData01_InPar in Input parameter
ReportsPar ReportsPar in Report parameter
MV01Err bool out MV01 error
MV02Err bool out MV02 error
MV03Err bool out MV03 error
MV04Err bool out MV04 error
MV05Err bool out MV05 error
MV06Err bool out MV06 error
MV07Err bool out MV07 error
MV08Err bool out MV08 error
MV09Err bool out MV09 error
MV10Err bool out MV10 error
OutPar ReportData01_OutPa out Output parameter
r
7
FUNCTION BLOCK & DATA TYPES
Data Types
Data Types
ReportData01_InPar
ReportData01_InPar data type contains all configuration parameter available in
ReportData01. Configuration can be entered by writing value to this structured data type and
connecting it to input InPar of ReportData01 function block.
Name Data Type Initial Value Description
Class dint cPPInit.Class AE class
Severity dint cPPInit.Severity AE severity
MV01 ReportsConfig MV01 report config
MV02 ReportsConfig MV02 report config
MV03 ReportsConfig MV03 report config
MV04 ReportsConfig MV04 report config
MV05 ReportsConfig MV05 report config
MV06 ReportsConfig MV06 report config
MV07 ReportsConfig MV07 report config
MV08 ReportsConfig MV08 report config
MV09 ReportsConfig MV09 report config
MV10 ReportsConfig MV10 report config
NOTE: Connecting a variable to InPar parameter which has been configured previously via
Interaction Window, will reset the values in Totalizer01_InPar to default value.
ReportData01_OutPar
ReportData01_OutPar data type contains all information on the object which not available on
the output parameter of the function block.
Name Data Type Initial Value Description
MV01 ReportsValue MV01 report value
MV02 ReportsValue MV02 report value
MV03 ReportsValue MV03 report value
MV04 ReportsValue MV04 report value
MV05 ReportsValue MV05 report value
MV06 ReportsValue MV06 report value
MV07 ReportsValue MV07 report value
MV08 ReportsValue MV08 report value
MV09 ReportsValue MV09 report value
MV10 ReportsValue MV10 report value
ReportsPar
ReportsPar data type contains connection between ReportConfig and ReportData01.
Name Data Type Initial Value Description
NoOfShift dint No of shift
D0Date date_and_time Date of today (D0)
D1Date date_and_time Date of yesterday (D-1)
8
FUNCTION BLOCK & DATA TYPES
Permission
ReportsValue
ReportsValue data type contains all report value from each data.
Name Data Type Initial Value Description
D0Shift1 real Shift1 today
D0Shift2 real Shift2 today
D0Shift3 real Shift3 today
D0Shift4 real Shift4 today
D0Total real Total today
D1Shift1 real Shift1 yesterday
D1Shift2 real Shift2 yesterday
D1Shift3 real Shift3 yesterday
D1Shift4 real Shift4 yesterday
D1Total real Total yesterday
D2Shift1 real Shift1 previous day
D2Shift2 real Shift2 previous day
D2Shift3 real Shift3 previous day
D2Shift4 real Shift4 previous day
D2Total real Total previous day
Permission
All variables in ReportData01_InPar data type are set with Configure permission in 800xA
system.
The variable permission can be configured according to the plant requirement. This can be
done by adding Property Attribute Override aspect for the object in Control Structure or for
the object type in Object Type Structure.
9
FUNCTION BLOCK & DATA TYPES
Permission
10
FUNCTION
Shift
Number of Shifts
By default, ReportConfig supports 3 shifts. It can be configured to support maximum of 4
shifts. The configuration is stored in project constant cPPLib.Report.NoOfShift.
ShiftStartTime
For each shift, the starting time can be adjusted following the working shift of the mill. The
configuration is stored in project constant cPPLib.Report.ShiftxStartTime, where x is the
shift number. It is a must to configure the shift time in ascending order (clockwise).
Shift start time is based on 24 hours timing. Therefore, Shift starting time cannot be less than
0 or greater than 23.
It is unnecessary to configure the shift start time if that shift is not used. Example: Shift4 start
time will be ignored if only 3 shifts are required.
DayStartTime
DayStartShift refers to the first shift of the day. By default, Shift1 is the first shift. When this
shift is started, the all the values will be transferred to previous day value and today’s value
will be reset.
The configuration is stored in project constant cPPLib.Report.DayStartShift.
Error Code
Any error in above configuration will set the output parameter Err of ReportConfig to True.
ErrNo can be used to trouble the configuration. Below is the error number and its description:
ErrNo Description
0 No err
1 No Shift is configured
2 Number of shifts are exceed the supported number
3 Starting time is less than 0
4 Starting time is more than 23
5 Shift1 and Shift2 have the same start time
6 Shift2 and Shift3 have the same start time
7 Shift3 and Shift4 have the same start time
8 Shift3 and Shift1 have the same start time
9 Shift4 and Shift1 have the same start time
10 Total Shift time is less than 24
11 Total Shift time is more than 24
12 Selected DayStartShift doesn't match with number of shifts
11
FUNCTION
Function
Function
There are 4 available function can be used in ReportData01. Regardless which function is used,
the MV is in real datatype. Data type conversion from boolean to real may be required before
passing the value to MV.
Integrator
Setting the parameter Types to 1 means selected function is for Integrator.
The total value is calculated from the input MV. It will be incremented on each scan and also
depends on the parameter Scale and TI. The Scale parameter can be used to scale the output
value when there’s a need to convert to different unit. The input TI is used to define the
integration time and should follow the input unit.
For example, the input MV is in kg/h. The input TI shall be set to 1h. If the output is defined as
kg, then input Scale should be set to 1. If the output is defined as tons, then input Scale should
be set to 0.001.
Counter
Setting the parameter Types to 2 means selected function is for counter.
The total value is calculated from the input MV. It will be incremented when MV is changed
from 0 to 1.
Timer
Setting the parameter Types to 3 means selected function is for timer.
It will measure the total duration of how long MV value stay in 1. Timer will be hold when MV
goes to 0. It will resume back when MV is back to 1. Value is shown in minutes.
Control Utilization
Setting the parameter Types to 4 means selected function is for control utilization.
It will measure the total duration of how long MV value stay in 1. Timer will be hold when MV
goes to 0. It will resume back when MV is back to 1. This duration is the measured against the
duration of the shift at that point of time. The value is indicated in percentage.
Reset
Input parameter Reset of ReportData01 can be used to reset the report value.
12
FUNCTION
Interaction Window
Interaction Window
Interaction Window is used to configure the object’s parameter
in the Control Builder. It is only accessible when Control Builder is
in Online mode by right clicking the function block.
The main Interaction Window shows the name and description of
the function block. The buttons are links to open the sub-window.
General Par
Name and Description can be entered from interaction window
or from the function block parameters directly. After performing
Name Uploader, these values will be used as Object Name and
Description and shown in faceplate.
Class defines the process section or area in which alarms are grouped. By utilizing Class, the
alarms can be filtered. Valid values are 1 - 9999. Severity defines the alarm priority for general
alarms. Valid values are 1 - 1000 where 1000 is the highest priority.
13
FUNCTION
Text Configuration
Text Configuration
Text Configuration aspect is used to define the text properties of the object, such as property
name and units. It is accessible in the Control Structure.
Unit is only applicable when Types selected is integrator.
14
OPERATOR FUNCTION
Process Display
ReportData01 has the following graphic elements which can be inserted into graphic displays.
Report Summary
Report Summary contains the last 3 days value from each shift and total in a day.
15