TPMOEEProductionIdentifier Property
General info
Label |
Identifier |
Description |
Specifies a product identifier for making a group name for product aggregation. |
Data type |
Int32 |
Default value |
1 (syslib.model.codes.TPMOEEAggregationProductIdentifier.PRODUCTCODE) |
Type |
CodingGroup |
Code |
14591 |
Symbolic name |
MODEL_PROP_TPMOEEPRODUCTIONIDENTIFIER |
Lua access code |
syslib.model.properties.TPMOEEProductionIdentifier |
Available since |
1.96 |
- Parent properties
Attributes
| Name | Tooltip |
|---|---|
| PROP_CONFIGURABLE | The property is configurable and can be changed with DataStudio and the various inmation APIs. |
| PROP_VISIBLE | The property is visible in DataStudio and can be read by the inmation APIs. |
| PROP_HAS_DEFAULT | The property has a default value as standard. |
Codings
Coding group: TPMOEEAggregationProductIdentifier
| Name | Code | Label | Tooltip |
|---|---|---|---|
PRODUCTCODE |
1 |
Product Code |
Product Code. |
PRODUCTNAME |
2 |
Product Name |
Product Name. |
AGGREGATIONTAG |
3 |
Aggregation Tag |
Aggregation Tag. |
Examples
Read from or write to the TPMOEEProductionIdentifier property.
-- Read from the TPMOEEProductionIdentifier
syslib.getvalue("<OBJECT FULL PATH>.TPMOEEAggregationOptions.TPMOEEProductionOptions.TPMOEEProductionGroupingOptions.TPMOEEProductionIdentificationOptions.TPMOEEProductionIdentifier")
-- Write to the TPMOEEProductionIdentifier
syslib.setvalue("<OBJECT FULL PATH>.TPMOEEAggregationOptions.TPMOEEProductionOptions.TPMOEEProductionGroupingOptions.TPMOEEProductionIdentificationOptions.TPMOEEProductionIdentifier",
syslib.model.codes.TPMOEEAggregationProductIdentifier.PRODUCTCODE)
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "<username>", Password = "<password>" };
StatelessInterface sli = new StatelessInterface(tcpcfg);
// Read from the TPMOEEProductionIdentifier
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.TPMOEEAggregationOptions.TPMOEEProductionOptions.TPMOEEProductionGroupingOptions.TPMOEEProductionIdentificationOptions.TPMOEEProductionIdentifier"));
// Write to the TPMOEEProductionIdentifier
Result result = sli.WriteValue(sc, new WriteItem(TPMOEEAggregationProductIdentifier.PRODUCTCODE, "<OBJECT FULL PATH>.TPMOEEAggregationOptions.TPMOEEProductionOptions.TPMOEEProductionGroupingOptions.TPMOEEProductionIdentificationOptions.TPMOEEProductionIdentifier"));
A switch-like function of the codings.
function get_coding_name(code)
local _tpmoeeapi = syslib.model.codes.TPMOEEAggregationProductIdentifier
if _tpmoeeapi.PRODUCTCODE==code then return 'PRODUCTCODE'
elseif _tpmoeeapi.PRODUCTNAME==code then return 'PRODUCTNAME'
elseif _tpmoeeapi.AGGREGATIONTAG==code then return 'AGGREGATIONTAG'
end
end
return get_coding_name(syslib.model.codes.TPMOEEAggregationProductIdentifier.PRODUCTCODE)