TPMOEEEquipmentErrorMapping Property
General info
Label |
Equipment Error Mapping |
Description |
Table property which can be used to define error code to erro message mapping, Value that is being fed to error message input has higher priority than this one. |
Data type |
String |
Default value |
"{\"meta\":{\"id\":\"urn:id:72:5\"}}" |
Type |
TableSchemaBound |
Code |
12799 |
Symbolic name |
MODEL_PROP_TPMOEEEQUIPMENTERRORMAPPING |
Lua access code |
syslib.model.properties.TPMOEEEquipmentErrorMapping |
Available since |
1.78 |
- 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. |
Schema Definition
Name: TPMOEEEquipmentErrorMapping
Description: Schema for equipment error mapping
- Columns
-
Column Data Type Nullable Unique Default Min Max Description Code String false false Code Message String false false Message
Examples
Read from or write to the TPMOEEEquipmentErrorMapping property.
-- Read from the TPMOEEEquipmentErrorMapping
syslib.getvalue("<OBJECT FULL PATH>.TPMOEEPerformanceOptions.TPMOEEEquipmentFailureOptions.TPMOEEEquipmentErrorMapping")
-- Write to the TPMOEEEquipmentErrorMapping
syslib.setvalue("<OBJECT FULL PATH>.TPMOEEPerformanceOptions.TPMOEEEquipmentFailureOptions.TPMOEEEquipmentErrorMapping", '{"meta":{"id":"urn:id:22:2"},"data":{"Input":[1.0,2.0],"Value":["v1","v2"]}}')
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "<username>", Password = "<password>" };
StatelessInterface sli = new StatelessInterface(tcpcfg);
// Read from the TPMOEEEquipmentErrorMapping
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.TPMOEEPerformanceOptions.TPMOEEEquipmentFailureOptions.TPMOEEEquipmentErrorMapping"));
// Write to the TPMOEEEquipmentErrorMapping
Result result = sli.WriteValue(sc, new WriteItem('{"meta":{"id":"urn:id:22:2"},"data":{"Input":[1.0,2.0],"Value":["v1","v2"]}}', "<OBJECT FULL PATH>.TPMOEEPerformanceOptions.TPMOEEEquipmentFailureOptions.TPMOEEEquipmentErrorMapping"));