Visualization Documentation – SHIFT_TOTALIZER Block
Usage of SHIFT_TOTALIZER Block through SCADA Template
The SHIFT_TOTALIZER
block is used to measure and accumulate flow totals across operator shifts (A, B, C) and daily summaries.
It is vital in systems requiring shift-wise monitoring of consumption or production like utilities, batching, or continuous processes.
This block is implemented as a standard faceplate component, built using CODESYS visualization templates.
The icon is available inside the Visu_page
for reuse across different visualization pages.
Integrating the SHIFT_TOTALIZER Block into Visualization
1. Open Your Target Visualization Page
- Open your CODESYS project.
- Navigate to the HMI screen for flow monitoring or shift reporting (e.g.,
Shift_Monitoring
,Flow_Analysis
).
2. Insert the Shift_Totalizer Block Icon from Scada_test
Visu Page
- Open the Visualization Toolbox Go to Current Project.
- Drag or drop the Shift_Totalizer Block icon to your Visualization page.
- Or Just Copy the Shift_Totalizer Block Icon from the
Scada_test
visu page and Paste into your Visualization page.
✅ Enables consistent and pre-designed monitoring UI for shift-based totalization.
3. Link the SHIFT_TOTALIZER to Its Logic Block
- Select the inserted Shift Totalizer block icon.
- click on the block icon Properties tab open automatically → Properties.
- Go to the References and Expand the references.
- you will see bl_shift_totalizer Expand that also.
- set the path in front of the tagshift_totalizer_fp by Double clicking on empty space and select the required tag.
- Build and run the project.
- During runtime, confirm the value changing in totalizer block icon.
SHIFT_TOTALIZER Icon – Visualization Behavior
No. | Visual Element | Description |
---|---|---|
1 | Tag Number Field | Visible in blue—identifies the process stream |
2 | TOTAL Value | Real-time cumulative totalizer value shown clearly |
🔄 Clicking the icon opens the detailed faceplate interface.
SHIFT_TOTALIZER Faceplate Overview
Clicking the icon opens a dedicated faceplate allowing live value viewing, shift tracking, and reset control.
Faceplate Fields and Functionality
Field | Description |
---|---|
Tag Number |
Shown in blue for easy operator recognition |
Flow |
Current flow/process value in engineering units |
C_Fac |
Correction factor (scales Flow for accurate totalization) |
ByTime |
Time base (SEC , MIN , or HOUR ) for converting flow into totals |
TOTAL |
Cumulative total for the current measurement cycle |
A_Shift |
Total value accumulated during Shift A |
B_Shift |
Total value accumulated during Shift B |
C_Shift |
Total value accumulated during Shift C |
T_Total |
Sum of all shifts for Today |
Y_A_Shift |
Yesterday’s Shift A total |
Y_B_Shift |
Yesterday’s Shift B total |
Y_C_Shift |
Yesterday’s Shift C total |
Y_Total |
Sum of all shifts for Yesterday |
RESET Button |
Clears all totals (TOTAL, shift, today/yesterday) – use with proper permission |
Operating Behavior by Role
User Role | Permissions |
---|---|
Operator | View current flow and all totalizer values (read-only) |
Engineer | Modify C_Fac , set ByTime , validate shift logic |
Supervisor | Authorized to press RESET and reinitialize all totals |
⚠️ Only supervisors or engineers should reset total values during shift changes or planned maintenance.
How Shift Logic Works
- Shift windows (e.g., A: 06:00–14:00, B: 14:00–22:00, C: 22:00–06:00) are defined in logic.
- When system time crosses shift boundary:
- Current shift total is moved to yesterday.
- A new counter begins for the new shift.
- Resetting all totals does not alter the shift timing logic.
Best Practices for SHIFT_TOTALIZER
- Verify that
C_Fac
is configured per flow transmitter calibration. - Choose
ByTime
to match your flow signal unit (e.g., per sec/min/hr). - Use totals comparison (Today vs Yesterday) for production validation.
- Always backup totals before performing a RESET.
Visual Summary
Visual Field | Real-Time Behavior |
---|---|
TOTAL |
Shows live totalization update |
A/B/C_Shift |
Accumulates totals for each operator shift |
T_Total / Y_Total |
Daily and yesterday totals to aid in historical comparison |
Security and Access Control
Role | Access Type |
---|---|
Operator | Monitor only |
Engineer | Configure correction/time base |
Supervisor | Reset capability and full faceplate access |
Summary
The SHIFT_TOTALIZER block enhances process monitoring by enabling shift-wise accountability, total tracking, and historical comparison.
It integrates seamlessly into SCADA for operators, engineers, and supervisors to visualize and control flow totals.
✅ Real-time totals for A, B, and C shifts
✅ Separate Today and Yesterday values
✅ Faceplate with RESET, correction, and scaling
✅ Easy to link and reuse with Visu_page icon template
✅ Ideal for flow measurement, batching, and production lines
A must-have for processes where shift-wise performance tracking and historical audit is essential.