Final project – part computation library
In automation, it is common to have to program PLCs to keep track of many aspects of the job that is running. For example, it is common for a plant to want to know the number of parts in a job, and the total amount of parts that were rejected. For an operation like this, the calculations are never going to change. Writing the calculation for each different machine is rather pointless and redundant. Depending on what you work on, it may be best to just create a library and consume the library in multiple projects. Our first order of business is to figure out our requirements for the project.
Requirements
The first step in developing a library is to gather the requirements. For this project, we need to create a library that will need to do the following:
- Compute the total parts created for a job
- Compute the number of parts lost for a job
With these requirements, we can deduce that we will need the following methods...