Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
mitjap
Contributor III
Contributor III

Mes system - cycle analysis

Hello.

i would like to build app for production control. in future i hope to integrete this with sql so i get real time control over machines

this is my problem

Table one: i get this times form Mes cycle data

part numberfeature_timestampvirsifra
300 50022.09.2021 11:26:34163
300 50022.09.2021 11:18:13163
300 50022.09.2021 11:08:13163
300 50022.09.2021 10:59:53163
300 50022.09.2021 10:51:33163
300 20022.09.2021 10:43:12163
300 20022.09.2021 10:34:52163
300 20022.09.2021 10:27:22163

 

data from ERP. gives time when part needs to be finished

part numbernormative
300 5009
300 2007

 

extra table with status i need for control

status
Late
In time
first cycle

 

result

part numberfeature_timestampvirsifrastatus
300 50022.09.2021 11:26:34163in time
300 50022.09.2021 11:18:13163late
300 50022.09.2021 11:08:13163in time
300 50022.09.2021 10:59:53163in time
300 50022.09.2021 10:51:33163first cycle
300 20022.09.2021 10:43:12163late
300 20022.09.2021 10:34:52163late
300 20022.09.2021 10:27:22163first cycle

 

If timedifference is less or more as normative for part, correct ststaus shows

Any help is very welcomed

0 Replies