Sepasoft MES Module Suite
Equipment Object Functions | Additional Factors
The functions listed below are associated with the Additional Factor Complex Property.
getTagPath()
Gets the Tag Path property for this Additional Factor Complex Property.
getTagPath()
- Parameters
None
- Returns
String tagPath - The Tag Path property string for this Additional Factor Complex Property.
- Scope
All
1 2 3 4 5 | #Get the Tag Path property for the 'CNC Jig Serial Number' Additional Factor in Cell 'Test Cell'cell_path = "New Enterprise\Site\Area\Test Line\Test Cell"cell_obj = system.mes.loadMESObjectByEquipmentPath(cell_path)AF_object = cell_obj.getComplexProperty('AdditionalFactor', 'CNC Jig Serial Number')print AF_object.getTagPath() |
[default]New Enterprise/Site/Area/Test Line/Test Cell/CNC12 Serial Number
hasTagPath()
Returns True if there is a Tag Path property value assigned to this Additional Factor Complex Property. Note: Use getTagPath() to retrieve the assigned Tag Path string.
hasTagPath()
- Parameters
None
- Returns
boolean hasTagPath - True if there is a Tag Path property value assigned to this Additional Factor Complex Property.
- Scope
All
1 2 3 4 5 | #Verify the existence of a Tag Path value for the 'CNC Jig Serial Number' Additional Factorcell_path = "New Enterprise\Site\Area\Test Line\Test Cell"cell_obj = system.mes.loadMESObjectByEquipmentPath(cell_path)AF_object = cell_obj.getComplexProperty('AdditionalFactor', 'CNC Jig Serial Number')print AF_object.hasTagPath() |
True
setTagPath(tagPath)
Sets the Tag Path for this MES Counter Complex Property.
setTagPath(tagPath)
- Parameters
String tagPath - The Tag Path to set for this Additional Factor Complex Property.
- Returns
None
- Scope
All
1 2 3 4 5 6 7 8 9 10 | #Set the Tag Path property to point at the "CNC12 Serial Number" tagcell_path = "New Enterprise\Site\Area\Test Line\Test Cell"tag_path = "[default]New Enterprise/Site/Area/Test Line/Test Cell/CNC12 Serial Number"cell_obj = system.mes.loadMESObjectByEquipmentPath(cell_path)AF_object = cell_obj.getComplexProperty('AdditionalFactor', 'CNC Jig Serial Number')AF_object.setTagPath(tag_path)system.mes.saveMESObject(cell_obj)cell_obj = system.mes.loadMESObjectByEquipmentPath(cell_path)AF_object = cell_obj.getComplexProperty('AdditionalFactor', 'CNC Jig Serial Number')print AF_object.getTagPath() |
[default]New Enterprise/Site/Area/Test Line/Test Cell/CNC12 Serial Number
This object inherits the AbstractMESComplexProperty functions.
Sepasoft MES Module Suite