418 lines
10 KiB
JSON
418 lines
10 KiB
JSON
{
|
|
"custom": {
|
|
"dpm1-dpm2": true,
|
|
"dpm2-mcm": true,
|
|
"mcm-dpm1": true
|
|
},
|
|
"params": {
|
|
"tagProps": [
|
|
"DPM0_TAG",
|
|
"DPM1_TAG",
|
|
"DPM2_TAG"
|
|
]
|
|
},
|
|
"propConfig": {
|
|
"custom.dpm1-dpm2": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"1": "{view.params.tagProps[1]}",
|
|
"fc": "{session.custom.fc}"
|
|
},
|
|
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{1}/STATE"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"expression": "coalesce({value},{view.params.forceFaultStatus},1)",
|
|
"type": "expression"
|
|
},
|
|
{
|
|
"fallback": false,
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": 0,
|
|
"output": true
|
|
},
|
|
{
|
|
"input": 1,
|
|
"output": false
|
|
}
|
|
],
|
|
"outputType": "scalar",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.dpm2-mcm": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"2": "{view.params.tagProps[2]}",
|
|
"fc": "{session.custom.fc}"
|
|
},
|
|
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{2}/STATE"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"expression": "coalesce({value},{view.params.forceFaultStatus},1)",
|
|
"type": "expression"
|
|
},
|
|
{
|
|
"fallback": false,
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": 0,
|
|
"output": true
|
|
},
|
|
{
|
|
"input": 1,
|
|
"output": false
|
|
}
|
|
],
|
|
"outputType": "scalar",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.mcm-dpm1": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"0": "{view.params.tagProps[0]}",
|
|
"fc": "{session.custom.fc}"
|
|
},
|
|
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"expression": "coalesce({value},{view.params.forceFaultStatus},1)",
|
|
"type": "expression"
|
|
},
|
|
{
|
|
"fallback": false,
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": 0,
|
|
"output": true
|
|
},
|
|
{
|
|
"input": 1,
|
|
"output": false
|
|
}
|
|
],
|
|
"outputType": "scalar",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"params.tagProps": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 894,
|
|
"width": 1920
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"events": {
|
|
"dom": {
|
|
"onClick": {
|
|
"config": {
|
|
"script": "\tself.session.custom.dpm_view_path \u003d self.props.params.view\n\tself.session.custom.show_dpm_device_view \u003d True"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "MCM"
|
|
},
|
|
"position": {
|
|
"height": 0.5,
|
|
"width": 0.5,
|
|
"x": 0.5,
|
|
"y": 0.5
|
|
},
|
|
"propConfig": {
|
|
"props.params.InOn": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.custom.dpm2-mcm"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.params.OutOn": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.custom.mcm-dpm1"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"params": {
|
|
"InDown": false,
|
|
"InLeft": true,
|
|
"InUp": false,
|
|
"OutDown": false,
|
|
"OutRight": false,
|
|
"OutUp": true
|
|
},
|
|
"path": "Windows/Tabs/Enternet Windows/Components/EN4TR"
|
|
},
|
|
"type": "ia.display.view"
|
|
},
|
|
{
|
|
"events": {
|
|
"dom": {
|
|
"onClick": {
|
|
"config": {
|
|
"script": "\tself.session.custom.dpm_view_path \u003d self.props.params.view\n\tself.session.custom.show_dpm_device_view \u003d True"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "DPM1_DEVICE"
|
|
},
|
|
"position": {
|
|
"height": 0.5,
|
|
"width": 0.5,
|
|
"x": 0.5
|
|
},
|
|
"propConfig": {
|
|
"props.params.DownOn": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.custom.mcm-dpm1"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.params.InOn": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.custom.dpm1-dpm2"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.params.OutOn": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.custom.mcm-dpm1"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"params": {
|
|
"Down1": false,
|
|
"Down2": false,
|
|
"Down3": true,
|
|
"DownLeft": false,
|
|
"DownRight": false,
|
|
"InDown": false,
|
|
"InLeft": true,
|
|
"InUp": false,
|
|
"OutDown": true,
|
|
"OutRight": false,
|
|
"OutUp": false,
|
|
"view": "Windows/Tabs/Enternet Windows/DPMs/DPM Devices/MCM01/DPM1_DEVICE"
|
|
},
|
|
"path": "Windows/Tabs/Enternet Windows/Components/DPM_BLOCK"
|
|
},
|
|
"type": "ia.display.view"
|
|
},
|
|
{
|
|
"events": {
|
|
"dom": {
|
|
"onClick": {
|
|
"config": {
|
|
"script": "\tself.session.custom.dpm_view_path \u003d self.props.params.view\n\tself.session.custom.show_dpm_device_view \u003d True"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "DPM2_DEVICE"
|
|
},
|
|
"position": {
|
|
"height": 0.5,
|
|
"width": 0.5
|
|
},
|
|
"propConfig": {
|
|
"props.params.DownOn": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.custom.dpm2-mcm"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.params.InOn": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.custom.dpm2-mcm"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.params.OutOn": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.custom.dpm1-dpm2"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"params": {
|
|
"Down1": false,
|
|
"Down2": true,
|
|
"Down3": false,
|
|
"DownLeft": false,
|
|
"DownRight": false,
|
|
"InDown": true,
|
|
"InLeft": false,
|
|
"InUp": false,
|
|
"OutDown": false,
|
|
"OutRight": true,
|
|
"OutUp": false,
|
|
"view": "Windows/Tabs/Enternet Windows/DPMs/DPM Devices/MCM01/DPM2_DEVICE"
|
|
},
|
|
"path": "Windows/Tabs/Enternet Windows/Components/DPM_BLOCK"
|
|
},
|
|
"type": "ia.display.view"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "DPM1_label"
|
|
},
|
|
"position": {
|
|
"height": 0.0358,
|
|
"width": 0.0547,
|
|
"x": 0.5,
|
|
"y": 0.1
|
|
},
|
|
"props": {
|
|
"text": "DPM1_TEXT",
|
|
"textStyle": {
|
|
"fontSize": "1vmin"
|
|
}
|
|
},
|
|
"type": "ia.display.label"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "DPM2_label"
|
|
},
|
|
"position": {
|
|
"height": 0.0358,
|
|
"width": 0.0547,
|
|
"x": 0.01,
|
|
"y": 0.1
|
|
},
|
|
"props": {
|
|
"text": "DPM2_TEXT",
|
|
"textStyle": {
|
|
"fontSize": "1vmin"
|
|
}
|
|
},
|
|
"type": "ia.display.label"
|
|
},
|
|
{
|
|
"events": {
|
|
"dom": {
|
|
"onClick": {
|
|
"config": {
|
|
"script": "\tself.session.custom.dpm_view_path \u003d self.props.params.view\n\tself.session.custom.show_dpm_device_view \u003d True"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "DPM2_DEVICE_0"
|
|
},
|
|
"position": {
|
|
"height": 0.5,
|
|
"width": 0.5,
|
|
"y": 0.5
|
|
},
|
|
"propConfig": {
|
|
"props.params.On": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.custom.dpm2-mcm"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"params": {
|
|
"LD": false,
|
|
"LR": false,
|
|
"LRD": false,
|
|
"LRU": false,
|
|
"LU": false,
|
|
"RD": false,
|
|
"RLD": false,
|
|
"RLU": true,
|
|
"RU": false
|
|
},
|
|
"path": "Windows/Tabs/Enternet Windows/Components/CommLines"
|
|
},
|
|
"type": "ia.display.view"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "root"
|
|
},
|
|
"position": {
|
|
"x": 120,
|
|
"y": -723
|
|
},
|
|
"props": {
|
|
"mode": "percent",
|
|
"style": {
|
|
"backgroundColor": "#ffffff"
|
|
}
|
|
},
|
|
"type": "ia.container.coord"
|
|
}
|
|
} |