{ "custom": { "start_color": "#000000", "start_priority": "No Active Alarms", "start_state": "Offline", "stop_priority": "No Active Alarms", "stop_state": "Closed" }, "params": { "demoStartColor": -1, "demoStopColor": -1, "tagProps": [ "System/MCM01/SS/UL14_1_SS1", "value", "value", "value", "value", "value", "value", "value", "value", "value" ] }, "propConfig": { "custom.start_color": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "0": "{view.params.tagProps[0]}", "fc": "{session.custom.fc}" }, "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Start/Color" }, "transforms": [ { "expression": "if(\r\n {view.params.demoStartColor} \u003e\u003d 0,\r\n {view.params.demoStartColor},\r\n coalesce({value}, -1)\r\n)\r\n", "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.start_priority": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "0": "{view.params.tagProps[0]}", "fc": "{session.custom.fc}" }, "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Start/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.start_state": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "0": "{view.params.tagProps[0]}", "fc": "{session.custom.fc}" }, "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Start/State" }, "transforms": [ { "expression": "coalesce({value},-1)", "type": "expression" }, { "fallback": "Offline", "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" } ], "outputType": "scalar", "type": "map" } ], "type": "tag" }, "persistent": true }, "custom.stop_color": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "0": "{view.params.tagProps[0]}", "fc": "{session.custom.fc}" }, "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Stop/Color" }, "transforms": [ { "expression": "if(\r\n {view.params.demoStopColor} \u003e\u003d 0,\r\n {view.params.demoStopColor},\r\n coalesce({value}, -1)\r\n)\r\n", "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" } }, "custom.stop_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.stop_state": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "0": "{view.params.tagProps[0]}", "fc": "{session.custom.fc}" }, "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Stop/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" } ], "outputType": "scalar", "type": "map" } ], "type": "tag" }, "persistent": true }, "params.demoStartColor": { "paramDirection": "input", "persistent": true }, "params.demoStopColor": { "paramDirection": "input", "persistent": true }, "params.tagProps": { "paramDirection": "input", "persistent": true } }, "props": { "defaultSize": { "height": 25, "width": 50 } }, "root": { "children": [ { "meta": { "name": "Start", "tooltip": { "style": {} } }, "position": { "height": 1, "width": 1 }, "propConfig": { "meta.tooltip.style.classes": { "binding": { "config": { "expression": "{view.custom.start_priority}" }, "transforms": [ { "fallback": "Alarms-Styles/NoAlarm", "inputType": "scalar", "mappings": [ { "input": "Diagnostic", "output": "Alarms-Styles/Diagnostic" }, { "input": "Low", "output": "Alarms-Styles/Low" }, { "input": "Medium", "output": "Alarms-Styles/Medium" }, { "input": "High", "output": "Alarms-Styles/High" } ], "outputType": "style-list", "type": "map" } ], "type": "expr" } }, "meta.tooltip.text": { "binding": { "config": { "expression": "if(\n {view.custom.start_state} !\u003d \"Closed\",\n \"Source Id: \" + {view.params.tagProps[0]} + \", Priority: \" + {view.custom.start_priority} + \", State: \" + {view.custom.start_state},\n \"Device Disconnected\"\n)\n" }, "type": "expr" } }, "props.elements[1].fill.paint": { "binding": { "config": { "expression": "{view.custom.start_color}" }, "type": "expr" } } }, "props": { "elements": [ { "d": "M 0,0 H 21 V 20 H 0 Z", "fill": { "paint": "#AAAAAA" }, "id": "outer-rect", "name": "outer-rect", "stroke": { "paint": "#000000", "width": "1.5" }, "type": "path" }, { "d": "m 17,10.5 c 0,3.865993 -3.134007,7 -7,7 -3.8659932,0 -7,-3.134007 -7,-7 0,-3.8659932 3.1340068,-7 7,-7 3.865993,0 7,3.1340068 7,7 z", "fill": {}, "id": "inner-circle", "name": "inner-circle", "stroke": { "paint": "#000000", "width": "1" }, "type": "path" } ], "viewBox": "0 0 40 20" }, "type": "ia.shapes.svg" }, { "meta": { "name": "Stop", "tooltip": { "style": {} } }, "position": { "height": 1, "width": 1 }, "propConfig": { "meta.tooltip.style.classes": { "binding": { "config": { "expression": "{view.custom.start_priority}" }, "transforms": [ { "fallback": "Alarms-Styles/NoAlarm", "inputType": "scalar", "mappings": [ { "input": "Diagnostic", "output": "Alarms-Styles/Diagnostic" }, { "input": "Low", "output": "Alarms-Styles/Low" }, { "input": "Medium", "output": "Alarms-Styles/Medium" }, { "input": "High", "output": "Alarms-Styles/High" } ], "outputType": "style-list", "type": "map" } ], "type": "expr" } }, "meta.tooltip.text": { "binding": { "config": { "expression": "if(\n {view.custom.stop_state} !\u003d \"Closed\",\n \"Source Id: \" + {view.params.tagProps[0]} + \", Priority: \" + {view.custom.stop_priority} + \", State: \" + {view.custom.stop_state},\n \"Device Disconnected\"\n)\n" }, "type": "expr" } }, "props.elements[1].fill.paint": { "binding": { "config": { "expression": "{view.custom.stop_color}" }, "type": "expr" } } }, "props": { "elements": [ { "d": "M 20, 0 H 40 V 20 H 20 Z", "fill": { "paint": "#AAAAAA" }, "id": "outer-rect", "name": "outer-rect", "stroke": { "paint": "#000000", "width": "1.5" }, "type": "path" }, { "d": "m 36.642136,10.376001 c 0,3.865993 -3.134007,7 -7,7 -3.865993,0 -7,-3.134007 -7,-7 0,-3.8659928 3.134007,-6.9999998 7,-6.9999998 3.865993,0 7,3.134007 7,6.9999998 z", "fill": {}, "id": "inner-circle-8", "name": "inner-circle-8", "stroke": { "paint": "#000000", "width": "1" }, "type": "path" } ], "viewBox": "0 0 40 20" }, "type": "ia.shapes.svg" } ], "events": { "dom": { "onClick": { "config": { "script": "\t#create tags lists for the device\n\tprops \u003d self.view.params.tagProps\n\ttags_table_dataset \u003d autStand.devices.getAllTags(self, props[0])\n\tsystem.perspective.openDock(\u0027Docked-East-Device\u0027,params\u003d{\u0027tagProps\u0027:props, \"tags\":tags_table_dataset, \"name\":\"\"} )" }, "scope": "G", "type": "script" }, "onMouseEnter": { "config": { "draggable": false, "id": "LZ5nPg42{view.params.tagProps[0]}", "modal": false, "overlayDismiss": false, "position": { "relativeLocation": "top-right" }, "positionType": "relative", "resizable": false, "showCloseIcon": false, "type": "open", "viewParams": { "text": "{/root.meta.tooltip.text}" }, "viewPath": "autStand/Custom_Views/Tooltip", "viewportBound": false }, "scope": "C", "type": "popup" }, "onMouseLeave": { "config": { "draggable": true, "id": "LZ5nPg42{view.params.tagProps[0]}", "modal": false, "overlayDismiss": false, "resizable": true, "showCloseIcon": true, "type": "close", "viewPath": "autStand/Custom_Views/Tooltip", "viewportBound": false }, "scope": "C", "type": "popup" } } }, "meta": { "name": "root", "tooltip": { "enabled": true, "style": {} } }, "propConfig": { "meta.tooltip.style.classes": { "binding": { "config": { "expression": "{view.custom.start_priority}" }, "transforms": [ { "fallback": "Alarms-Styles/NoAlarm", "inputType": "scalar", "mappings": [ { "input": "Diagnostic", "output": "Alarms-Styles/Diagnostic" }, { "input": "Low", "output": "Alarms-Styles/Low" }, { "input": "Medium", "output": "Alarms-Styles/Medium" }, { "input": "High", "output": "Alarms-Styles/High" } ], "outputType": "style-list", "type": "map" } ], "type": "expr" } }, "meta.tooltip.text": { "binding": { "config": { "expression": "if(\n {view.custom.start_state} !\u003d \"Offline\",\n \"Source Id: \" + {view.params.tagProps[0]} + \", Start Priority: \" + {view.custom.start_priority} + \", Start State: \" + {view.custom.start_state} + \", Stop Priority: \" + {view.custom.stop_priority} + \", Stop State: \" + {view.custom.stop_state},\n \"Device Disconnected\"\n)\n" }, "type": "expr" } }, "meta.visible": { "binding": { "config": { "path": "session.custom.alarm_filter.show_buttons" }, "type": "property" } } }, "props": { "mode": "percent", "style": { "cursor": "pointer" } }, "type": "ia.container.coord" } }