User Tools

Site Tools


events_in_machine_monitoring

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
events_in_machine_monitoring [2020/12/02 15:16] emozolyakevents_in_machine_monitoring [2022/01/15 19:06] (current) – ↷ Links adapted because of a move operation 127.0.0.1
Line 1: Line 1:
 ====== Using events, lua, screens and JS for complex reports ====== ====== Using events, lua, screens and JS for complex reports ======
  
 +In this application, the customer had production line with multiple machine installed. There were PLCs in each machine which counted run, stop, failure hours and performance counter. 
 +
 +The task was to create a report in WebHMI for each machine with these figures for the given period.
 +{{ network:machines_task.png?direct&600 |}}
 +
 +There is an event report builder, but it in this application it would had the following drawbacks: 
 +  *N reports would have to be configured.  
 +  *For each N several events would have to set up - for day, night, shifts, weeks etc reports
 +  *There reports would likely be occasionally broken at the times when admin changes something in the project.
 +
 +Because all data were logged and existed in the DB, a self-evident appeal arised for the solution or tool, which just would made a request for the required data in the DB and showed them. 
 +
 +After considering possible solution, the following WebHMI's functionanlity helped to create a __single elegant tool__:
 +   *Screen with dashboard where user chooses time period for the machine and the machine number
 +   *Screen widgets: register value to show perfomance data and pie chart to show percentage of run/stop hours
 +   *Lua script which makes API request to WebHMI itself for the run, stop, performace counter values and calculates the differences
 +   *Graph to show how the machine performed during this time
 +   *JS to modifiy graph properties (parameter to show and time axis settings)
 +
 +{{ network:solution_structure.png?direct&800 |}}
 +
 +{{ network:screen_shot_eng.png?direct&800 |}}
  
  
events_in_machine_monitoring.1606922201.txt.gz · Last modified: 2020/12/02 15:16 by emozolyak

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki