415 lines
11 KiB
Plaintext
415 lines
11 KiB
Plaintext
{
|
|
"custom": {},
|
|
"params": {
|
|
"alwaysShowAll": false,
|
|
"chuteNum": "",
|
|
"isClickable": true,
|
|
"mirror": false,
|
|
"tagPath": "MCP05/PS01/PS01_28CH"
|
|
},
|
|
"propConfig": {
|
|
"params.alwaysShowAll": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.chuteNum": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.isClickable": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.mirror": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.tagPath": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 92,
|
|
"width": 94
|
|
},
|
|
"loading": {
|
|
"mode": "blocking"
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"events": {
|
|
"dom": {
|
|
"onClick": {
|
|
"config": {
|
|
"script": "\tself.parent.openPopup()"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "Conveyor"
|
|
},
|
|
"position": {
|
|
"height": 48,
|
|
"rotate": {
|
|
"anchor": "0 0",
|
|
"angle": 90
|
|
},
|
|
"width": 89,
|
|
"x": 69,
|
|
"y": 1
|
|
},
|
|
"propConfig": {
|
|
"props.config.isClickable": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "!{view.params.isClickable}"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.config.showLabel": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/Conv/Parameters.LabelFull"
|
|
},
|
|
"overlayOptOut": true,
|
|
"type": "tag"
|
|
}
|
|
},
|
|
"props.status": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/Conv/Graphics"
|
|
},
|
|
"overlayOptOut": true,
|
|
"type": "tag"
|
|
}
|
|
},
|
|
"props.style.transform": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.mirror"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"fallback": null,
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": true,
|
|
"output": "scale(1, -1) translateY(-100%)"
|
|
}
|
|
],
|
|
"outputType": "scalar",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"config": {
|
|
"type": "chute"
|
|
}
|
|
},
|
|
"type": "dex.display.conveyor"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "BCN1_BLU"
|
|
},
|
|
"position": {
|
|
"height": 16,
|
|
"width": 16,
|
|
"y": 3
|
|
},
|
|
"propConfig": {
|
|
"props.status": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/BCN1/BLU/Graphics"
|
|
},
|
|
"overlayOptOut": true,
|
|
"transforms": [
|
|
{
|
|
"expression": "if({view.params.alwaysShowAll},\r\n\tjsonSet({value}, \"showAlways\", {view.params.alwaysShowAll}),\r\n\t{value}\r\n)",
|
|
"type": "expression"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
}
|
|
},
|
|
"props.style.transform": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "parent.props.style.transform"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"type": "dex.display.beacon"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "BCN1_AMB"
|
|
},
|
|
"position": {
|
|
"height": 16,
|
|
"width": 16,
|
|
"y": 18
|
|
},
|
|
"propConfig": {
|
|
"props.status": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/BCN1/AMB/Graphics"
|
|
},
|
|
"overlayOptOut": true,
|
|
"transforms": [
|
|
{
|
|
"expression": "if({view.params.alwaysShowAll},\r\n\tjsonSet({value}, \"showAlways\", {view.params.alwaysShowAll}),\r\n\t{value}\r\n)",
|
|
"type": "expression"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
}
|
|
},
|
|
"props.style.transform": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "parent.props.style.transform"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"type": "dex.display.beacon"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "BCN1_GRN"
|
|
},
|
|
"position": {
|
|
"height": 16,
|
|
"width": 16,
|
|
"y": 33
|
|
},
|
|
"propConfig": {
|
|
"props.status": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/BCN1/GRN/Graphics"
|
|
},
|
|
"overlayOptOut": true,
|
|
"transforms": [
|
|
{
|
|
"expression": "if({view.params.alwaysShowAll},\r\n\tjsonSet({value}, \"showAlways\", {view.params.alwaysShowAll}),\r\n\t{value}\r\n)",
|
|
"type": "expression"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
}
|
|
},
|
|
"props.style.transform": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "parent.props.style.transform"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"type": "dex.display.beacon"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "Half_PE"
|
|
},
|
|
"position": {
|
|
"height": 10,
|
|
"rotate": {
|
|
"angle": 180
|
|
},
|
|
"width": 62,
|
|
"x": 17,
|
|
"y": 74
|
|
},
|
|
"propConfig": {
|
|
"props.status": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/Half_PE/Graphics"
|
|
},
|
|
"overlayOptOut": true,
|
|
"transforms": [
|
|
{
|
|
"expression": "if({view.params.alwaysShowAll},\r\n\tjsonSet({value}, \"showAlways\", {view.params.alwaysShowAll}),\r\n\t{value}\r\n)",
|
|
"type": "expression"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
}
|
|
}
|
|
},
|
|
"type": "dex.display.photoeye"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "Jam_PE"
|
|
},
|
|
"position": {
|
|
"height": 10,
|
|
"rotate": {
|
|
"angle": 180
|
|
},
|
|
"width": 62,
|
|
"x": 17,
|
|
"y": 6
|
|
},
|
|
"propConfig": {
|
|
"props.status": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/Jam_PE/Graphics"
|
|
},
|
|
"overlayOptOut": true,
|
|
"transforms": [
|
|
{
|
|
"expression": "if({view.params.alwaysShowAll},\r\n\tjsonSet({value}, \"showAlways\", {view.params.alwaysShowAll}),\r\n\t{value}\r\n)",
|
|
"type": "expression"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
}
|
|
}
|
|
},
|
|
"type": "dex.display.photoeye"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "Full_PE"
|
|
},
|
|
"position": {
|
|
"height": 10,
|
|
"rotate": {
|
|
"angle": 180
|
|
},
|
|
"width": 62,
|
|
"x": 17,
|
|
"y": 36
|
|
},
|
|
"propConfig": {
|
|
"props.status": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagPath": "{view.params.tagPath}"
|
|
},
|
|
"tagPath": "{tagPath}/Full_PE/Graphics"
|
|
},
|
|
"overlayOptOut": true,
|
|
"transforms": [
|
|
{
|
|
"expression": "if({view.params.alwaysShowAll},\r\n\tjsonSet({value}, \"showAlways\", {view.params.alwaysShowAll}),\r\n\t{value}\r\n)",
|
|
"type": "expression"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
}
|
|
}
|
|
},
|
|
"type": "dex.display.photoeye"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "root"
|
|
},
|
|
"propConfig": {
|
|
"props.style.transform": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.mirror"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"fallback": null,
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": true,
|
|
"output": "scale(-1, 1)"
|
|
}
|
|
],
|
|
"outputType": "scalar",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"overflow": "hidden"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"customMethods": [
|
|
{
|
|
"name": "openPopup",
|
|
"params": [],
|
|
"script": "\tif self.view.params.isClickable:\n\t\tid \u003d \"DivChute|\" + self.view.params.tagPath\n\t\ttitle \u003d utils.prettyName(self.view.params.tagPath.split(\"/\")[-1])\n\t\tparams \u003d { \n\t\t\t\"deviceType\": \"divchute\",\n\t\t\t\"props\": { \n\t\t\t\t\"config\": {\n\t\t\t\t\t\"alwaysShowAll\": self.view.params.alwaysShowAll,\n\t\t\t\t\t\"isClickable\": self.view.params.isClickable,\n\t\t\t\t\t#\"rotate\": self.view.params.rotate,\n\t\t\t\t\t\"mirror\": self.view.params.mirror\n\t\t\t\t},\n\t\t\t\t\"status\": {\n\t\t\t\t\t\"tagPath\": self.view.params.tagPath\n\t\t\t\t}\n\t\t \t},\n\t\t \t\"tabs\": [\"Controls\", \"Alarm History\", \"Devices\"]\t\t\n\t\t}\n\t\tsystem.perspective.openPopup(id, \"Popups/DeviceWrapper\", params, title, resizable \u003d True)"
|
|
}
|
|
],
|
|
"extensionFunctions": null,
|
|
"messageHandlers": []
|
|
},
|
|
"type": "ia.container.coord"
|
|
}
|
|
} |