BNA8/.resources/b5db6ba91dc00241ec8bd6b9be320560ff96a67c5064c5615c0f1ea66b310975

679 lines
18 KiB
Plaintext

{
"custom": {},
"params": {
"meta": {
"name": "S1-CH1"
},
"props": {
"config": {
"alwaysShowAll": true,
"isClickable": false,
"rotation": 0
},
"status": {
"tagPath": "[default]MCP04/CH_20116/CH_20116"
}
}
},
"propConfig": {
"params.meta": {
"paramDirection": "input",
"persistent": true
},
"params.meta.name": {
"paramDirection": "input",
"persistent": true
},
"params.props": {
"paramDirection": "input",
"persistent": true
},
"params.props.config.alwaysShowAll": {
"paramDirection": "input",
"persistent": true
},
"params.props.config.rotation": {
"paramDirection": "input",
"persistent": true
}
},
"props": {
"defaultSize": {
"height": 500,
"width": 900
}
},
"root": {
"children": [
{
"meta": {
"name": "Commands"
},
"position": {
"height": 180,
"width": "calc(100% - 330px)",
"x": 10,
"y": 10
},
"props": {
"style": {
"backgroundColor": "#FF0",
"borderStyle": "solid"
}
},
"type": "ia.display.label"
},
{
"meta": {
"name": "Instructions"
},
"position": {
"height": "calc(100% - 20px)",
"width": 300,
"x": "calc(100% - 310px)",
"y": 10
},
"props": {
"style": {
"backgroundColor": "#FF0",
"borderStyle": "solid"
}
},
"type": "ia.display.label"
},
{
"meta": {
"name": "Instructions_Label"
},
"position": {
"height": 32,
"width": 300,
"x": "calc(100% - 310px)",
"y": 10
},
"props": {
"style": {
"fontWeight": "bold",
"textAlign": "center"
},
"text": "Oiler Procedure"
},
"type": "ia.display.label"
},
{
"meta": {
"name": "Instructions_Text"
},
"position": {
"height": "calc(100% - 52px)",
"width": 300,
"x": "calc(100% - 310px)",
"y": 42
},
"props": {
"markdown": {
"escapeHtml": false
},
"source": "1) Make sure system is stopped and press enable button\u003cbr\u003e\n2) Press \"START SORTER\" to run the sorter at 10% speed\u003cbr\u003e\n3) Press \"START OIL CYCLE\" or the start push button on the oiler start/stop switch to begin the oil cycle\u003cbr\u003e\n4) Stop the sorter once the Cycle Finished indicator appears\u003cbr\u003e\n5) Disable Oiler once system is stopped",
"style": {
"paddingLeft": 5,
"paddingRight": 5
}
},
"type": "ia.display.markdown"
},
{
"meta": {
"name": "Commands_Label"
},
"position": {
"height": 40,
"width": 140,
"x": 15,
"y": 20
},
"props": {
"style": {
"fontWeight": "bold",
"textAlign": "right"
},
"text": "Oiler Commands:"
},
"type": "ia.display.label"
},
{
"events": {
"component": {
"onActionPerformed": {
"config": {
"script": "\ttags \u003d [\"[default]MCP21_Custom/Oiler/Commands/MaintEnable\"]\n\tvalues \u003d [self.props.text \u003d\u003d \"Click to Enable\"]\n\tsystem.tag.writeAsync(tags, values)"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "EnableCommands"
},
"position": {
"height": 40,
"width": 100,
"x": 160,
"y": 20
},
"propConfig": {
"props.enabled": {
"binding": {
"config": {
"expression": "isGood({[default]MCP21_Custom/Oiler/Commands/MaintEnable})\r\n\u0026\u0026try((!{[default]MCP21_Custom/Oiler/Commands/MaintEnable}||{[default]MCP21_Custom/Oiler/Status/SorterSpeed}\u003d0), false)\r\n\u0026\u0026isAuthorized(false,\r\n\t\"Authenticated/Roles/Administrator\",\r\n\t\"Authenticated/Roles/Developer\",\r\n\t\"Authenticated/Roles/Supervisor\",\r\n\t\"Authenticated/Roles/Maintenance\"\r\n)"
},
"type": "expr"
}
},
"props.style.classes": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "direct",
"tagPath": "[default]MCP21_Custom/Oiler/Commands/MaintEnable"
},
"transforms": [
{
"expression": "try({value}, false)",
"type": "expression"
},
{
"fallback": "Buttons/Red",
"inputType": "scalar",
"mappings": [
{
"input": false,
"output": "Buttons/Green"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "tag"
}
},
"props.text": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "direct",
"tagPath": "[default]MCP21_Custom/Oiler/Commands/MaintEnable"
},
"transforms": [
{
"expression": "try({value}, false)",
"type": "expression"
},
{
"fallback": "Click to Disable",
"inputType": "scalar",
"mappings": [
{
"input": false,
"output": "Click to Enable"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "tag"
}
}
},
"props": {
"style": {}
},
"type": "ia.input.button"
},
{
"events": {
"component": {
"onActionPerformed": {
"config": {
"script": "\ttags \u003d [\"[default]MCP21_Custom/Oiler/Commands/StartSorter\"]\n\tvalues \u003d [1]\n\tsystem.tag.writeAsync(tags, values)"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "StartSorter"
},
"position": {
"height": 40,
"width": 100,
"x": 265,
"y": 20
},
"propConfig": {
"props.enabled": {
"binding": {
"config": {
"expression": "try({[default]MCP21_Custom/Oiler/Commands/MaintEnable}, false)\r\n\u0026\u0026isGood({[default]MCP21_Custom/Oiler/Commands/StartSorter})\r\n\u0026\u0026isAuthorized(false,\r\n\t\"Authenticated/Roles/Administrator\",\r\n\t\"Authenticated/Roles/Developer\",\r\n\t\"Authenticated/Roles/Supervisor\",\r\n\t\"Authenticated/Roles/Maintenance\"\r\n)"
},
"type": "expr"
}
}
},
"props": {
"style": {
"classes": "Buttons/Green"
},
"text": "Start Sorter"
},
"type": "ia.input.button"
},
{
"events": {
"component": {
"onActionPerformed": {
"config": {
"script": "\ttags \u003d [\"[default]MCP21_Custom/Oiler/Commands/StopSorter\"]\n\tvalues \u003d [1]\n\tsystem.tag.writeAsync(tags, values)"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "StopSorter"
},
"position": {
"height": 40,
"width": 100,
"x": 370,
"y": 20
},
"propConfig": {
"props.enabled": {
"binding": {
"config": {
"expression": "try({[default]MCP21_Custom/Oiler/Commands/MaintEnable}, false)\r\n\u0026\u0026isGood({[default]MCP21_Custom/Oiler/Commands/StopSorter})\r\n\u0026\u0026isAuthorized(false,\r\n\t\"Authenticated/Roles/Administrator\",\r\n\t\"Authenticated/Roles/Developer\",\r\n\t\"Authenticated/Roles/Supervisor\",\r\n\t\"Authenticated/Roles/Maintenance\"\r\n)"
},
"type": "expr"
}
}
},
"props": {
"style": {
"classes": "Buttons/Red",
"color": "#FFF"
},
"text": "Stop Sorter"
},
"type": "ia.input.button"
},
{
"events": {
"component": {
"onActionPerformed": {
"config": {
"script": "\ttags \u003d [\"[default]MCP21_Custom/Oiler/Commands/StartOilCycle\"]\n\tvalues \u003d [1]\n\tsystem.tag.writeAsync(tags, values)"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "StartOilCycle"
},
"position": {
"height": 40,
"width": 100,
"x": 475,
"y": 20
},
"propConfig": {
"props.enabled": {
"binding": {
"config": {
"expression": "try({[default]MCP21_Custom/Oiler/Commands/MaintEnable}, false)\r\n\u0026\u0026isGood({[default]MCP21_Custom/Oiler/Commands/StartOilCycle})\r\n\u0026\u0026isAuthorized(false,\r\n\t\"Authenticated/Roles/Administrator\",\r\n\t\"Authenticated/Roles/Developer\",\r\n\t\"Authenticated/Roles/Supervisor\",\r\n\t\"Authenticated/Roles/Maintenance\"\r\n)"
},
"type": "expr"
}
}
},
"props": {
"style": {
"classes": "Buttons/Green"
},
"text": "Start Oil Cycle"
},
"type": "ia.input.button"
},
{
"meta": {
"name": "Status_Label"
},
"position": {
"height": 50,
"width": 140,
"x": 15,
"y": 80
},
"props": {
"style": {
"fontWeight": "bold",
"textAlign": "right"
},
"text": "Oiler Status:"
},
"type": "ia.display.label"
},
{
"meta": {
"name": "CycleActive"
},
"position": {
"height": 50,
"width": 100,
"x": 160,
"y": 80
},
"propConfig": {
"meta.visible": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "direct",
"tagPath": "[default]MCP21_Custom/Oiler/Status/CycleActive"
},
"transforms": [
{
"expression": "try({value}, true)",
"type": "expression"
}
],
"type": "tag"
}
}
},
"props": {
"style": {
"backgroundColor": "#0F0",
"borderStyle": "solid",
"textAlign": "center"
},
"text": "Cycle Active"
},
"type": "ia.display.label"
},
{
"meta": {
"name": "CycleFinished"
},
"position": {
"height": 50,
"width": 100,
"x": 265,
"y": 80
},
"propConfig": {
"meta.visible": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "direct",
"tagPath": "[default]MCP21_Custom/Oiler/Status/CycleFinished"
},
"transforms": [
{
"expression": "try({value}, true)",
"type": "expression"
}
],
"type": "tag"
}
}
},
"props": {
"style": {
"backgroundColor": "#0F0",
"borderStyle": "solid",
"textAlign": "center"
},
"text": "Cycle Finished"
},
"type": "ia.display.label"
},
{
"meta": {
"name": "CycleFaulted"
},
"position": {
"height": 50,
"width": 100,
"x": 370,
"y": 80
},
"propConfig": {
"meta.visible": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "direct",
"tagPath": "[default]MCP21_Custom/Oiler/Status/CycleFaulted"
},
"transforms": [
{
"expression": "try({value}, true)",
"type": "expression"
}
],
"type": "tag"
}
}
},
"props": {
"style": {
"backgroundColor": "#F00",
"borderColor": "#000",
"borderStyle": "solid",
"color": "#FFF",
"textAlign": "center"
},
"text": "Faulted"
},
"type": "ia.display.label"
},
{
"meta": {
"name": "Speed_Label"
},
"position": {
"height": 40,
"width": 140,
"x": 15,
"y": 140
},
"props": {
"style": {
"fontWeight": "bold",
"textAlign": "right"
},
"text": "Sorter Speed:"
},
"type": "ia.display.label"
},
{
"meta": {
"name": "Speed"
},
"position": {
"height": 40,
"width": 150,
"x": 160,
"y": 140
},
"propConfig": {
"props.text": {
"binding": {
"config": {
"expression": "try({[default]MCP21_Custom/Oiler/Status/SorterSpeed}, \"Unknown\")"
},
"type": "expr"
}
}
},
"props": {
"style": {
"backgroundColor": "#FFF",
"borderStyle": "solid",
"textAlign": "center"
}
},
"type": "ia.display.label"
},
{
"meta": {
"name": "RuntimeBox"
},
"position": {
"height": "calc(100% - 210px)",
"width": "calc(100% - 330px)",
"x": 10,
"y": 200
},
"props": {
"style": {
"backgroundColor": "#FF0",
"borderStyle": "solid"
}
},
"type": "ia.display.label"
},
{
"meta": {
"name": "Runtime_Label"
},
"position": {
"height": 50,
"width": 140,
"x": 15,
"y": 210
},
"props": {
"style": {
"fontWeight": "bold",
"textAlign": "right"
},
"text": "Runtime Till Next Oil Cycle:"
},
"type": "ia.display.label"
},
{
"meta": {
"name": "Runtime"
},
"position": {
"height": 50,
"width": 150,
"x": 160,
"y": 210
},
"propConfig": {
"props.text": {
"binding": {
"config": {
"expression": "try({[default]MCP21_Custom/Oiler/Status/RuntimeTillNextCycle}, \"Unknown\")"
},
"type": "expr"
}
}
},
"props": {
"style": {
"backgroundColor": "#FFF",
"borderStyle": "solid",
"textAlign": "center"
}
},
"type": "ia.display.label"
},
{
"events": {
"component": {
"onActionPerformed": {
"config": {
"script": "\ttags \u003d [\"[default]MCP21_Custom/Oiler/Commands/ExtendTime\"]\n\tvalues \u003d [1]\n\tsystem.tag.writeAsync(tags, values)"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "ExtendTime"
},
"position": {
"height": 50,
"width": 130,
"x": 320,
"y": 210
},
"propConfig": {
"props.enabled": {
"binding": {
"config": {
"expression": "isGood({[default]MCP21_Custom/Oiler/Commands/ExtendTime})\r\n\u0026\u0026isAuthorized(false,\r\n\t\"Authenticated/Roles/Administrator\",\r\n\t\"Authenticated/Roles/Developer\",\r\n\t\"Authenticated/Roles/Supervisor\",\r\n\t\"Authenticated/Roles/Maintenance\"\r\n)"
},
"type": "expr"
}
}
},
"props": {
"style": {
"classes": "Buttons/Red",
"color": "#FFF"
},
"text": "Extend Time 168 Hours"
},
"type": "ia.input.button"
},
{
"meta": {
"name": "RuntimeRecommended_Label"
},
"position": {
"height": 80,
"width": 250,
"x": 320,
"y": 270
},
"propConfig": {
"props.text": {
"binding": {
"config": {
"expression": "\"Mechanical Recommended Runtime in Hours Before Oiling the Chain is \"\r\n+try({[default]MCP21_Custom/Oiler/Status/RuntimeTillNextCycle}, \"xxxx\")\r\n+\" Hours\""
},
"type": "expr"
}
}
},
"props": {
"alignVertical": "top"
},
"type": "ia.display.label"
}
],
"meta": {
"name": "root"
},
"props": {
"style": {
"background-color": "#CFCFCF"
}
},
"type": "ia.container.coord"
}
}