Compare commits

..

No commits in common. "21111905bf95637c33bc6be1ab49c0ed027144c4" and "3f130676b14ae3750f5c9836a198148dd5faf83c" have entirely different histories.

7 changed files with 925 additions and 824 deletions

View File

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

View File

@ -1,14 +1,6 @@
{
"custom": {
"PLC_list": [
"MCM01",
"MCM02",
"MCM03",
"MCM04",
"MCM05",
"MCM06",
"MCM07"
],
"PLC_list": null,
"running_state": -1,
"state": 0,
"views_data": []
@ -405,6 +397,304 @@
},
"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": [
{
@ -441,12 +731,16 @@
},
"transforms": [
{
"fallback": "#D5D5D5",
"fallback": "#000000",
"inputType": "scalar",
"mappings": [
{
"input": "UNKNOWN",
"input": "TRUE",
"output": "#FFFFFF"
},
{
"input": "FALSE",
"output": "#D5D5D5"
}
],
"outputType": "color",
@ -469,20 +763,16 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "UNKNOWN",
"fallback": "FALSE",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "ACTIVE"
},
{
"input": 0,
"output": "NOT ACTIVE"
"output": "TRUE"
}
],
"outputType": "scalar",
@ -503,12 +793,12 @@
"inputType": "scalar",
"mappings": [
{
"input": "ACTIVE",
"output": "#47FF47"
"input": "TRUE",
"output": "#FF0000"
},
{
"input": "NOT ACTIVE",
"output": "#FF0000"
"input": "FALSE",
"output": "#47FF47"
}
],
"outputType": "color",
@ -590,12 +880,16 @@
},
"transforms": [
{
"fallback": "#D5D5D5",
"fallback": "#000000",
"inputType": "scalar",
"mappings": [
{
"input": "UNKNOWN",
"input": "TRUE",
"output": "#FFFFFF"
},
{
"input": "FALSE",
"output": "#D5D5D5"
}
],
"outputType": "color",
@ -618,20 +912,16 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "UNKNOWN",
"fallback": "FALSE",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "EXTENDED"
},
{
"input": 0,
"output": "NOT EXTENDED"
"output": "TRUE"
}
],
"outputType": "scalar",
@ -652,12 +942,12 @@
"inputType": "scalar",
"mappings": [
{
"input": "EXTENDED",
"output": "#47FF47"
"input": "TRUE",
"output": "#FF0000"
},
{
"input": "NOT EXTENDED",
"output": "#FF0000"
"input": "FALSE",
"output": "#47FF47"
}
],
"outputType": "color",
@ -739,12 +1029,16 @@
},
"transforms": [
{
"fallback": "#D5D5D5",
"fallback": "#000000",
"inputType": "scalar",
"mappings": [
{
"input": "UNKNOWN",
"input": "TRUE",
"output": "#FFFFFF"
},
{
"input": "FALSE",
"output": "#D5D5D5"
}
],
"outputType": "color",
@ -767,20 +1061,16 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "UNKNOWN",
"fallback": "FALSE",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "RETRACTED"
},
{
"input": 0,
"output": "NOT RETRACTED"
"output": "TRUE"
}
],
"outputType": "scalar",
@ -801,12 +1091,12 @@
"inputType": "scalar",
"mappings": [
{
"input": "RETRACTED",
"output": "#47FF47"
"input": "TRUE",
"output": "#FF0000"
},
{
"input": "NOT RETRACTED",
"output": "#FF0000"
"input": "FALSE",
"output": "#47FF47"
}
],
"outputType": "color",
@ -888,12 +1178,16 @@
},
"transforms": [
{
"fallback": "#D5D5D5",
"fallback": "#000000",
"inputType": "scalar",
"mappings": [
{
"input": "UNKNOWN",
"input": "TRUE",
"output": "#FFFFFF"
},
{
"input": "FALSE",
"output": "#D5D5D5"
}
],
"outputType": "color",
@ -916,20 +1210,16 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "UNKNOWN",
"fallback": "FALSE",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "ON"
},
{
"input": 0,
"output": "OFF"
"output": "TRUE"
}
],
"outputType": "scalar",
@ -950,12 +1240,12 @@
"inputType": "scalar",
"mappings": [
{
"input": "ON",
"output": "#47FF47"
"input": "TRUE",
"output": "#FF0000"
},
{
"input": "OFF",
"output": "#FF0000"
"input": "FALSE",
"output": "#47FF47"
}
],
"outputType": "color",
@ -1037,12 +1327,16 @@
},
"transforms": [
{
"fallback": "#D5D5D5",
"fallback": "#000000",
"inputType": "scalar",
"mappings": [
{
"input": "UNKNOWN",
"input": "TRUE",
"output": "#FFFFFF"
},
{
"input": "FALSE",
"output": "#D5D5D5"
}
],
"outputType": "color",
@ -1065,20 +1359,16 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "UNKNOWN",
"fallback": "FALSE",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "ON"
},
{
"input": 0,
"output": "OFF"
"output": "TRUE"
}
],
"outputType": "scalar",
@ -1099,12 +1389,12 @@
"inputType": "scalar",
"mappings": [
{
"input": "ON",
"output": "#47FF47"
"input": "TRUE",
"output": "#FF0000"
},
{
"input": "OFF",
"output": "#FF0000"
"input": "FALSE",
"output": "#47FF47"
}
],
"outputType": "color",
@ -1186,7 +1476,7 @@
},
"transforms": [
{
"fallback": "#FFFFFF",
"fallback": "#000000",
"inputType": "scalar",
"mappings": [
{
@ -1214,24 +1504,20 @@
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Unloading_Mode"
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Power_Saving_Mode"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "UNKNOWN",
"fallback": "FALSE",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "ON"
},
{
"input": 0,
"output": "OFF"
"output": "TRUE"
}
],
"outputType": "scalar",
@ -1252,12 +1538,12 @@
"inputType": "scalar",
"mappings": [
{
"input": "ON",
"output": "#47FF47"
"input": "TRUE",
"output": "#FF0000"
},
{
"input": "OFF",
"output": "#FF0000"
"input": "FALSE",
"output": "#47FF47"
}
],
"outputType": "color",
@ -1355,9 +1641,33 @@
"props.style.backgroundColor": {
"binding": {
"config": {
"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"
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/PEC_Override_PB"
},
"type": "expr"
"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"
}
},
"props.text": {
@ -1377,12 +1687,12 @@
"type": "expression"
},
{
"fallback": "PEC OVERRIDE: OFF",
"fallback": "PEC OVERRIDE",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "PEC OVERRIDE: ON"
"output": "PEC OVERRIDE PRESSED"
}
],
"outputType": "scalar",
@ -1394,6 +1704,7 @@
}
},
"props": {
"image": {},
"style": {
"classes": "Background-Styles/Controller"
}
@ -1448,9 +1759,33 @@
"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 \"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"
"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"
},
"type": "expr"
"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"
}
},
"props.text": {
@ -1551,7 +1886,6 @@
"grow": 1
},
"props": {
"currentTabIndex": 1,
"menuType": "modern",
"tabSize": {
"width": 1000

View File

@ -1,21 +1,13 @@
{
"custom": {
"PLC_list": [
"MCM01",
"MCM02",
"MCM03",
"MCM04",
"MCM05",
"MCM06",
"MCM07"
],
"PLC_list": null,
"running_state": -1,
"state": 0,
"views_data": []
},
"params": {
"tagProps": [
"/System/Station/JR/UL1_3_JR_PB1",
"/System/Station/Buttons/UL1_3_JR_PB2",
"value",
"value",
"value",
@ -441,12 +433,16 @@
},
"transforms": [
{
"fallback": "#D5D5D5",
"fallback": "#000000",
"inputType": "scalar",
"mappings": [
{
"input": "UNKNOWN",
"input": "ON",
"output": "#FFFFFF"
},
{
"input": "OFF",
"output": "#D5D5D5"
}
],
"outputType": "color",
@ -469,20 +465,20 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "UNKNOWN",
"fallback": "OFF",
"inputType": "scalar",
"mappings": [
{
"input": true,
"output": "ON"
},
{
"input": false,
"output": "OFF"
},
{
"input": true,
"output": "ON"
}
],
"outputType": "scalar",
@ -504,11 +500,11 @@
"mappings": [
{
"input": "ON",
"output": "#47FF47"
"output": "#FF0000"
},
{
"input": "OFF",
"output": "#FF0000"
"output": "#47FF47"
}
],
"outputType": "color",
@ -602,46 +598,6 @@
},
"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": {
@ -651,8 +607,10 @@
}
},
"style": {
"backgroundColor": "#FE9240",
"classes": "Background-Styles/Controller"
}
},
"text": "RESET JAM"
},
"type": "ia.input.button"
}

View File

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

View File

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

View File

@ -1,21 +1,13 @@
{
"custom": {
"PLC_list": [
"MCM01",
"MCM02",
"MCM03",
"MCM04",
"MCM05",
"MCM06",
"MCM07"
],
"PLC_list": null,
"running_state": -1,
"state": null,
"state": 0,
"views_data": []
},
"params": {
"tagProps": [
"System/Conveyor/APF/FL1038_2_VFD1",
"System/MCM01/Conveyor/UL1_3_VFD1",
"value",
"value",
"value",
@ -386,9 +378,9 @@
},
"props": {
"style": {
"paddingLeft": 20
"paddingLeft": 100
},
"text": "NAME"
"text": "Name"
},
"type": "ia.display.label"
},
@ -466,9 +458,9 @@
},
"props": {
"style": {
"paddingLeft": 20
"paddingLeft": 100
},
"text": "STATE"
"text": "State"
},
"type": "ia.display.label"
},
@ -481,32 +473,10 @@
"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"
}
@ -522,6 +492,7 @@
},
"props": {
"style": {
"backgroundColor": "#FFFFFF",
"classes": "Text-Styles/Ariel-Bold-12pt",
"paddingLeft": 10
}
@ -591,7 +562,7 @@
},
"props": {
"style": {
"paddingLeft": 20
"paddingLeft": 100
},
"text": "FPM"
},
@ -606,28 +577,6 @@
"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": {
@ -641,7 +590,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"
}
],
@ -651,6 +600,7 @@
},
"props": {
"style": {
"backgroundColor": "#FFFFFF",
"classes": "Text-Styles/Ariel-Bold-12pt",
"paddingLeft": 10
}
@ -710,20 +660,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",
@ -736,7 +686,7 @@
},
"props": {
"style": {
"paddingLeft": 20
"paddingLeft": 100
}
},
"type": "ia.display.label"
@ -750,28 +700,6 @@
"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": {
@ -785,7 +713,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"
}
],
@ -795,6 +723,7 @@
},
"props": {
"style": {
"backgroundColor": "#FFFFFF",
"classes": "Text-Styles/Ariel-Bold-12pt",
"paddingLeft": 10
}
@ -842,9 +771,9 @@
},
"props": {
"style": {
"paddingLeft": 20
"paddingLeft": 100
},
"text": "AMPERAGE"
"text": "Amperage"
},
"type": "ia.display.label"
},
@ -857,28 +786,6 @@
"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": {
@ -892,7 +799,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"
}
],
@ -902,6 +809,7 @@
},
"props": {
"style": {
"backgroundColor": "#FFFFFF",
"classes": "Text-Styles/Ariel-Bold-12pt",
"paddingLeft": 10
}
@ -949,9 +857,9 @@
},
"props": {
"style": {
"paddingLeft": 20
"paddingLeft": 100
},
"text": "VOLTAGE"
"text": "Voltage"
},
"type": "ia.display.label"
},
@ -964,28 +872,6 @@
"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": {
@ -999,7 +885,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"
}
],
@ -1009,6 +895,7 @@
},
"props": {
"style": {
"backgroundColor": "#FFFFFF",
"classes": "Text-Styles/Ariel-Bold-12pt",
"paddingLeft": 10
}
@ -1056,9 +943,9 @@
},
"props": {
"style": {
"paddingLeft": 20
"paddingLeft": 35
},
"text": "COMMUNICATION FAULT CODE"
"text": "Communication Fault Code"
},
"type": "ia.display.label"
},
@ -1071,28 +958,6 @@
"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": {
@ -1106,7 +971,7 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},\u0027UNKNOWN\u0027)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\u0027Unknown\u0027)",
"type": "expression"
}
],
@ -1116,6 +981,7 @@
},
"props": {
"style": {
"backgroundColor": "#FFFFFF",
"classes": "Text-Styles/Ariel-Bold-12pt",
"paddingLeft": 10
}
@ -1163,9 +1029,9 @@
},
"props": {
"style": {
"paddingLeft": 20
"paddingLeft": 80
},
"text": "VFD FAULT CODE"
"text": "VFD Fault Code"
},
"type": "ia.display.label"
},
@ -1178,28 +1044,6 @@
"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": {
@ -1213,7 +1057,7 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},\u0027UNKNOWN\u0027)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\u0027Unknown\u0027)",
"type": "expression"
}
],
@ -1223,6 +1067,7 @@
},
"props": {
"style": {
"backgroundColor": "#FFFFFF",
"classes": "Text-Styles/Ariel-Bold-12pt",
"paddingLeft": 10
}
@ -1270,9 +1115,9 @@
},
"props": {
"style": {
"paddingLeft": 20
"paddingLeft": 70
},
"text": "LAST VFD FAULT CODE"
"text": "Last VFD Fault Code"
},
"type": "ia.display.label"
},
@ -1285,28 +1130,6 @@
"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": {
@ -1320,7 +1143,7 @@
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},\u0027UNKNOWN\u0027)",
"expression": "coalesce({value},{view.params.forceFaultStatus},\u0027Unknown\u0027)",
"type": "expression"
}
],
@ -1330,6 +1153,7 @@
},
"props": {
"style": {
"backgroundColor": "#FFFFFF",
"classes": "Text-Styles/Ariel-Bold-12pt",
"paddingLeft": 10
}
@ -1423,11 +1247,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": [
{
@ -1499,10 +1323,6 @@
{
"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"
@ -1599,12 +1419,6 @@
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Cycle_Time_Factor"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
}
],
"type": "tag"
}
}
@ -1738,7 +1552,7 @@
"mappings": [
{
"input": false,
"output": "Activate Maintenance Mode"
"output": "Active Maintenance Mode"
},
{
"input": true,
@ -1784,7 +1598,7 @@
"component": {
"onActionPerformed": {
"config": {
"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])"
"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])"
},
"scope": "G",
"type": "script"
@ -1801,26 +1615,15 @@
"props.enabled": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Maintenance/Maintenance_Mode"
"expression": "indexOf({session.props.auth.user.roles}, \"Administrator\") \u003e\u003d 0 || indexOf({session.props.auth.user.roles}, \"Maintenance\") \u003e\u003d 0"
},
"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"
"type": "expr"
}
},
"props.value": {
"binding": {
"config": {
"bidirectional": true,
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
@ -1829,12 +1632,6 @@
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Maintenance/Speed_FPM"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
}
],
"type": "tag"
}
}
@ -1902,52 +1699,14 @@
],
"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"
},
@ -1990,52 +1749,14 @@
],
"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"
},
@ -2085,52 +1806,14 @@
],
"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"
},
@ -2174,14 +1857,6 @@
"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": {
@ -2199,9 +1874,13 @@
"type": "expression"
},
{
"fallback": "Direction Backward",
"fallback": "Direction",
"inputType": "scalar",
"mappings": [
{
"input": false,
"output": "Direction Backward"
},
{
"input": true,
"output": "Direction Forward"
@ -2217,6 +1896,7 @@
},
"props": {
"style": {
"backgroundColor": "#0068F7",
"marginBottom": 10
}
},
@ -2230,7 +1910,7 @@
"name": "FlexContainer"
},
"position": {
"basis": "500px",
"basis": "200px",
"grow": 1
},
"props": {
@ -2243,7 +1923,7 @@
"name": "Maintenance"
},
"position": {
"basis": "400px",
"basis": "200px",
"grow": 1
},
"props": {

View File

@ -1,6 +1,6 @@
{
"custom": {
"disconnected": true,
"disconnected": false,
"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 \"#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"
"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"
},
"type": "expr"
},
@ -210,28 +210,6 @@
"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": {