EquipmentModuleMapping Property
General info
Label |
Equipment Module Mapping |
Description |
Assign equipment modules to equipment identifiers. |
Data type |
String |
Default value |
"{\"meta\":{\"id\":\"urn:id:54:9\"}}" |
Type |
TableSchemaBound |
Code |
12378 |
Symbolic name |
MODEL_PROP_EQUIPMENTMODULEMAPPING |
Lua access code |
syslib.model.properties.EquipmentModuleMapping |
Available since |
1.66 |
- 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_OBJECTPATH | Property can receive object paths. |
Schema Definition
Name: EquipmentPhaseAssignment
Description: Assign equipment modules to equipment identifiers
- Columns
-
Column Data Type Nullable Unique Default Min Max Description EquipmentIdentifier Integer false false The numerical identifier of the equipment EquipmentModul String false false The Equipment Modul assigned to the Equipment
Examples
Read from or write to the EquipmentModuleMapping property.
-- Read from the EquipmentModuleMapping
syslib.getvalue("<OBJECT FULL PATH>.EquipmentAssignmentOptions.EquipmentModuleMappingOptions.EquipmentModuleMapping")
-- Write to the EquipmentModuleMapping
syslib.setvalue("<OBJECT FULL PATH>.EquipmentAssignmentOptions.EquipmentModuleMappingOptions.EquipmentModuleMapping", '{"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 EquipmentModuleMapping
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.EquipmentAssignmentOptions.EquipmentModuleMappingOptions.EquipmentModuleMapping"));
// Write to the EquipmentModuleMapping
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>.EquipmentAssignmentOptions.EquipmentModuleMappingOptions.EquipmentModuleMapping"));