599 lines
16 KiB
Plaintext
599 lines
16 KiB
Plaintext
{
|
|
"custom": {
|
|
"cameraName": "value",
|
|
"color": "#C2C2C2",
|
|
"priority": "No Active Alarms",
|
|
"state": "Closed"
|
|
},
|
|
"params": {
|
|
"ipaddress": "192.168.25.24:8000",
|
|
"tagProps": [
|
|
"value",
|
|
"value",
|
|
"value",
|
|
"value",
|
|
"value",
|
|
"value",
|
|
"value",
|
|
"value",
|
|
"value",
|
|
"value"
|
|
]
|
|
},
|
|
"propConfig": {
|
|
"custom.cameraName": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "{view.params.tagProps[0]}"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"code": "\treturn value.split(\"/\")[-1]",
|
|
"type": "script"
|
|
}
|
|
],
|
|
"type": "expr"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.color": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"0": "{view.params.tagProps[0]}",
|
|
"fc": "{session.custom.fc}"
|
|
},
|
|
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Color"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"expression": "coalesce({value},0)",
|
|
"type": "expression"
|
|
},
|
|
{
|
|
"fallback": "#000000",
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": 0,
|
|
"output": "#C2C2C2"
|
|
},
|
|
{
|
|
"input": 1,
|
|
"output": "#FF0000"
|
|
},
|
|
{
|
|
"input": 2,
|
|
"output": "#FFA500"
|
|
},
|
|
{
|
|
"input": 3,
|
|
"output": "#0008FF"
|
|
},
|
|
{
|
|
"input": 4,
|
|
"output": "#00FF00"
|
|
},
|
|
{
|
|
"input": 5,
|
|
"output": "#FFF700"
|
|
},
|
|
{
|
|
"input": 6,
|
|
"output": "#87CEEB"
|
|
},
|
|
{
|
|
"input": 7,
|
|
"output": "#90EE90"
|
|
},
|
|
{
|
|
"input": 8,
|
|
"output": "#964B00"
|
|
},
|
|
{
|
|
"input": 9,
|
|
"output": "#FFFFFF"
|
|
},
|
|
{
|
|
"input": 10,
|
|
"output": "#000000"
|
|
},
|
|
{
|
|
"input": 11,
|
|
"output": "#8B0000"
|
|
},
|
|
{
|
|
"input": 12,
|
|
"output": "#808080"
|
|
},
|
|
{
|
|
"input": 13,
|
|
"output": "#8B8000"
|
|
},
|
|
{
|
|
"input": 14,
|
|
"output": "#006400"
|
|
},
|
|
{
|
|
"input": 15,
|
|
"output": "#FFFFC5"
|
|
},
|
|
{
|
|
"input": 16,
|
|
"output": "#00008B"
|
|
},
|
|
{
|
|
"input": 17,
|
|
"output": "#FF7276"
|
|
},
|
|
{
|
|
"input": 18,
|
|
"output": "#556B2F"
|
|
},
|
|
{
|
|
"input": 19,
|
|
"output": "#B43434"
|
|
},
|
|
{
|
|
"input": 20,
|
|
"output": "#4682B4"
|
|
},
|
|
{
|
|
"input": 21,
|
|
"output": "#FFD700"
|
|
}
|
|
],
|
|
"outputType": "color",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.priority": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"0": "{view.params.tagProps[0]}",
|
|
"fc": "{session.custom.fc}"
|
|
},
|
|
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Priority"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"expression": "coalesce({value},0)",
|
|
"type": "expression"
|
|
},
|
|
{
|
|
"fallback": null,
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": 0,
|
|
"output": "No Active Alarms"
|
|
},
|
|
{
|
|
"input": 1,
|
|
"output": "High"
|
|
},
|
|
{
|
|
"input": 2,
|
|
"output": "Medium"
|
|
},
|
|
{
|
|
"input": 3,
|
|
"output": "Low"
|
|
},
|
|
{
|
|
"input": 4,
|
|
"output": "Diagnostic"
|
|
}
|
|
],
|
|
"outputType": "scalar",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.state": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"0": "{view.params.tagProps[0]}",
|
|
"fc": "{session.custom.fc}"
|
|
},
|
|
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/State"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"expression": "coalesce({value},0)",
|
|
"type": "expression"
|
|
},
|
|
{
|
|
"fallback": "Unknown",
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": 0,
|
|
"output": "Closed"
|
|
},
|
|
{
|
|
"input": 1,
|
|
"output": "Actuated"
|
|
},
|
|
{
|
|
"input": 2,
|
|
"output": "Communication Faulted"
|
|
},
|
|
{
|
|
"input": 3,
|
|
"output": "Conveyor Running In Maintenance Mode"
|
|
},
|
|
{
|
|
"input": 4,
|
|
"output": "Disabled"
|
|
},
|
|
{
|
|
"input": 5,
|
|
"output": "Disconnected"
|
|
},
|
|
{
|
|
"input": 6,
|
|
"output": "Stopped"
|
|
},
|
|
{
|
|
"input": 7,
|
|
"output": "Enabled Not Running"
|
|
},
|
|
{
|
|
"input": 8,
|
|
"output": "Encoder Fault"
|
|
},
|
|
{
|
|
"input": 9,
|
|
"output": "Energy Management"
|
|
},
|
|
{
|
|
"input": 10,
|
|
"output": "ESTOP Was Actuated"
|
|
},
|
|
{
|
|
"input": 11,
|
|
"output": "EStopped"
|
|
},
|
|
{
|
|
"input": 12,
|
|
"output": "EStopped Locally"
|
|
},
|
|
{
|
|
"input": 13,
|
|
"output": "Extended Faulted"
|
|
},
|
|
{
|
|
"input": 14,
|
|
"output": "Full"
|
|
},
|
|
{
|
|
"input": 15,
|
|
"output": "Gaylord Start Pressed"
|
|
},
|
|
{
|
|
"input": 16,
|
|
"output": "Jam Fault"
|
|
},
|
|
{
|
|
"input": 17,
|
|
"output": "Jammed"
|
|
},
|
|
{
|
|
"input": 18,
|
|
"output": "Loading Allowed"
|
|
},
|
|
{
|
|
"input": 19,
|
|
"output": "Loading Not Allowed"
|
|
},
|
|
{
|
|
"input": 20,
|
|
"output": "Low Air Pressure Fault Was Present"
|
|
},
|
|
{
|
|
"input": 21,
|
|
"output": "Maintenance Mode"
|
|
},
|
|
{
|
|
"input": 22,
|
|
"output": "Conveyor Stopped In Maintenance Mode"
|
|
},
|
|
{
|
|
"input": 23,
|
|
"output": "Motor Faulted"
|
|
},
|
|
{
|
|
"input": 24,
|
|
"output": "Motor Was Faulted"
|
|
},
|
|
{
|
|
"input": 25,
|
|
"output": "Normal"
|
|
},
|
|
{
|
|
"input": 26,
|
|
"output": "Off Inactive"
|
|
},
|
|
{
|
|
"input": 27,
|
|
"output": "Open"
|
|
},
|
|
{
|
|
"input": 28,
|
|
"output": "PLC Ready To Run"
|
|
},
|
|
{
|
|
"input": 29,
|
|
"output": "Package Release Pressed"
|
|
},
|
|
{
|
|
"input": 30,
|
|
"output": "Power Branch Was Faulted"
|
|
},
|
|
{
|
|
"input": 31,
|
|
"output": "Pressed"
|
|
},
|
|
{
|
|
"input": 32,
|
|
"output": "Ready To Receive"
|
|
},
|
|
{
|
|
"input": 33,
|
|
"output": "Running"
|
|
},
|
|
{
|
|
"input": 34,
|
|
"output": "Started"
|
|
},
|
|
{
|
|
"input": 35,
|
|
"output": "Stopped"
|
|
},
|
|
{
|
|
"input": 36,
|
|
"output": "System Started"
|
|
},
|
|
{
|
|
"input": 37,
|
|
"output": "Unknown"
|
|
},
|
|
{
|
|
"input": 38,
|
|
"output": "VFD Fault"
|
|
},
|
|
{
|
|
"input": 39,
|
|
"output": "Conveyor Running In Power Saving Mode"
|
|
},
|
|
{
|
|
"input": 40,
|
|
"output": "Conveyor Jogging In Maintenance Mode"
|
|
},
|
|
{
|
|
"input": 41,
|
|
"output": "VFD Reset Required"
|
|
},
|
|
{
|
|
"input": 42,
|
|
"output": "Jam Reset Push Button Pressed"
|
|
},
|
|
{
|
|
"input": 43,
|
|
"output": "Start Push Button Pressed"
|
|
},
|
|
{
|
|
"input": 44,
|
|
"output": "Stop Push Button Pressed"
|
|
},
|
|
{
|
|
"input": 45,
|
|
"output": "No Container"
|
|
},
|
|
{
|
|
"input": 46,
|
|
"output": "Ready To Be Enabled"
|
|
},
|
|
{
|
|
"input": 47,
|
|
"output": "Half Full"
|
|
},
|
|
{
|
|
"input": 48,
|
|
"output": "Enabled"
|
|
},
|
|
{
|
|
"input": 49,
|
|
"output": "Tipper Faulted"
|
|
}
|
|
],
|
|
"outputType": "scalar",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"params.ipaddress": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.tagProps": {
|
|
"paramDirection": "inout",
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 100,
|
|
"width": 100
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "Camera"
|
|
},
|
|
"position": {
|
|
"height": 1,
|
|
"width": 1
|
|
},
|
|
"propConfig": {
|
|
"props.elements[1].elements[0].fill.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.custom.color"
|
|
},
|
|
"enabled": false,
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"elements": [
|
|
{
|
|
"id": "defs963",
|
|
"name": "defs963",
|
|
"type": "defs"
|
|
},
|
|
{
|
|
"elements": [
|
|
{
|
|
"d": "M 108.69378,77.205299 A 30.372795,30.372799 0 0 1 78.350262,107.57808 30.372795,30.372799 0 0 1 47.948245,77.263855 30.372795,30.372799 0 0 1 78.23315,46.832627 a 30.372795,30.372799 0 0 1 30.4604,30.255561",
|
|
"fill": {
|
|
"paint": "#C4C4C4"
|
|
},
|
|
"id": "path2823",
|
|
"name": "path2823",
|
|
"stroke": {
|
|
"dasharray": "none",
|
|
"linejoin": "round",
|
|
"miterlimit": "4",
|
|
"paint": "#000000",
|
|
"width": "2.30899"
|
|
},
|
|
"style": {
|
|
"paintOrder": "markers fill stroke"
|
|
},
|
|
"type": "path"
|
|
},
|
|
{
|
|
"elements": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"d": "m 308.1,277.95 c 0,35.7 -28.9,64.6 -64.6,64.6 -35.7,0 -64.6,-28.9 -64.6,-64.6 0,-35.7 28.9,-64.6 64.6,-64.6 35.7,0 64.6,28.9 64.6,64.6 z m 132.2,-161.9 c 25.8,0 46.7,20.9 46.7,46.7 v 122.4 103.8 c 0,27.5 -22.3,49.8 -49.8,49.8 H 49.8 C 22.3,438.75 0,416.45 0,388.95 v -103.9 -122.3 0 c 0,-25.8 20.9,-46.7 46.7,-46.7 h 93.4 l 4.4,-18.6 c 6.7,-28.8 32.4,-49.2 62,-49.2 h 74.1 c 29.6,0 55.3,20.4 62,49.2 l 4.3,18.6 z m -342.9,67.4 c 0,-12.9 -10.5,-23.4 -23.4,-23.4 -13,0 -23.5,10.5 -23.5,23.4 0,12.9 10.5,23.4 23.4,23.4 13,0.1 23.5,-10.4 23.5,-23.4 z m 261.3,94.5 c 0,-63.6 -51.6,-115.2 -115.2,-115.2 -63.6,0 -115.2,51.6 -115.2,115.2 0,63.6 51.6,115.2 115.2,115.2 63.6,0 115.2,-51.6 115.2,-115.2 z",
|
|
"id": "path954",
|
|
"name": "path954",
|
|
"type": "path"
|
|
}
|
|
],
|
|
"id": "g956",
|
|
"name": "g956",
|
|
"type": "group"
|
|
}
|
|
],
|
|
"id": "g958",
|
|
"name": "g958",
|
|
"transform": "matrix(0.10552692,0,0,0.1049851,58.573883,61.035557)",
|
|
"type": "group"
|
|
}
|
|
],
|
|
"id": "g2695",
|
|
"name": "g2695",
|
|
"transform": "matrix(0.78290367,0,0,0.78703031,12.345936,11.651649)",
|
|
"type": "group"
|
|
}
|
|
],
|
|
"id": "g3222",
|
|
"name": "g3222",
|
|
"transform": "matrix(0.45169465,0,0,0.44391375,-20.878644,-19.304276)",
|
|
"type": "group"
|
|
}
|
|
],
|
|
"fill": {
|
|
"paint": "#000000"
|
|
},
|
|
"viewBox": "0 0 29.22 29.22"
|
|
},
|
|
"type": "ia.shapes.svg"
|
|
}
|
|
],
|
|
"events": {
|
|
"dom": {
|
|
"onClick": {
|
|
"config": {
|
|
"draggable": true,
|
|
"id": "kxYYzZ2O",
|
|
"modal": false,
|
|
"overlayDismiss": false,
|
|
"resizable": true,
|
|
"showCloseIcon": true,
|
|
"title": "{view.custom.cameraName}",
|
|
"type": "open",
|
|
"viewParams": {
|
|
"ipaddress": "{view.params.ipaddress}"
|
|
},
|
|
"viewPath": "autStand/PopUp-Views/Camera",
|
|
"viewportBound": false
|
|
},
|
|
"scope": "C",
|
|
"type": "popup"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "root",
|
|
"tooltip": {
|
|
"enabled": true,
|
|
"location": "top-left"
|
|
}
|
|
},
|
|
"propConfig": {
|
|
"meta.tooltip.text": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if(\n {view.custom.state} !\u003d \"Closed\",\n \"Source Id: \" + {view.params.tagProps[0]} + \", Priority: \" + {view.custom.priority} + \", State: \" + {view.custom.state},\n \"Device Disconnected\"\n)\n"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"meta.visible": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "session.custom.alarm_filter.show_camera_jams"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"aspectRatio": "1:1",
|
|
"mode": "percent",
|
|
"style": {
|
|
"cursor": "pointer"
|
|
}
|
|
},
|
|
"type": "ia.container.coord"
|
|
}
|
|
} |