I use a counter to count the total number of parts formed by the cobot using global variables. However, I would like to track how many parts are formed in every specific day. I am hoping this is something easy that I am unable to figure out, any assistance would be appreciated.
Clarifying:
I already have a counter and a Global variable in the Installation tab that counts the total number of parts formed.
I am however looking to find out how many parts are formed everyday the cobot runs. I need a script in the program that creates a new global variable everyday, stores the number of parts formed. I am looking to find out if there is a way to use the date from the controller to create a variable everyday.
Are you looking for something like a variable in the TP or like something you can export to a spreadsheet?
For the former you should be able to create a counter variable in your Installation then add a counter to your program(s) to increase that counter by 1 every cycle.
Thanks for the reply, however, I already have a counter and a Global variable in the Installation tab that counts the total number of parts formed, like the one you described.
I am however looking to find out how many parts are formed everyday the cobot runs. I need a script in the program that creates a new global variable everyday, stores the number of parts formed. I am looking to find out if there is a way to use the date from the controller to create a variable everyday.
This was built some time back, if you’re savvy with JavaScript/Python (or possibly have created a URcap before) you can modify this one to check controller time each day. You may need to add some functions for DateTime, but you could create a function to verify time elapsed and reset a count.
I’ve messed with this abit unfortunately I haven’t had the time or capacity to reconstruct the URcap (personally… I would like to see these functions added to Polyscope in future update)
Note: if you plan to use a function involving time, like any PC if its not connected to the web it will drift so make sure to update the time in the robot settings if it’s running offline.
If it gives you any peace of mind, the forum is almost certainly just using a generic Android or similar API for importing emojis. So if you’d like to take up arms against the pregnant man emoji you can email Google and Apple.
UR has the ability to add/delete emoji’s as they see fit. I find it sad that a forum based on supposed physical science would see this as acceptable.
Pretending to be something you’re not is fine, people do it all the time. But expecting society to go along with your imaginary world is offensive at best.
Another idea is to write the amount of parts every day at the end of the day in the log file and then clear the variable. In the log file you have automatically date and time written. (This is how we do it and keep the daily production figures.)
Another option would be a 3rd party URCap, if the robot is/can be connected to the internet.
We have used Insights by Robotiq and Beacon by Hirebotics to get KPIs. They save history and you can see them from your PC/Phone.