system.mes.getTagCollectorLastValue

Sepasoft MES Module Suite

system.mes.getTagCollectorLastValue(equipmentPath, collectorType, key)

Return the last value chronologically recorded by this MES tag collector.

Syntax

system.mes.getTagCollectorLastValue(equipmentPath, collectorType, key)

Parameters

String equipmentPath - The path from the production model to the desired equipment. 

String collectorType - The name of the tag collector type.

String key - Where there are multiple instances of a tag collector type, this specifies which one to use. For example, there can be multiple MES counters for the "Equipment Count" tag collector type. If not needed, pass an empty string. In other words it is the name of the MES counter or the name of the Additional Factor.

Returns

Object value - The last chronological recorded value. 

Scope

All

Code Example

Python
equipmentPath = equipmentPath = '[global]\\Enterprise\\San Marcos\\MP Rotator\\MP Rotator 1'   
collectorType = 'Equipment State'
key = ''
print system.mes.getTagCollectorLastValue(equipmentPath, collectorType, key)

Output

Code
 89

Sepasoft MES Module Suite