Overview
Before you begin using Track and Trace, here are several recommendations and issues to consider when using it.
Applies To and Version Info
This feature applies to Track and Trace module and is applicable to every version.
Tips
- Work from a Material Process Flow diagram.
- Scope: Keep MES objects synchronized between the Client and Gateway.
BAD PRACTICE
|
|
CORRECT PRACTICE
|
OR
|
3. Avoid <any equipment> used with <any material> on the same material property of a segment. If it is used, set the autoAssign parameter of the system.mes.createSegment script function to False.
4. When using <any equipment> on a material property of a segment, make sure the auto assign property is set to false.
5. Use system.mes.executeSegmentImmediately or seg.executeImmediately script function for high speed operations.
6. Use system.mes.executeSegmentImmediately or seg.executeImmediately script function for operations that don’t have a duration associated with them.
|
Use executeImmediately() with a datestamp for operations that occurred in the past. Don’t use executeImmediately() for operations with multiple segments. Don’t mix execute() and executeImmediately() calls on the same gateway. The execute() lock can impact performance of executeImmediately(). |
7. Set the ignoreVersion parameter of the system.mes.createSegment script function to True to increase performance of repetitive operations that don’t change.
8. Use seg.getAvailableMaterialLots if a material property is set to <any equipment>.
Code |
|
|
The method setMaterialBypassChecks bypasses check if material is correct for the material property, ignores the net quantity. |
9. Don’t run more segments than is needed for the required output.
10. Don’t overuse Custom Properties.
11. Make sure you always use a double for the quantity parameter of the segment’s setMaterial methods.
12. In the database, don’t add UUID to clustered index. Clustered indexes are required for database synchronization. Adding an identity column and using it in the clustered index will yield the best performance.
13. The database is the constraining factor in performance of a Track and Trace implementation.
14. Database best practices:
- While replicating database, do not write direct queries to the MES tables.
- It can affect performance if tables are locked.
- Don’t modify the table schema.