Merge pull request 'MTN6-1, MTN6-2, MTN6-3, MTN6-4' (#150) from beka-1 into main

Reviewed-on: #150
This commit is contained in:
gigi.mamaladze 2025-07-02 08:11:56 +00:00
commit 21111905bf
7 changed files with 824 additions and 925 deletions

View File

@ -441,16 +441,12 @@
},
"transforms": [
{
"fallback": "#000000",
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "UNKNOWN",
"output": "#FFFFFF"
},
{
"input": "FALSE",
"output": "#D5D5D5"
}
],
"outputType": "color",
@ -473,16 +469,20 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression"
},
{
"fallback": "FALSE",
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "TRUE"
"output": "FAULTED"
},
{
"input": 0,
"output": "NOT FAULTED"
}
],
"outputType": "scalar",
@ -503,12 +503,12 @@
"inputType": "scalar",
"mappings": [
{
"input": "FALSE",
"output": "#FF0000"
"input": "NOT FAULTED",
"output": "#47FF47"
},
{
"input": "FALSE",
"output": "#47FF47"
"input": "FAULTED",
"output": "#FF0000"
}
],
"outputType": "color",
@ -577,6 +577,7 @@
"grow": 1
},
"props": {
"currentTabIndex": 1,
"menuType": "modern",
"tabSize": {
"width": 1000

View File

@ -1,6 +1,14 @@
{
"custom": {
"PLC_list": null,
"PLC_list": [
"MCM01",
"MCM02",
"MCM03",
"MCM04",
"MCM05",
"MCM06",
"MCM07"
],
"running_state": -1,
"state": 0,
"views_data": []
@ -397,304 +405,6 @@
},
"type": "ia.container.flex"
},
{
"children": [
{
"children": [
{
"meta": {
"name": "Name"
},
"position": {
"basis": "50%",
"grow": 1
},
"props": {
"style": {
"paddingLeft": 20
},
"text": "FULL"
},
"type": "ia.display.label"
},
{
"meta": {
"name": "Full"
},
"position": {
"basis": "50%",
"grow": 1
},
"propConfig": {
"props.style.backgroundColor": {
"binding": {
"config": {
"path": "this.props.text"
},
"transforms": [
{
"fallback": "#000000",
"inputType": "scalar",
"mappings": [
{
"input": "FULL",
"output": "#FFFFFF"
},
{
"input": "NOT FULL",
"output": "#D5D5D5"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "property"
}
},
"props.text": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Pressed"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "NOT FULL",
"inputType": "scalar",
"mappings": [
{
"input": true,
"output": "FULL"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "tag"
}
},
"props.textStyle.color": {
"binding": {
"config": {
"path": "this.props.text"
},
"transforms": [
{
"fallback": "#000000",
"inputType": "scalar",
"mappings": [
{
"input": "FULL",
"output": "#FF0000"
},
{
"input": "NOT FULL",
"output": "#47FF47"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "property"
}
}
},
"props": {
"style": {
"classes": "Text-Styles/Ariel-Bold-12pt",
"paddingLeft": 10
}
},
"type": "ia.display.label"
}
],
"meta": {
"name": "Property"
},
"position": {
"basis": "35px",
"shrink": 2
},
"props": {
"style": {
"classes": "PopUp-Styles/InfoLabel"
}
},
"type": "ia.container.flex"
}
],
"meta": {
"name": "Full"
},
"position": {
"basis": "35px"
},
"props": {
"direction": "column"
},
"type": "ia.container.flex"
},
{
"children": [
{
"children": [
{
"meta": {
"name": "Name"
},
"position": {
"basis": "50%",
"grow": 1
},
"props": {
"style": {
"paddingLeft": 20
},
"text": "EXTENDO FAULTED"
},
"type": "ia.display.label"
},
{
"meta": {
"name": "Extendo Faulted"
},
"position": {
"basis": "50%",
"grow": 1
},
"propConfig": {
"props.style.backgroundColor": {
"binding": {
"config": {
"path": "this.props.text"
},
"transforms": [
{
"fallback": "#000000",
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"output": "#FFFFFF"
},
{
"input": "FALSE",
"output": "#D5D5D5"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "property"
}
},
"props.text": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Extendo_Faulted"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "FALSE",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "TRUE"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "tag"
}
},
"props.textStyle.color": {
"binding": {
"config": {
"path": "this.props.text"
},
"transforms": [
{
"fallback": "#000000",
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"output": "#FF0000"
},
{
"input": "FALSE",
"output": "#47FF47"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "property"
}
}
},
"props": {
"style": {
"classes": "Text-Styles/Ariel-Bold-12pt",
"paddingLeft": 10
}
},
"type": "ia.display.label"
}
],
"meta": {
"name": "Property"
},
"position": {
"basis": "35px",
"shrink": 2
},
"props": {
"style": {
"classes": "PopUp-Styles/InfoLabel"
}
},
"type": "ia.container.flex"
}
],
"meta": {
"name": "Extendo Faulted"
},
"position": {
"basis": "35px"
},
"props": {
"direction": "column"
},
"type": "ia.container.flex"
},
{
"children": [
{
@ -731,16 +441,12 @@
},
"transforms": [
{
"fallback": "#000000",
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "UNKNOWN",
"output": "#FFFFFF"
},
{
"input": "FALSE",
"output": "#D5D5D5"
}
],
"outputType": "color",
@ -763,16 +469,20 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression"
},
{
"fallback": "FALSE",
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "TRUE"
"output": "ACTIVE"
},
{
"input": 0,
"output": "NOT ACTIVE"
}
],
"outputType": "scalar",
@ -793,12 +503,12 @@
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"output": "#FF0000"
"input": "ACTIVE",
"output": "#47FF47"
},
{
"input": "FALSE",
"output": "#47FF47"
"input": "NOT ACTIVE",
"output": "#FF0000"
}
],
"outputType": "color",
@ -880,16 +590,12 @@
},
"transforms": [
{
"fallback": "#000000",
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "UNKNOWN",
"output": "#FFFFFF"
},
{
"input": "FALSE",
"output": "#D5D5D5"
}
],
"outputType": "color",
@ -912,16 +618,20 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression"
},
{
"fallback": "FALSE",
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "TRUE"
"output": "EXTENDED"
},
{
"input": 0,
"output": "NOT EXTENDED"
}
],
"outputType": "scalar",
@ -942,12 +652,12 @@
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"output": "#FF0000"
"input": "EXTENDED",
"output": "#47FF47"
},
{
"input": "FALSE",
"output": "#47FF47"
"input": "NOT EXTENDED",
"output": "#FF0000"
}
],
"outputType": "color",
@ -1029,16 +739,12 @@
},
"transforms": [
{
"fallback": "#000000",
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "UNKNOWN",
"output": "#FFFFFF"
},
{
"input": "FALSE",
"output": "#D5D5D5"
}
],
"outputType": "color",
@ -1061,16 +767,20 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression"
},
{
"fallback": "FALSE",
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "TRUE"
"output": "RETRACTED"
},
{
"input": 0,
"output": "NOT RETRACTED"
}
],
"outputType": "scalar",
@ -1091,12 +801,12 @@
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"output": "#FF0000"
"input": "RETRACTED",
"output": "#47FF47"
},
{
"input": "FALSE",
"output": "#47FF47"
"input": "NOT RETRACTED",
"output": "#FF0000"
}
],
"outputType": "color",
@ -1178,16 +888,12 @@
},
"transforms": [
{
"fallback": "#000000",
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "UNKNOWN",
"output": "#FFFFFF"
},
{
"input": "FALSE",
"output": "#D5D5D5"
}
],
"outputType": "color",
@ -1210,16 +916,20 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression"
},
{
"fallback": "FALSE",
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "TRUE"
"output": "ON"
},
{
"input": 0,
"output": "OFF"
}
],
"outputType": "scalar",
@ -1240,12 +950,12 @@
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"output": "#FF0000"
"input": "ON",
"output": "#47FF47"
},
{
"input": "FALSE",
"output": "#47FF47"
"input": "OFF",
"output": "#FF0000"
}
],
"outputType": "color",
@ -1327,16 +1037,12 @@
},
"transforms": [
{
"fallback": "#000000",
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "UNKNOWN",
"output": "#FFFFFF"
},
{
"input": "FALSE",
"output": "#D5D5D5"
}
],
"outputType": "color",
@ -1359,16 +1065,20 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression"
},
{
"fallback": "FALSE",
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "TRUE"
"output": "ON"
},
{
"input": 0,
"output": "OFF"
}
],
"outputType": "scalar",
@ -1389,12 +1099,12 @@
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"output": "#FF0000"
"input": "ON",
"output": "#47FF47"
},
{
"input": "FALSE",
"output": "#47FF47"
"input": "OFF",
"output": "#FF0000"
}
],
"outputType": "color",
@ -1476,7 +1186,7 @@
},
"transforms": [
{
"fallback": "#000000",
"fallback": "#FFFFFF",
"inputType": "scalar",
"mappings": [
{
@ -1504,20 +1214,24 @@
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Power_Saving_Mode"
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Unloading_Mode"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression"
},
{
"fallback": "FALSE",
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "TRUE"
"output": "ON"
},
{
"input": 0,
"output": "OFF"
}
],
"outputType": "scalar",
@ -1538,12 +1252,12 @@
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"output": "#FF0000"
"input": "ON",
"output": "#47FF47"
},
{
"input": "FALSE",
"output": "#47FF47"
"input": "OFF",
"output": "#FF0000"
}
],
"outputType": "color",
@ -1641,33 +1355,9 @@
"props.style.backgroundColor": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/PEC_Override_PB"
"expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#9661A3\",\r\n if(\r\n {this.props.text} \u003d \"PEC OVERRIDE: ON\",\r\n \"#E888FF\",\r\n if(\r\n {this.props.text} \u003d \"PEC OVERRIDE: OFF\",\r\n \"#CC00FF\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "#FF0000",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "#FF9191"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "tag"
"type": "expr"
}
},
"props.text": {
@ -1687,12 +1377,12 @@
"type": "expression"
},
{
"fallback": "PEC OVERRIDE",
"fallback": "PEC OVERRIDE: OFF",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "PEC OVERRIDE PRESSED"
"output": "PEC OVERRIDE: ON"
}
],
"outputType": "scalar",
@ -1704,7 +1394,6 @@
}
},
"props": {
"image": {},
"style": {
"classes": "Background-Styles/Controller"
}
@ -1759,33 +1448,9 @@
"props.style.backgroundColor": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Extendo_Faults_Reset_PB"
"expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#BB5050\",\r\n if(\r\n {this.props.text} \u003d \"EXTENDO FAULTS RESET PRESSED\",\r\n \"#FF9191\",\r\n if(\r\n {this.props.text} \u003d \"EXTENDO FAULTS RESET\",\r\n \"#FF0000\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "#FF0000",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "#FF9191"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "tag"
"type": "expr"
}
},
"props.text": {
@ -1886,6 +1551,7 @@
"grow": 1
},
"props": {
"currentTabIndex": 1,
"menuType": "modern",
"tabSize": {
"width": 1000

View File

@ -1,13 +1,21 @@
{
"custom": {
"PLC_list": null,
"PLC_list": [
"MCM01",
"MCM02",
"MCM03",
"MCM04",
"MCM05",
"MCM06",
"MCM07"
],
"running_state": -1,
"state": 0,
"views_data": []
},
"params": {
"tagProps": [
"/System/Station/Buttons/UL1_3_JR_PB2",
"/System/Station/JR/UL1_3_JR_PB1",
"value",
"value",
"value",
@ -433,16 +441,12 @@
},
"transforms": [
{
"fallback": "#000000",
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "ON",
"input": "UNKNOWN",
"output": "#FFFFFF"
},
{
"input": "OFF",
"output": "#D5D5D5"
}
],
"outputType": "color",
@ -465,20 +469,20 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression"
},
{
"fallback": "OFF",
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": false,
"output": "OFF"
},
{
"input": true,
"output": "ON"
},
{
"input": false,
"output": "OFF"
}
],
"outputType": "scalar",
@ -500,11 +504,11 @@
"mappings": [
{
"input": "ON",
"output": "#FF0000"
"output": "#47FF47"
},
{
"input": "OFF",
"output": "#47FF47"
"output": "#FF0000"
}
],
"outputType": "color",
@ -598,6 +602,46 @@
},
"type": "expr"
}
},
"props.style.backgroundColor": {
"binding": {
"config": {
"expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#B17B50\",\r\n if(\r\n {this.props.text} \u003d \"JAM RESET PRESSED\",\r\n \"#FFB988\",\r\n if(\r\n {this.props.text} \u003d \"JAM RESET\",\r\n \"#FE9240\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n"
},
"type": "expr"
}
},
"props.text": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Start_PB"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "JAM RESET",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "JAM RESET PRESSED"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "tag"
}
}
},
"props": {
@ -607,10 +651,8 @@
}
},
"style": {
"backgroundColor": "#FE9240",
"classes": "Background-Styles/Controller"
},
"text": "RESET JAM"
}
},
"type": "ia.input.button"
}

View File

@ -1,6 +1,14 @@
{
"custom": {
"PLC_list": null,
"PLC_list": [
"MCM01",
"MCM02",
"MCM03",
"MCM04",
"MCM05",
"MCM06",
"MCM07"
],
"running_state": -1,
"state": 0,
"views_data": []
@ -433,16 +441,12 @@
},
"transforms": [
{
"fallback": "#000000",
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "UNKNOWN",
"output": "#FFFFFF"
},
{
"input": "FALSE",
"output": "#D5D5D5"
}
],
"outputType": "color",
@ -465,16 +469,20 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression"
},
{
"fallback": "FALSE",
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "TRUE"
"output": "MOTOR FAULTED"
},
{
"input": 0,
"output": "MOTOR NOT FAULTED"
}
],
"outputType": "scalar",
@ -495,11 +503,11 @@
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "MOTOR FAULTED",
"output": "#FF0000"
},
{
"input": "FALSE",
"input": "MOTOR NOT FAULTED",
"output": "#47FF47"
}
],
@ -582,16 +590,12 @@
},
"transforms": [
{
"fallback": "#000000",
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "UNKNOWN",
"output": "#FFFFFF"
},
{
"input": "FALSE",
"output": "#D5D5D5"
}
],
"outputType": "color",
@ -614,16 +618,20 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression"
},
{
"fallback": "FALSE",
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "TRUE"
"output": "JAM FAULTED"
},
{
"input": 0,
"output": "JAM NOT FAULTED"
}
],
"outputType": "scalar",
@ -644,11 +652,11 @@
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"output": "#FF0000"
"input": "JAM FAULTED",
"output": "#FFC000"
},
{
"input": "FALSE",
"input": "JAM NOT FAULTED",
"output": "#47FF47"
}
],
@ -731,16 +739,12 @@
},
"transforms": [
{
"fallback": "#000000",
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "UNKNOWN",
"output": "#FFFFFF"
},
{
"input": "FALSE",
"output": "#D5D5D5"
}
],
"outputType": "color",
@ -763,16 +767,20 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression"
},
{
"fallback": "FALSE",
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "TRUE"
"output": "DE ENERGIZED"
},
{
"input": 0,
"output": "NOT DE ENERGIZED"
}
],
"outputType": "scalar",
@ -793,11 +801,11 @@
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "DE ENERGIZED",
"output": "#FF0000"
},
{
"input": "FALSE",
"input": "NOT DE ENERGIZED",
"output": "#47FF47"
}
],
@ -880,16 +888,12 @@
},
"transforms": [
{
"fallback": "#000000",
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "UNKNOWN",
"output": "#FFFFFF"
},
{
"input": "FALSE",
"output": "#D5D5D5"
}
],
"outputType": "color",
@ -912,16 +916,20 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression"
},
{
"fallback": "FALSE",
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "TRUE"
"output": "ESTOPPED"
},
{
"input": 0,
"output": "NOT ESTOPPED"
}
],
"outputType": "scalar",
@ -942,11 +950,11 @@
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "ESTOPPED",
"output": "#FF0000"
},
{
"input": "FALSE",
"input": "NOT ESTOPPED",
"output": "#47FF47"
}
],
@ -1029,16 +1037,12 @@
},
"transforms": [
{
"fallback": "#000000",
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "UNKNOWN",
"output": "#FFFFFF"
},
{
"input": "FALSE",
"output": "#D5D5D5"
}
],
"outputType": "color",
@ -1061,16 +1065,20 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression"
},
{
"fallback": "FALSE",
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "TRUE"
"output": "ESTOPPED"
},
{
"input": 0,
"output": "NOT ESTOPPED"
}
],
"outputType": "scalar",
@ -1091,11 +1099,11 @@
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "ESTOPPED",
"output": "#FF0000"
},
{
"input": "FALSE",
"input": "NOT ESTOPPED",
"output": "#47FF47"
}
],
@ -1178,16 +1186,12 @@
},
"transforms": [
{
"fallback": "#000000",
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "UNKNOWN",
"output": "#FFFFFF"
},
{
"input": "FALSE",
"output": "#D5D5D5"
}
],
"outputType": "color",
@ -1210,16 +1214,20 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression"
},
{
"fallback": "FALSE",
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "TRUE"
"output": "STOPPED"
},
{
"input": 0,
"output": "NOT STOPPED"
}
],
"outputType": "scalar",
@ -1240,11 +1248,11 @@
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "STOPPED",
"output": "#FF0000"
},
{
"input": "FALSE",
"input": "NOT STOPPED",
"output": "#47FF47"
}
],
@ -1327,16 +1335,12 @@
},
"transforms": [
{
"fallback": "#000000",
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "UNKNOWN",
"output": "#FFFFFF"
},
{
"input": "FALSE",
"output": "#D5D5D5"
}
],
"outputType": "color",
@ -1359,16 +1363,20 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression"
},
{
"fallback": "FALSE",
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "TRUE"
"output": "SWITCH FAULTED"
},
{
"input": 0,
"output": "SWITCH NOT FAULTED"
}
],
"outputType": "scalar",
@ -1389,11 +1397,11 @@
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "SWITCH FAULTED",
"output": "#FF0000"
},
{
"input": "FALSE",
"input": "SWITCH NOT FAULTED",
"output": "#47FF47"
}
],
@ -1476,16 +1484,12 @@
},
"transforms": [
{
"fallback": "#000000",
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "UNKNOWN",
"output": "#FFFFFF"
},
{
"input": "FALSE",
"output": "#D5D5D5"
}
],
"outputType": "color",
@ -1508,16 +1512,20 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression"
},
{
"fallback": "FALSE",
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "TRUE"
"output": "ON UPS BATTERY"
},
{
"input": 0,
"output": "NOT ON UPS BATTERY"
}
],
"outputType": "scalar",
@ -1538,11 +1546,11 @@
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "NOT ON UPS BATTERY",
"output": "#FF0000"
},
{
"input": "FALSE",
"input": "NOT ON UPS BATTERY",
"output": "#47FF47"
}
],
@ -1625,16 +1633,12 @@
},
"transforms": [
{
"fallback": "#000000",
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "UNKNOWN",
"output": "#FFFFFF"
},
{
"input": "FALSE",
"output": "#D5D5D5"
}
],
"outputType": "color",
@ -1657,16 +1661,20 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression"
},
{
"fallback": "FALSE",
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "TRUE"
"output": "BATTERY FAULTED"
},
{
"input": 0,
"output": "BATTERY NOT FAULTED"
}
],
"outputType": "scalar",
@ -1687,11 +1695,11 @@
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "BATTERY FAULTED",
"output": "#FF0000"
},
{
"input": "FALSE",
"input": "BATTERY NOT FAULTED",
"output": "#47FF47"
}
],
@ -1774,16 +1782,12 @@
},
"transforms": [
{
"fallback": "#000000",
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "UNKNOWN",
"output": "#FFFFFF"
},
{
"input": "FALSE",
"output": "#D5D5D5"
}
],
"outputType": "color",
@ -1806,16 +1810,20 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression"
},
{
"fallback": "FALSE",
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "TRUE"
"output": "BATTERY LOW"
},
{
"input": 0,
"output": "BATTERY NOT LOW"
}
],
"outputType": "scalar",
@ -1836,11 +1844,11 @@
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "BATTERY LOW",
"output": "#FF0000"
},
{
"input": "FALSE",
"input": "BATTERY NOT LOW",
"output": "#47FF47"
}
],
@ -1923,16 +1931,12 @@
},
"transforms": [
{
"fallback": "#000000",
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "UNKNOWN",
"output": "#FFFFFF"
},
{
"input": "FALSE",
"output": "#D5D5D5"
}
],
"outputType": "color",
@ -1955,16 +1959,20 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression"
},
{
"fallback": "FALSE",
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "TRUE"
"output": "ON"
},
{
"input": 0,
"output": "OFF"
}
],
"outputType": "scalar",
@ -1985,11 +1993,11 @@
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "ON",
"output": "#FF0000"
},
{
"input": "FALSE",
"input": "OFF",
"output": "#47FF47"
}
],
@ -2072,16 +2080,12 @@
},
"transforms": [
{
"fallback": "#000000",
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "UNKNOWN",
"output": "#FFFFFF"
},
{
"input": "FALSE",
"output": "#D5D5D5"
}
],
"outputType": "color",
@ -2104,16 +2108,20 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression"
},
{
"fallback": "FALSE",
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "TRUE"
"output": "UPS FAULTED"
},
{
"input": 0,
"output": "UPS NOT FAULTED"
}
],
"outputType": "scalar",
@ -2134,11 +2142,11 @@
"inputType": "scalar",
"mappings": [
{
"input": "TRUE",
"input": "UPS FAULTED",
"output": "#FF0000"
},
{
"input": "FALSE",
"input": "UPS NOT FAULTED",
"output": "#47FF47"
}
],
@ -2237,37 +2245,9 @@
"props.style.backgroundColor": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Start_PB_STATE"
"expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#7DB17D\",\r\n if(\r\n {this.props.text} \u003d \"STARTED\",\r\n \"#009400\",\r\n if(\r\n {this.props.text} \u003d \"START\",\r\n \"#00D900\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "#00D900",
"inputType": "scalar",
"mappings": [
{
"input": 2,
"output": "#009400"
},
{
"input": 4,
"output": "#009400"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "tag"
"type": "expr"
}
},
"props.text": {
@ -2367,33 +2347,9 @@
"props.style.backgroundColor": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Stop_PB"
"expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#BB5050\",\r\n if(\r\n {this.props.text} \u003d \"STOP PRESSED\",\r\n \"#FF9191\",\r\n if(\r\n {this.props.text} \u003d \"STOP\",\r\n \"#FF0000\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "#FF0000",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "#FF8787"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "tag"
"type": "expr"
}
},
"props.text": {
@ -2489,37 +2445,9 @@
"props.style.backgroundColor": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Motor_Fault_Reset_PB_STATE"
"expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#BCBC52\",\r\n if(\r\n {this.props.text} \u003d \"MOTOR FAULT RESET PRESSED\",\r\n \"#FCFF86\",\r\n if(\r\n {this.props.text} \u003d \"MOTOR FAULT RESET\",\r\n \"#DCDC03\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "#DCDC03",
"inputType": "scalar",
"mappings": [
{
"input": 2,
"output": "#FCFF86"
},
{
"input": 4,
"output": "#FCFF86"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "tag"
"type": "expr"
}
},
"props.text": {
@ -2541,7 +2469,16 @@
{
"fallback": "MOTOR FAULT RESET",
"inputType": "scalar",
"mappings": [],
"mappings": [
{
"input": 2,
"output": "MOTOR FAULT RESET PRESSED"
},
{
"input": 4,
"output": "MOTOR FAULT RESET PRESSED"
}
],
"outputType": "scalar",
"type": "map"
}
@ -2614,37 +2551,9 @@
"props.style.backgroundColor": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Power_Branch_Fault_Reset_PB_STATE"
"expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#BCBC52\",\r\n if(\r\n {this.props.text} \u003d \"POWER BRANCH FAULT RESET PRESSED\",\r\n \"#FCFF86\",\r\n if(\r\n {this.props.text} \u003d \"POWER BRANCH FAULT RESET\",\r\n \"#DCDC03\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "#DCDC03",
"inputType": "scalar",
"mappings": [
{
"input": 2,
"output": "#FCFF86"
},
{
"input": 4,
"output": "#FCFF86"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "tag"
"type": "expr"
}
},
"props.text": {
@ -2666,7 +2575,16 @@
{
"fallback": "POWER BRANCH FAULT RESET",
"inputType": "scalar",
"mappings": [],
"mappings": [
{
"input": 2,
"output": "POWER BRANCH FAULT RESET PRESSED"
},
{
"input": 4,
"output": "POWER BRANCH FAULT RESET PRESSED"
}
],
"outputType": "scalar",
"type": "map"
}
@ -2739,37 +2657,9 @@
"props.style.backgroundColor": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Low_Air_Pressure_Reset_PB_STATE"
"expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#9090C2\",\r\n if(\r\n {this.props.text} \u003d \"LOW AIR PRESSURE RESET PRESSED\",\r\n \"#5D5DFF\",\r\n if(\r\n {this.props.text} \u003d \"LOW AIR PRESSURE RESET\",\r\n \"#0A0AA4\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "#0A0AA4",
"inputType": "scalar",
"mappings": [
{
"input": 2,
"output": "#5D5DFF"
},
{
"input": 4,
"output": "#5D5DFF"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "tag"
"type": "expr"
}
},
"props.text": {
@ -2793,8 +2683,12 @@
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "POWER BRANCH FAULT RESET PRESSED"
"input": 2,
"output": "LOW AIR PRESSURE RESET PRESSED"
},
{
"input": 4,
"output": "LOW AIR PRESSURE RESET PRESSED"
}
],
"outputType": "scalar",
@ -2865,37 +2759,9 @@
"props.style.backgroundColor": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Jam_Restart_PB_STATE"
"expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#A1A1A1\",\r\n if(\r\n {this.props.text} \u003d \"JAM RESTART PRESSED\",\r\n \"#DADADA\",\r\n if(\r\n {this.props.text} \u003d \"JAM RESTART\",\r\n \"#FFFFFF\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "#FFFFFF",
"inputType": "scalar",
"mappings": [
{
"input": 2,
"output": "#D0D0D0"
},
{
"input": 4,
"output": "#D0D0D0"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "tag"
"type": "expr"
}
},
"props.text": {
@ -2917,7 +2783,12 @@
{
"fallback": "JAM RESTART",
"inputType": "scalar",
"mappings": [],
"mappings": [
{
"input": 1,
"output": "JAM RESTART PRESSED"
}
],
"outputType": "scalar",
"type": "map"
}
@ -2990,33 +2861,9 @@
"props.style.backgroundColor": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Setup_Motor_Speeds"
"expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#A1A1A1\",\r\n if(\r\n {this.props.text} \u003d \"SETUP MOTOR SPEEDS PRESSED\",\r\n \"#DADADA\",\r\n if(\r\n {this.props.text} \u003d \"SETUP MOTOR SPEEDS\",\r\n \"#FFFFFF\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "#FFFFFF",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "#D0D0D0"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "tag"
"type": "expr"
}
},
"props.text": {

View File

@ -6,7 +6,8 @@
"MCM03",
"MCM04",
"MCM05",
"MCM06"
"MCM06",
"MCM07"
],
"running_state": -1,
"state": 0,
@ -461,12 +462,12 @@
},
"transforms": [
{
"fallback": "#000000",
"fallback": "#FFFFFF",
"inputType": "scalar",
"mappings": [
{
"input": "FULL",
"output": "#FFFFFF"
"output": "#D5D5D5"
},
{
"input": "NOT FULL",
@ -493,16 +494,20 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression"
},
{
"fallback": "NOT FULL",
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "FULL"
},
{
"input": 0,
"output": "NOT FULL"
}
],
"outputType": "scalar",
@ -610,15 +615,15 @@
},
"transforms": [
{
"fallback": "#000000",
"fallback": "#FFFFFF",
"inputType": "scalar",
"mappings": [
{
"input": "DISABLED",
"output": "#FFFFFF"
"input": "TRUE",
"output": "#D5D5D5"
},
{
"input": "ENABLED",
"input": "FALSE",
"output": "#D5D5D5"
}
],
@ -642,16 +647,20 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"expression": "coalesce({value},{view.params.forceFaultStatus}, \"UNKNOWN\")",
"type": "expression"
},
{
"fallback": "ENABLED",
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "DISABLED"
"output": "TRUE"
},
{
"input": 0,
"output": "FALSE"
}
],
"outputType": "scalar",
@ -672,12 +681,12 @@
"inputType": "scalar",
"mappings": [
{
"input": "ENABLED",
"output": "#47FF47"
"input": "TRUE",
"output": "#FF0000"
},
{
"input": "DISABLED",
"output": "#FF0000"
"input": "FALSE",
"output": "#47FF47"
}
],
"outputType": "color",
@ -797,12 +806,12 @@
},
"transforms": [
{
"fallback": "#000000",
"fallback": "#FFFFFF",
"inputType": "scalar",
"mappings": [
{
"input": "HALF FULL",
"output": "#FFFFFF"
"output": "#D5D5D5"
},
{
"input": "NOT HALF FULL",
@ -829,16 +838,20 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression"
},
{
"fallback": "NOT HALF FULL",
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "HALF FULL"
},
{
"input": 0,
"output": "NOT HALF FULL"
}
],
"outputType": "scalar",
@ -860,7 +873,7 @@
"mappings": [
{
"input": "HALF FULL",
"output": "#7F83FF"
"output": "#FFF000"
},
{
"input": "NOT HALF FULL",
@ -984,12 +997,12 @@
},
"transforms": [
{
"fallback": "#000000",
"fallback": "#FFFFFF",
"inputType": "scalar",
"mappings": [
{
"input": "JAMMED",
"output": "#FFFFFF"
"output": "#D5D5D5"
},
{
"input": "NOT JAMMED",
@ -1016,16 +1029,20 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression"
},
{
"fallback": "NOT JAMMED",
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "JAMMED"
},
{
"input": 0,
"output": "NOT JAMMED"
}
],
"outputType": "scalar",
@ -1171,12 +1188,12 @@
},
"transforms": [
{
"fallback": "#000000",
"fallback": "#FFFFFF",
"inputType": "scalar",
"mappings": [
{
"input": "NO CONTAINER",
"output": "#FFFFFF"
"output": "#D5D5D5"
},
{
"input": "CONTAINER PRESENT",
@ -1199,20 +1216,24 @@
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/No Container"
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/No_Container"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression"
},
{
"fallback": "CONTAINER PRESENT",
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "NO CONTAINER"
},
{
"input": 0,
"output": "CONTAINER PRESENT"
}
],
"outputType": "scalar",
@ -1354,12 +1375,12 @@
},
"transforms": [
{
"fallback": "#000000",
"fallback": "#FFFFFF",
"inputType": "scalar",
"mappings": [
{
"input": "READY",
"output": "#FFFFFF"
"output": "#D5D5D5"
},
{
"input": "ENABLED",
@ -1553,33 +1574,9 @@
"props.style.backgroundColor": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Disabled"
"expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#BB5050\",\r\n if(\r\n {this.props.text} \u003d \"DISABLE\",\r\n \"#FF0000\",\r\n if(\r\n {this.props.text} \u003d \"ENABLE\",\r\n \"#C9FCC0\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "#FF0000",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "#C9FCC0"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "tag"
"type": "expr"
}
},
"props.style.color": {
@ -1627,7 +1624,7 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression"
},
{
@ -1637,6 +1634,10 @@
{
"input": 1,
"output": "ENABLE"
},
{
"input": 0,
"output": "DISABLE"
}
],
"outputType": "scalar",

View File

@ -1,13 +1,21 @@
{
"custom": {
"PLC_list": null,
"PLC_list": [
"MCM01",
"MCM02",
"MCM03",
"MCM04",
"MCM05",
"MCM06",
"MCM07"
],
"running_state": -1,
"state": 0,
"state": null,
"views_data": []
},
"params": {
"tagProps": [
"System/MCM01/Conveyor/UL1_3_VFD1",
"System/Conveyor/APF/FL1038_2_VFD1",
"value",
"value",
"value",
@ -378,9 +386,9 @@
},
"props": {
"style": {
"paddingLeft": 100
"paddingLeft": 20
},
"text": "Name"
"text": "NAME"
},
"type": "ia.display.label"
},
@ -458,9 +466,9 @@
},
"props": {
"style": {
"paddingLeft": 100
"paddingLeft": 20
},
"text": "State"
"text": "STATE"
},
"type": "ia.display.label"
},
@ -473,10 +481,32 @@
"grow": 1
},
"propConfig": {
"props.style.backgroundColor": {
"binding": {
"config": {
"path": "this.props.text"
},
"transforms": [
{
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "FULL",
"output": "#FFFFFF"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "property"
}
},
"props.text": {
"binding": {
"config": {
"expression": "case({..../State.custom.state},\r\n0, \"Off(Inactive)\",\r\n1, \"Enabled, Not Running\",\r\n2, \"Running\",\r\n3, \"Energy Management\",\r\n4, \"Jammed\",\r\n5, \"Full\",\r\n6, \"Maintenance Mode / Conveyor Stopped In Maintenance Mode\",\r\n7, \"Communication Fault\",\r\n8, \"VFD Fault\",\r\n9, \"E-Stop\",\r\n13,\"Encoder_Fault\",\r\n14,\"Stopped\",\r\n61,\"Conveyor Running in Maintenance Mode\",\r\n\"Unknown\")"
"expression": "case({..../State.custom.state},\r\n0, \"Off(Inactive)\",\r\n1, \"Enabled, Not Running\",\r\n2, \"Running\",\r\n3, \"Energy Management\",\r\n4, \"Jammed\",\r\n5, \"Full\",\r\n6, \"Maintenance Mode / Conveyor Stopped In Maintenance Mode\",\r\n7, \"Communication Fault\",\r\n8, \"VFD Fault\",\r\n9, \"E-Stop\",\r\n13,\"Encoder_Fault\",\r\n14,\"Stopped\",\r\n61,\"Conveyor Running in Maintenance Mode\",\r\n\"UNKNOWN\")"
},
"type": "expr"
}
@ -492,7 +522,6 @@
},
"props": {
"style": {
"backgroundColor": "#FFFFFF",
"classes": "Text-Styles/Ariel-Bold-12pt",
"paddingLeft": 10
}
@ -562,7 +591,7 @@
},
"props": {
"style": {
"paddingLeft": 100
"paddingLeft": 20
},
"text": "FPM"
},
@ -577,6 +606,28 @@
"grow": 1
},
"propConfig": {
"props.style.backgroundColor": {
"binding": {
"config": {
"path": "this.props.text"
},
"transforms": [
{
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "UNKNOWN",
"output": "#FFFFFF"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "property"
}
},
"props.text": {
"binding": {
"config": {
@ -590,7 +641,7 @@
},
"transforms": [
{
"expression": "if(coalesce({value},{view.params.forceFaultStatus},\u0027Unknown\u0027) \u003d \u0027Unknown\u0027, \u0027Unknown\u0027, coalesce({value},{view.params.forceFaultStatus}) + \" FPM\")",
"expression": "if(coalesce({value},{view.params.forceFaultStatus},\u0027UNKNOWN\u0027) \u003d \u0027UNKNOWN\u0027, \u0027UNKNOWN\u0027, coalesce({value},{view.params.forceFaultStatus}) + \" FPM\")",
"type": "expression"
}
],
@ -600,7 +651,6 @@
},
"props": {
"style": {
"backgroundColor": "#FFFFFF",
"classes": "Text-Styles/Ariel-Bold-12pt",
"paddingLeft": 10
}
@ -660,20 +710,20 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},\u0027Unknown (Freq/Velocity\u0027)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\u0027UNKNOWN (FREQ/VELOCITY)\u0027)",
"type": "expression"
},
{
"fallback": "Unknown (Freq/Velocity",
"fallback": "UNKNOWN (FREQ/VELOCITY)",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "Velocity"
"output": "VELOCITY"
},
{
"input": 0,
"output": "Frequency"
"output": "FREQUENCY"
}
],
"outputType": "scalar",
@ -686,7 +736,7 @@
},
"props": {
"style": {
"paddingLeft": 100
"paddingLeft": 20
}
},
"type": "ia.display.label"
@ -700,6 +750,28 @@
"grow": 1
},
"propConfig": {
"props.style.backgroundColor": {
"binding": {
"config": {
"path": "this.props.text"
},
"transforms": [
{
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "UNKNOWN",
"output": "#FFFFFF"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "property"
}
},
"props.text": {
"binding": {
"config": {
@ -713,7 +785,7 @@
},
"transforms": [
{
"code": "\n provider \u003d self.session.custom.fc + \"_SCADA_TAG_PROVIDER\"\n baseTag \u003d self.view.params.tagProps[0]\n basePath \u003d \"[\"+ provider + \"]\" + baseTag\n child \u003d \"\"\n unit \u003d \"\"\n \n\n if value \u003d\u003d 1:\n child \u003d \"Velocity\"\n unit \u003d \" Rev/s\"\n else:\n child \u003d \"Frequency\"\n unit \u003d \" Hz\"\n\n fullPath \u003d basePath + \"/\" + child\n tagValue \u003d system.tag.readBlocking([fullPath])[0]\n result \u003d tagValue.value\n\t\n if result is None or str(result) \u003d\u003d \"None\":\n return \"Unknown\"\n else:\n return str(result) + unit",
"code": "\n provider \u003d self.session.custom.fc + \"_SCADA_TAG_PROVIDER\"\n baseTag \u003d self.view.params.tagProps[0]\n basePath \u003d \"[\"+ provider + \"]\" + baseTag\n child \u003d \"\"\n unit \u003d \"\"\n \n\n if value \u003d\u003d 1:\n child \u003d \"Velocity\"\n unit \u003d \" Rev/s\"\n else:\n child \u003d \"Frequency\"\n unit \u003d \" Hz\"\n\n fullPath \u003d basePath + \"/\" + child\n tagValue \u003d system.tag.readBlocking([fullPath])[0]\n result \u003d tagValue.value\n\t\n if result is None or str(result) \u003d\u003d \"None\":\n return \"UNKNOWN\"\n else:\n return str(result) + unit",
"type": "script"
}
],
@ -723,7 +795,6 @@
},
"props": {
"style": {
"backgroundColor": "#FFFFFF",
"classes": "Text-Styles/Ariel-Bold-12pt",
"paddingLeft": 10
}
@ -771,9 +842,9 @@
},
"props": {
"style": {
"paddingLeft": 100
"paddingLeft": 20
},
"text": "Amperage"
"text": "AMPERAGE"
},
"type": "ia.display.label"
},
@ -786,6 +857,28 @@
"grow": 1
},
"propConfig": {
"props.style.backgroundColor": {
"binding": {
"config": {
"path": "this.props.text"
},
"transforms": [
{
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "UNKNOWN",
"output": "#FFFFFF"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "property"
}
},
"props.text": {
"binding": {
"config": {
@ -799,7 +892,7 @@
},
"transforms": [
{
"expression": "if(coalesce({value},{view.params.forceFaultStatus},\u0027Unknown\u0027) \u003d \u0027Unknown\u0027, \u0027Unknown\u0027, coalesce({value},{view.params.forceFaultStatus}) + \" A\")",
"expression": "if(coalesce({value},{view.params.forceFaultStatus},\u0027UNKNOWN\u0027) \u003d \u0027UNKNOWN\u0027, \u0027UNKNOWN\u0027, coalesce({value},{view.params.forceFaultStatus}) + \" A\")",
"type": "expression"
}
],
@ -809,7 +902,6 @@
},
"props": {
"style": {
"backgroundColor": "#FFFFFF",
"classes": "Text-Styles/Ariel-Bold-12pt",
"paddingLeft": 10
}
@ -857,9 +949,9 @@
},
"props": {
"style": {
"paddingLeft": 100
"paddingLeft": 20
},
"text": "Voltage"
"text": "VOLTAGE"
},
"type": "ia.display.label"
},
@ -872,6 +964,28 @@
"grow": 1
},
"propConfig": {
"props.style.backgroundColor": {
"binding": {
"config": {
"path": "this.props.text"
},
"transforms": [
{
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "UNKNOWN",
"output": "#FFFFFF"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "property"
}
},
"props.text": {
"binding": {
"config": {
@ -885,7 +999,7 @@
},
"transforms": [
{
"expression": "if(coalesce({value},{view.params.forceFaultStatus},\u0027Unknown\u0027) \u003d \u0027Unknown\u0027, \u0027Unknown\u0027, coalesce({value},{view.params.forceFaultStatus}) + \" V\")",
"expression": "if(coalesce({value},{view.params.forceFaultStatus},\u0027UNKNOWN\u0027) \u003d \u0027UNKNOWN\u0027, \u0027UNKNOWN\u0027, coalesce({value},{view.params.forceFaultStatus}) + \" V\")",
"type": "expression"
}
],
@ -895,7 +1009,6 @@
},
"props": {
"style": {
"backgroundColor": "#FFFFFF",
"classes": "Text-Styles/Ariel-Bold-12pt",
"paddingLeft": 10
}
@ -943,9 +1056,9 @@
},
"props": {
"style": {
"paddingLeft": 35
"paddingLeft": 20
},
"text": "Communication Fault Code"
"text": "COMMUNICATION FAULT CODE"
},
"type": "ia.display.label"
},
@ -958,6 +1071,28 @@
"grow": 1
},
"propConfig": {
"props.style.backgroundColor": {
"binding": {
"config": {
"path": "this.props.text"
},
"transforms": [
{
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "UNKNOWN",
"output": "#FFFFFF"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "property"
}
},
"props.text": {
"binding": {
"config": {
@ -971,7 +1106,7 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},\u0027Unknown\u0027)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\u0027UNKNOWN\u0027)",
"type": "expression"
}
],
@ -981,7 +1116,6 @@
},
"props": {
"style": {
"backgroundColor": "#FFFFFF",
"classes": "Text-Styles/Ariel-Bold-12pt",
"paddingLeft": 10
}
@ -1029,9 +1163,9 @@
},
"props": {
"style": {
"paddingLeft": 80
"paddingLeft": 20
},
"text": "VFD Fault Code"
"text": "VFD FAULT CODE"
},
"type": "ia.display.label"
},
@ -1044,6 +1178,28 @@
"grow": 1
},
"propConfig": {
"props.style.backgroundColor": {
"binding": {
"config": {
"path": "this.props.text"
},
"transforms": [
{
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "UNKNOWN",
"output": "#FFFFFF"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "property"
}
},
"props.text": {
"binding": {
"config": {
@ -1057,7 +1213,7 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},\u0027Unknown\u0027)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\u0027UNKNOWN\u0027)",
"type": "expression"
}
],
@ -1067,7 +1223,6 @@
},
"props": {
"style": {
"backgroundColor": "#FFFFFF",
"classes": "Text-Styles/Ariel-Bold-12pt",
"paddingLeft": 10
}
@ -1115,9 +1270,9 @@
},
"props": {
"style": {
"paddingLeft": 70
"paddingLeft": 20
},
"text": "Last VFD Fault Code"
"text": "LAST VFD FAULT CODE"
},
"type": "ia.display.label"
},
@ -1130,6 +1285,28 @@
"grow": 1
},
"propConfig": {
"props.style.backgroundColor": {
"binding": {
"config": {
"path": "this.props.text"
},
"transforms": [
{
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "UNKNOWN",
"output": "#FFFFFF"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "property"
}
},
"props.text": {
"binding": {
"config": {
@ -1143,7 +1320,7 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},\u0027Unknown\u0027)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\u0027UNKNOWN\u0027)",
"type": "expression"
}
],
@ -1153,7 +1330,6 @@
},
"props": {
"style": {
"backgroundColor": "#FFFFFF",
"classes": "Text-Styles/Ariel-Bold-12pt",
"paddingLeft": 10
}
@ -1247,11 +1423,11 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},\u0027Unknown (60hz/30rev\u0027)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\u0027UNKNOWN (60hz/30rev)\u0027)",
"type": "expression"
},
{
"fallback": "Unknown (60hz/30rev",
"fallback": "Unknown (60hz/30rev)",
"inputType": "scalar",
"mappings": [
{
@ -1323,6 +1499,10 @@
{
"code": "\n provider \u003d self.session.custom.fc + \"_SCADA_TAG_PROVIDER\"\n baseTag \u003d self.view.params.tagProps[0]\n basePath \u003d \"[\"+ provider + \"]\" + baseTag\n child \u003d \"\"\n \n\n if value \u003d\u003d 1:\n child \u003d \"Speed_At_30rev\"\n else:\n child \u003d \"Speed_At_60Hz\"\n\n fullPath \u003d basePath + \"/\" + child\n tagValue \u003d system.tag.readBlocking([fullPath])[0]\n result \u003d tagValue.value\n\t\n \n return result",
"type": "script"
},
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
}
],
"type": "tag"
@ -1419,6 +1599,12 @@
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Cycle_Time_Factor"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
}
],
"type": "tag"
}
}
@ -1552,7 +1738,7 @@
"mappings": [
{
"input": false,
"output": "Active Maintenance Mode"
"output": "Activate Maintenance Mode"
},
{
"input": true,
@ -1598,7 +1784,7 @@
"component": {
"onActionPerformed": {
"config": {
"script": " \tpropMaintMode \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+tag_name+\"/Maintenance/Speed_FPM\"\n\tvalue \u003d self.props.value\n\tsystem.tag.writeAsync([propMaintMode], [value])"
"script": "\tpropMaintMode \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+ self.view.params.tagProps[0] + \"/Maintenance/Speed_FPM\"\n\tvalue \u003d self.props.value\n\tsystem.tag.writeAsync([propMaintMode], [value])"
},
"scope": "G",
"type": "script"
@ -1615,15 +1801,26 @@
"props.enabled": {
"binding": {
"config": {
"expression": "indexOf({session.props.auth.user.roles}, \"Administrator\") \u003e\u003d 0 || indexOf({session.props.auth.user.roles}, \"Maintenance\") \u003e\u003d 0"
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Maintenance/Maintenance_Mode"
},
"type": "expr"
"transforms": [
{
"expression": "if(\r\n indexOf({session.props.auth.user.roles}, \"Administrator\") \u003e\u003d 0 || \r\n indexOf({session.props.auth.user.roles}, \"Maintenance\") \u003e\u003d 0,\r\n {value},\r\n false\r\n)\r\n",
"type": "expression"
}
],
"type": "tag"
}
},
"props.value": {
"binding": {
"config": {
"bidirectional": true,
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
@ -1632,6 +1829,12 @@
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Maintenance/Speed_FPM"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
}
],
"type": "tag"
}
}
@ -1699,14 +1902,52 @@
],
"type": "tag"
}
},
"props.style.backgroundColor": {
"binding": {
"config": {
"expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#7DB17D\",\r\n if(\r\n {this.props.text} \u003d \"START PRESSED\",\r\n \"#009400\",\r\n if(\r\n {this.props.text} \u003d \"START\",\r\n \"#00D900\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n"
},
"type": "expr"
}
},
"props.text": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Maintenance/Start_PB_Pressed"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "START",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "START PRESSED"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "tag"
}
}
},
"props": {
"style": {
"backgroundColor": "#2EDF43",
"marginBottom": 10
},
"text": "Start"
}
},
"type": "ia.input.button"
},
@ -1749,14 +1990,52 @@
],
"type": "tag"
}
},
"props.style.backgroundColor": {
"binding": {
"config": {
"expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#BB5050\",\r\n if(\r\n {this.props.text} \u003d \"STOP PRESSED\",\r\n \"#FF9191\",\r\n if(\r\n {this.props.text} \u003d \"STOP\",\r\n \"#FF0000\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n"
},
"type": "expr"
}
},
"props.text": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Maintenance/Stop_PB_Pressed"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "STOP",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "STOP PRESSED"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "tag"
}
}
},
"props": {
"style": {
"backgroundColor": "#E51A1A",
"marginBottom": 10
},
"text": "Stop"
}
},
"type": "ia.input.button"
},
@ -1806,14 +2085,52 @@
],
"type": "tag"
}
},
"props.style.backgroundColor": {
"binding": {
"config": {
"expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#55A49B\",\r\n if(\r\n {this.props.text} \u003d \"JOG PRESSED\",\r\n \"#34B2A3\",\r\n if(\r\n {this.props.text} \u003d \"JOG\",\r\n \"#2ACCBA\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n"
},
"type": "expr"
}
},
"props.text": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Maintenance/Jog_PB_Pressed"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "JOG",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "JOG PRESSED"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "tag"
}
}
},
"props": {
"style": {
"backgroundColor": "#2ACCBA",
"marginBottom": 10
},
"text": "Jog"
}
},
"type": "ia.input.button"
},
@ -1857,6 +2174,14 @@
"type": "tag"
}
},
"props.style.backgroundColor": {
"binding": {
"config": {
"expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#7292B8\",\r\n if(\r\n {this.props.text} \u003d \"Direction Backward\",\r\n \"#0068F7\",\r\n if(\r\n {this.props.text} \u003d \"Direction Forward\",\r\n \"#3467AD\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n"
},
"type": "expr"
}
},
"props.text": {
"binding": {
"config": {
@ -1874,13 +2199,9 @@
"type": "expression"
},
{
"fallback": "Direction",
"fallback": "Direction Backward",
"inputType": "scalar",
"mappings": [
{
"input": false,
"output": "Direction Backward"
},
{
"input": true,
"output": "Direction Forward"
@ -1896,7 +2217,6 @@
},
"props": {
"style": {
"backgroundColor": "#0068F7",
"marginBottom": 10
}
},
@ -1910,7 +2230,7 @@
"name": "FlexContainer"
},
"position": {
"basis": "200px",
"basis": "500px",
"grow": 1
},
"props": {
@ -1923,7 +2243,7 @@
"name": "Maintenance"
},
"position": {
"basis": "200px",
"basis": "400px",
"grow": 1
},
"props": {

View File

@ -1,6 +1,6 @@
{
"custom": {
"disconnected": false,
"disconnected": true,
"plc": "MCM",
"priority": 0,
"priority_string": "No Active Alarms",
@ -202,7 +202,7 @@
"props.elements[0].fill.paint": {
"binding": {
"config": {
"expression": "if(\r\n {view.custom.disconnected},\r\n \"#FFFFFF\",\r\n switch(\r\n toInt({view.custom.state}),\r\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, \r\n \"#B3B3B3\", \"#FF0000\", \"#FF0000\", \"#FF0000\", \"#FF8C00\",\r\n \"#FF8C00\", \"#FF0000\", \"#FF0000\", \"#FF0000\", \"#00FF00\",\r\n \"#FFFF00\"\r\n )\r\n)\r\n"
"expression": "if(\r\n {view.custom.disconnected},\r\n \"#000000\",\r\n switch(\r\n toInt({view.custom.state}),\r\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, \r\n \"#B3B3B3\", \"#FF0000\", \"#FF0000\", \"#FF0000\", \"#FF8C00\",\r\n \"#FF8C00\", \"#FF0000\", \"#FF0000\", \"#FF0000\", \"#00FF00\",\r\n \"#FFFF00\"\r\n )\r\n)\r\n"
},
"type": "expr"
},
@ -210,6 +210,28 @@
"enabled": false,
"script": ""
}
},
"props.elements[1].style.fill": {
"binding": {
"config": {
"path": "view.custom.disconnected"
},
"transforms": [
{
"fallback": "#000000",
"inputType": "scalar",
"mappings": [
{
"input": true,
"output": "#FFFFFF"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "property"
}
}
},
"props": {