Equipment Object Functions - Additional Factor

Sepasoft MES Module Suite

Equipment Object Functions | Additional Factors

The functions listed below are associated with the Additional Factor Complex Property.



 

getTagPath()

Description

Gets the Tag Path property for this Additional Factor Complex Property.

Syntax

getTagPath()

  • Parameters

None

  • Returns

 String tagPath - The Tag Path property string for this Additional Factor Complex Property.

  • Scope

All

Code Example
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()
Output

[default]New Enterprise/Site/Area/Test Line/Test Cell/CNC12 Serial Number

 

hasTagPath()

Description

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.

Syntax

hasTagPath()

  • Parameters

None

  • Returns

 boolean hasTagPath - True if there is a Tag Path property value assigned to this Additional Factor Complex Property.

  • Scope

All

Code Example
1
2
3
4
5
#Verify the existence of a Tag Path value for the 'CNC Jig Serial Number' Additional Factor
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.hasTagPath()
Output

True

 

setTagPath(tagPath)

Description

Sets the Tag Path for this MES Counter Complex Property.

Syntax

setTagPath(tagPath)

  • Parameters

String tagPath - The Tag Path to set for this Additional Factor Complex Property.

  • Returns

None

  • Scope

All

Code Example
1
2
3
4
5
6
7
8
9
10
#Set the Tag Path property to point at the "CNC12 Serial Number" tag
cell_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()
Output

[default]New Enterprise/Site/Area/Test Line/Test Cell/CNC12 Serial Number

This object inherits the AbstractMESComplexProperty functions.

Sepasoft MES Module Suite