Merge pull request 'Update symbols' (#169) from beka-4 into main

Reviewed-on: #169
This commit is contained in:
ilia.gurielidze 2025-08-26 19:29:02 +00:00
commit 07d24c3e35
44 changed files with 220640 additions and 27335 deletions

View File

@ -196,13 +196,13 @@
"content": "cover", "content": "cover",
"handle": "hide", "handle": "hide",
"iconUrl": "", "iconUrl": "",
"id": "Docked-East-JR", "id": "Docked-East-EPC",
"modal": false, "modal": false,
"resizable": false, "resizable": false,
"show": "onDemand", "show": "onDemand",
"size": 400, "size": 400,
"viewParams": {}, "viewParams": {},
"viewPath": "PopUp-Views/Controller-Equipment/Information-Docked-East-JR-PB" "viewPath": "PopUp-Views/Controller-Equipment/Information-Docked-East-EPC"
}, },
{ {
"anchor": "fixed", "anchor": "fixed",

View File

@ -23,22 +23,702 @@
"children": [ "children": [
{ {
"meta": { "meta": {
"name": "Image" "name": "MCM02_Fluid_Inbound_Upper"
}, },
"position": { "position": {
"height": 1, "height": 1,
"width": 1 "width": 1
}, },
"props": { "props": {
"fit": { "elements": [
"mode": "fill" {
}, "id": "defs1",
"source": "/system/images/image-server/MCM02_Fluid_Inbound_Upper.svg", "name": "defs1",
"style": { "type": "defs"
"backgroundColor": "#EEEEEE" },
} {
"elements": [
{
"elements": [
{
"fill": {
"paint": "#ffffff"
},
"height": "20.388428",
"id": "rect1-1-6-1-8-0-3-6-8-0",
"name": "rect1-1-6-1-8-0-3-6-8-0",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "1.02689"
},
"type": "rect",
"width": "126.99",
"x": "1709.5352",
"y": "371.72992"
},
{
"d": "m 1667.3267,402.71086 20.4598,-0.0908 c 0,0 0.87,-4.38082 6.2499,-7.87885 5.38,-3.49805 13.5958,-2.60531 13.5958,-2.60531 l -0.053,-20.57713 c 0,0 -16.2147,-1.97798 -28.5541,6.53551 -12.3395,8.5135 -11.6197,23.66893 -11.6986,24.61644 z",
"fill": {
"paint": "#ffffff"
},
"id": "path1-4-7-7",
"name": "path1-4-7-7",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "1.02689"
},
"type": "path"
},
{
"fill": {
"paint": "#ffffff"
},
"height": "20.388424",
"id": "rect1-1-6-1-8-0-3-6-8-5-5",
"name": "rect1-1-6-1-8-0-3-6-8-5-5",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "1.02689"
},
"transform": "rotate(-90)",
"type": "rect",
"width": "28.965044",
"x": "-433.15012",
"y": "1667.5348"
},
{
"d": "m 1687.7626,434.54115 -20.4597,0.0908 c 0,0 -0.87,4.38082 -6.25,7.87885 -5.38,3.49805 -13.5958,2.60531 -13.5958,2.60531 l 0.053,20.57713 c 0,0 16.2147,1.978 28.5542,-6.53551 12.3394,-8.5135 11.6197,-23.66893 11.6986,-24.61644 z",
"fill": {
"paint": "#ffffff"
},
"id": "path1-4-7",
"name": "path1-4-7",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "1.02689"
},
"type": "path"
},
{
"fill": {
"paint": "#ffffff"
},
"height": "20.388424",
"id": "rect1-1-6-1-8-0-3-6-8-5",
"name": "rect1-1-6-1-8-0-3-6-8-5",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "1.02689"
},
"type": "rect",
"width": "28.965044",
"x": "1616.4097",
"y": "445.12036"
},
{
"fill": {
"paint": "#ffffff"
},
"height": "20.388424",
"id": "rect1-1-6-1-8-0-3-6-8",
"name": "rect1-1-6-1-8-0-3-6-8",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "1.02689"
},
"type": "rect",
"width": "85.444946",
"x": "1528.7975",
"y": "445.18503"
},
{
"fill": {
"paint": "#ffffff"
},
"height": "20.388424",
"id": "rect1-1-6-1-8-0-3-6-9",
"name": "rect1-1-6-1-8-0-3-6-9",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "1.02689"
},
"type": "rect",
"width": "254.5636",
"x": "1271.7882",
"y": "445.45709"
},
{
"fill": {
"paint": "#ffffff"
},
"height": "20.388424",
"id": "rect1-1-6-1-8-0-3-6",
"name": "rect1-1-6-1-8-0-3-6",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "1.02689"
},
"type": "rect",
"width": "254.5636",
"x": "1015.1707",
"y": "445.43655"
},
{
"fill": {
"paint": "#ffffff"
},
"height": "20.388424",
"id": "rect1-1-6-1-8-0-3",
"name": "rect1-1-6-1-8-0-3",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "1.02689"
},
"type": "rect",
"width": "199.17157",
"x": "813.76794",
"y": "445.50531"
},
{
"fill": {
"paint": "#ffffff"
},
"height": "20.454468",
"id": "rect1-1-6-1-8-1-8-50",
"name": "rect1-1-6-1-8-1-8-50",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "0.961264"
},
"transform": "rotate(-39.05134)",
"type": "rect",
"width": "54.784042",
"x": "161.4037",
"y": "766.448"
},
{
"d": "m 652.01426,457.88248 13.22014,15.9369 c 0,0 4.44699,-3.76456 10.03344,-5.95279 5.58645,-2.18827 10.55312,-2.02216 10.55312,-2.02216 l -0.0388,-20.38059 c 0,0 -9.18292,0.9305 -17.03263,3.18856 -7.84974,2.25805 -15.87178,8.62714 -16.73521,9.23008 z",
"fill": {
"paint": "#ffffff"
},
"id": "path1-2-8-9",
"name": "path1-2-8-9",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "1.02689"
},
"type": "path"
},
{
"fill": {
"paint": "#ffffff"
},
"height": "20.454487",
"id": "rect1-1-6-1-8-1-0",
"name": "rect1-1-6-1-8-1-0",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "0.961264"
},
"type": "rect",
"width": "19.5765",
"x": "687.20264",
"y": "445.52081"
},
{
"fill": {
"paint": "#ffffff"
},
"height": "20.388424",
"id": "rect1-1-6-1-8-0",
"name": "rect1-1-6-1-8-0",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "1.02689"
},
"type": "rect",
"width": "103.2112",
"x": "708.69989",
"y": "445.5448"
},
{
"d": "m 606.9935,494.54542 -18.35712,15.17341 30.90682,-0.0155 z",
"fill": {
"opacity": "1",
"paint": "#ffffff"
},
"id": "path3-6",
"name": "path3-6",
"stroke": {
"dasharray": "none",
"opacity": "1",
"paint": "#000000",
"width": "1.02689"
},
"type": "path"
},
{
"d": "m 752.73319,621.09632 c 0,0 45.45788,0.50482 45.17444,42.84389 -0.28333,42.33929 -44.94751,42.59001 -44.94751,42.59001 l -0.0473,-20.53785 c 0,0 22.78243,-3.17735 22.96663,-22.55085 0.18436,-19.37352 -22.93241,-21.80381 -22.93241,-21.80381 z",
"fill": {
"opacity": "1",
"paint": "#ffffff"
},
"id": "path2-5",
"name": "path2-5",
"stroke": {
"dasharray": "none",
"opacity": "1",
"paint": "#000000",
"width": "1.02689"
},
"type": "path"
},
{
"fill": {
"paint": "#ffffff"
},
"height": "20.454468",
"id": "rect1-1-6-1-8-1-8-5",
"name": "rect1-1-6-1-8-1-8-5",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "0.961264"
},
"transform": "rotate(-39.05134)",
"type": "rect",
"width": "44.989513",
"x": "-56.167061",
"y": "891.34344"
},
{
"d": "m 554.02074,698.17189 13.22014,15.93682 c 0,0 4.44698,-3.76452 10.03343,-5.95275 5.58646,-2.18827 10.55309,-2.02216 10.55309,-2.02216 l -0.0388,-20.38047 c 0,0 -9.18292,0.9305 -17.03263,3.18856 -7.84974,2.25805 -15.87178,8.62709 -16.73517,9.23 z",
"fill": {
"paint": "#ffffff"
},
"id": "path1-2-8-4",
"name": "path1-2-8-4",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "1.02689"
},
"type": "path"
},
{
"fill": {
"paint": "#ffffff"
},
"height": "20.454487",
"id": "rect1-1-6-1-8-1-3",
"name": "rect1-1-6-1-8-1-3",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "0.961264"
},
"type": "rect",
"width": "19.5765",
"x": "589.20978",
"y": "685.80737"
},
{
"fill": {
"paint": "#ffffff"
},
"height": "20.548855",
"id": "rect1-1-6-1-8-12",
"name": "rect1-1-6-1-8-12",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "1.02689"
},
"type": "rect",
"width": "140.36653",
"x": "610.56219",
"y": "685.80328"
},
{
"d": "m 516.56537,728.95251 -18.35716,15.17332 30.90682,-0.0155 z",
"fill": {
"opacity": "1",
"paint": "#ffffff"
},
"id": "path3-4",
"name": "path3-4",
"stroke": {
"dasharray": "none",
"opacity": "1",
"paint": "#000000",
"width": "1.02689"
},
"type": "path"
},
{
"fill": {
"paint": "#ffffff"
},
"height": "20.454468",
"id": "rect1-1-6-1-8-1-8",
"name": "rect1-1-6-1-8-1-8",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "0.961264"
},
"transform": "rotate(-39.05134)",
"type": "rect",
"width": "37.653889",
"x": "45.22192",
"y": "812.40039"
},
{
"d": "m 577.32543,577.61067 13.22013,15.93682 c 0,0 4.44698,-3.76451 10.03344,-5.95274 5.58645,-2.18827 10.55308,-2.02216 10.55308,-2.02216 l -0.0388,-20.38047 c 0,0 -9.18292,0.9305 -17.03263,3.18856 -7.84974,2.25805 -15.87176,8.62709 -16.73517,9.22999 z",
"fill": {
"paint": "#ffffff"
},
"id": "path1-2-8",
"name": "path1-2-8",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "1.02689"
},
"type": "path"
},
{
"fill": {
"paint": "#ffffff"
},
"height": "20.454487",
"id": "rect1-1-6-1-8-1",
"name": "rect1-1-6-1-8-1",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "0.961264"
},
"type": "rect",
"width": "19.5765",
"x": "612.51379",
"y": "565.24707"
},
{
"fill": {
"paint": "#ffffff"
},
"height": "20.388424",
"id": "rect1-1-6-1-8",
"name": "rect1-1-6-1-8",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "1.02689"
},
"type": "rect",
"width": "116.68931",
"x": "634.01099",
"y": "565.2713"
},
{
"d": "m 545.75778,604.03917 -18.35714,15.17332 30.90681,-0.0155 z",
"fill": {
"opacity": "1",
"paint": "#ffffff"
},
"id": "path3",
"name": "path3",
"stroke": {
"dasharray": "none",
"opacity": "1",
"paint": "#000000",
"width": "1.02689"
},
"type": "path"
},
{
"d": "m 752.08707,512.55366 c 0,0 45.30152,-2.7766 45.01818,34.8751 -0.28334,37.65171 -44.91123,38.24905 -44.91123,38.24905 l 0.11843,-20.37213 c 0,0 23.36169,0.3729 23.07712,-15.4068 -0.28457,-15.77971 -22.93241,-16.95997 -22.93241,-16.95997 z",
"fill": {
"opacity": "1",
"paint": "#ffffff"
},
"id": "path2",
"name": "path2",
"stroke": {
"dasharray": "none",
"opacity": "1",
"paint": "#000000",
"width": "1.02689"
},
"type": "path"
}
],
"id": "g2",
"name": "g2",
"type": "group"
},
{
"elements": [
{
"fill": {
"paint": "#ffffff"
},
"height": "5.2532039",
"id": "rect1",
"name": "rect1",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "0.264583"
},
"type": "rect",
"width": "5.2532039",
"x": "19.028229",
"y": "100.45522"
},
{
"fill": {
"paint": "#ffffff"
},
"height": "5.2532043",
"id": "rect1-1",
"name": "rect1-1",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "0.264583"
},
"type": "rect",
"width": "39.070854",
"x": "24.783928",
"y": "100.45897"
},
{
"d": "m 64.327475,100.47423 0.02923,5.33504 c 0,0 2.094113,0.14369 2.910204,0.57732 0.816092,0.43362 2.31708,1.98309 2.31708,1.98309 l 4.207972,-2.90269 c 0,0 -0.976477,-2.175 -3.562586,-3.67613 -2.586109,-1.50114 -5.9019,-1.31663 -5.9019,-1.31663 z",
"fill": {
"paint": "#ffffff"
},
"id": "path1",
"name": "path1",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "0.264583"
},
"type": "path"
},
{
"fill": {
"paint": "#ffffff"
},
"height": "5.2532043",
"id": "rect1-1-2",
"name": "rect1-1-2",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "0.264583"
},
"transform": "rotate(-124.45133)",
"type": "rect",
"width": "53.643383",
"x": "-182.79494",
"y": "-3.9472735"
},
{
"d": "m 109.91295,158.21488 -0.0292,-5.33502 c 0,0 -2.09412,-0.1437 -2.91022,-0.57734 -0.81606,-0.43363 -2.31709,-1.98309 -2.31709,-1.98309 l -4.20795,2.90271 c 0,0 0.97646,2.17499 3.56256,3.67612 2.58611,1.50117 5.90191,1.31666 5.90191,1.31666 z",
"fill": {
"paint": "#ffffff"
},
"id": "path1-2",
"name": "path1-2",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "0.264583"
},
"type": "path"
},
{
"fill": {
"paint": "#ffffff"
},
"height": "5.2532043",
"id": "rect1-1-6-1",
"name": "rect1-1-6-1",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "0.264583"
},
"type": "rect",
"width": "61.602165",
"x": "130.35689",
"y": "152.93744"
},
{
"fill": {
"paint": "#ffffff"
},
"height": "5.2532043",
"id": "rect1-1-6",
"name": "rect1-1-6",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "0.264583"
},
"type": "rect",
"width": "19.392117",
"x": "110.45543",
"y": "152.92938"
},
{
"fill": {
"paint": "#ffffff"
},
"height": "5.2532039",
"id": "rect1-3",
"name": "rect1-3",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "0.264583"
},
"type": "rect",
"width": "5.2532039",
"x": "19.132961",
"y": "128.39006"
},
{
"fill": {
"paint": "#ffffff"
},
"height": "5.2532043",
"id": "rect1-1-3",
"name": "rect1-1-3",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "0.264583"
},
"type": "rect",
"width": "27.436077",
"x": "24.917881",
"y": "128.42303"
},
{
"d": "m 52.826648,128.4383 0.02923,5.33504 c 0,0 2.094113,0.14369 2.910204,0.57732 0.816092,0.43362 2.31708,1.98309 2.31708,1.98309 l 4.207972,-2.90269 c 0,0 -0.976477,-2.175 -3.562586,-3.67613 -2.586109,-1.50114 -5.9019,-1.31663 -5.9019,-1.31663 z",
"fill": {
"paint": "#ffffff"
},
"id": "path1-4",
"name": "path1-4",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "0.264583"
},
"type": "path"
},
{
"fill": {
"paint": "#ffffff"
},
"height": "5.2532043",
"id": "rect1-1-2-1",
"name": "rect1-1-2-1",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "0.264583"
},
"transform": "rotate(-124.45133)",
"type": "rect",
"width": "53.643383",
"x": "-199.34837",
"y": "-29.250349"
},
{
"d": "m 98.412052,186.17895 0.03281,-5.29368 c 0,0 -2.156121,-0.18504 -2.972218,-0.61868 -0.816054,-0.43363 -2.317078,-1.98309 -2.317078,-1.98309 l -4.207926,2.90271 c 0,0 0.976457,2.17499 3.562542,3.67612 2.586095,1.50117 5.901877,1.31666 5.901877,1.31666 z",
"fill": {
"paint": "#ffffff"
},
"id": "path1-2-1",
"name": "path1-2-1",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "0.264583"
},
"type": "path"
},
{
"fill": {
"paint": "#ffffff"
},
"height": "5.2532043",
"id": "rect1-1-6-1-3",
"name": "rect1-1-6-1-3",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "0.264583"
},
"transform": "translate(2.7866814,27.964071)",
"type": "rect",
"width": "58.908566",
"x": "130.35689",
"y": "152.93744"
},
{
"fill": {
"paint": "#ffffff"
},
"height": "5.2532043",
"id": "rect1-1-6-8",
"name": "rect1-1-6-8",
"stroke": {
"dasharray": "none",
"paint": "#000000",
"width": "0.264583"
},
"transform": "translate(2.7866814,27.964071)",
"type": "rect",
"width": "33.696407",
"x": "96.151138",
"y": "152.92938"
}
],
"id": "g1",
"name": "g1",
"transform": "matrix(3.8811518,0,0,3.8811518,5.5589873,-80.875104)",
"type": "group"
}
],
"id": "layer1",
"name": "layer1",
"type": "group"
}
],
"preserveAspectRatio": "none",
"viewBox": "0 0 1850 1028"
}, },
"type": "ia.display.image" "type": "ia.shapes.svg"
}, },
{ {
"meta": { "meta": {
@ -450,7 +1130,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -555,7 +1235,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -623,7 +1303,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -795,7 +1475,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -857,7 +1537,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -953,7 +1633,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -1220,7 +1900,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -1422,7 +2102,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -1490,7 +2170,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -2012,7 +2692,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -2326,7 +3006,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -2357,7 +3037,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -2387,7 +3067,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -2417,7 +3097,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -2448,7 +3128,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -2479,7 +3159,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -2714,7 +3394,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -2745,7 +3425,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -2776,7 +3456,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },

View File

@ -10939,7 +10939,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -10972,7 +10972,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11005,7 +11005,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11038,7 +11038,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11071,7 +11071,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11104,7 +11104,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11137,7 +11137,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11170,7 +11170,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11203,7 +11203,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11236,7 +11236,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11269,7 +11269,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11302,7 +11302,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11335,7 +11335,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11368,7 +11368,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11401,7 +11401,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11434,7 +11434,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11467,7 +11467,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11500,7 +11500,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11533,7 +11533,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11566,7 +11566,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11599,7 +11599,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11632,7 +11632,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11665,7 +11665,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11698,7 +11698,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11731,7 +11731,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11764,7 +11764,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11797,7 +11797,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11830,7 +11830,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11863,7 +11863,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11896,7 +11896,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11929,7 +11929,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11962,7 +11962,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -11995,7 +11995,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12028,7 +12028,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12061,7 +12061,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12094,7 +12094,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12127,7 +12127,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12160,7 +12160,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12193,7 +12193,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12226,7 +12226,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12259,7 +12259,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12292,7 +12292,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12324,7 +12324,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12356,7 +12356,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12388,7 +12388,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12420,7 +12420,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12452,7 +12452,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12484,7 +12484,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12516,7 +12516,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12548,7 +12548,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12580,7 +12580,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12612,7 +12612,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12644,7 +12644,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12676,7 +12676,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12708,7 +12708,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12740,7 +12740,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12772,7 +12772,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12804,7 +12804,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12836,7 +12836,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12868,7 +12868,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12900,7 +12900,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12932,7 +12932,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12964,7 +12964,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -12996,7 +12996,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -13028,7 +13028,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -13060,7 +13060,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -14042,7 +14042,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/JR_Button" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },
@ -14075,7 +14075,7 @@
"value" "value"
] ]
}, },
"path": "Symbol-Views/Equipment-Views/Estop" "path": "Symbol-Views/Equipment-Views/Button"
}, },
"type": "ia.display.view" "type": "ia.display.view"
}, },

View File

@ -16,19 +16,37 @@ def handleTagHighlight(view, currentValue):
priority = parts[1] if len(parts) > 1 else "1" priority = parts[1] if len(parts) > 1 else "1"
splitedTag = tag.split("/") splitedTag = tag.split("/")
deviceName = splitedTag[-1] deviceName = splitedTag[-2] # second-to-last part
# Map device keywords to Docked-East views
Docked_East_Map = { Docked_East_Map = {
"VFD": "Docked-East-VFD", "VFD": "Docked-East-VFD",
"MCM": "Docked-East-MCM" "MCM": "Docked-East-MCM",
"EXTENDO": "Docked-East-EX",
"DPM": "Docked-East-DS",
"FIO": "Docked-East-DS",
"SIO": "Docked-East-DS",
"HUB": "Docked-East-DS",
"EPC": "Docked-East-EPC",
"JR": "Docked-East-BTN",
"Chute_JR": "Docked-East-BTN",
"S_PB": "Docked-East-BTN",
"SS_PB": "Docked-East-BTN",
"Chute": "Docked-East-SNP",
"FL_CHUTE": "Docked-East-SNP",
"PalletBuild": "Docked-East-SNP",
"D2C": "Docked-East-SNP",
"NC": "Docked-East-SNP",
} }
Docked_East_View = Docked_East_Map["VFD"]
Docked_East_View = Docked_East_Map.get(deviceName, "Docked-East-VFD") # fallback
# Special handling for PE devices
if "PE" in deviceName: if "PE" in deviceName:
tag = "/".join(splitedTag[:2]) + "/Conveyor/" + deviceName[:-3] + "VFD1" tag = "/".join(splitedTag[:2]) + "/Conveyor/" + deviceName[:-3] + "VFD1"
if "MCM" in deviceName: if "MCM" in deviceName:
Docked_East_View = Docked_East_Map["MCM"] Docked_East_View = Docked_East_Map["MCM"]
# Clear old highlights (set to Clear class) # Clear old highlights (set to Clear class)
components = view.rootContainer.getChildren() components = view.rootContainer.getChildren()

View File

@ -112,13 +112,13 @@
"content": "cover", "content": "cover",
"handle": "hide", "handle": "hide",
"iconUrl": "", "iconUrl": "",
"id": "Docked-East-JR", "id": "Docked-East-EPC",
"modal": false, "modal": false,
"resizable": false, "resizable": false,
"show": "onDemand", "show": "onDemand",
"size": 400, "size": 400,
"viewParams": {}, "viewParams": {},
"viewPath": "PopUp-Views/Controller-Equipment/Information-Docked-East-JR-PB" "viewPath": "PopUp-Views/Controller-Equipment/Information-Docked-East-EPC"
}, },
{ {
"anchor": "fixed", "anchor": "fixed",

View File

@ -318,7 +318,7 @@
"component": { "component": {
"onActionPerformed": { "onActionPerformed": {
"config": { "config": {
"script": "\tself.session.custom.searchId \u003d \"\"\n\tself.session.custom.deviceSearchId \u003d \"\"\n\tsystem.perspective.closePopup(id \u003d \"TagSearch\")" "script": "\tconfig.project_config.reset_highlights(self)"
}, },
"scope": "G", "scope": "G",
"type": "script" "type": "script"

View File

@ -9,13 +9,14 @@
"MCM06", "MCM06",
"MCM07" "MCM07"
], ],
"color": "#C2C2C2",
"running_state": -1, "running_state": -1,
"state": 0, "type": "Enable",
"views_data": [] "views_data": []
}, },
"params": { "params": {
"tagProps": [ "tagProps": [
"System/MCM04/Chute/PalletBuild/S011054", "System/MCM06/Chute/NC/S02_203CH",
"value", "value",
"value", "value",
"value", "value",
@ -48,6 +49,124 @@
}, },
"persistent": true "persistent": true
}, },
"custom.color": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}",
"type": "{view.custom.type}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/{type}/Color"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},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.running_state": { "custom.running_state": {
"binding": { "binding": {
"config": { "config": {
@ -63,7 +182,7 @@
}, },
"persistent": true "persistent": true
}, },
"custom.state": { "custom.type": {
"binding": { "binding": {
"config": { "config": {
"fallbackDelay": 2.5, "fallbackDelay": 2.5,
@ -72,32 +191,40 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Button_Type"
}, },
"transforms": [ "transforms": [
{ {
"expression": "if(isNull({value}), 0, {value})", "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression" "type": "expression"
}, },
{ {
"fallback": null, "fallback": "UNKNOWN",
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{
"input": 5,
"output": "Chute_JR"
},
{
"input": 4,
"output": "GS"
},
{ {
"input": 3, "input": 3,
"output": 3 "output": "PR"
}, },
{ {
"input": 2, "input": 2,
"output": 2 "output": "Start"
}, },
{ {
"input": 1, "input": 1,
"output": 1 "output": "JR"
}, },
{ {
"input": 0, "input": 6,
"output": 0 "output": "Enable"
} }
], ],
"outputType": "scalar", "outputType": "scalar",
@ -421,7 +548,7 @@
"style": { "style": {
"paddingLeft": 20 "paddingLeft": 20
}, },
"text": "PR PB LIGHT" "text": "BUTTON LIGHT"
}, },
"type": "ia.display.label" "type": "ia.display.label"
}, },
@ -437,84 +564,8 @@
"props.style.backgroundColor": { "props.style.backgroundColor": {
"binding": { "binding": {
"config": { "config": {
"path": "this.props.text" "path": "view.custom.color"
}, },
"transforms": [
{
"fallback": "#D5D5D5",
"inputType": "scalar",
"mappings": [
{
"input": "UNKNOWN",
"output": "#FFFFFF"
}
],
"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}/PR_PB_STATE"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression"
},
{
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "ON"
},
{
"input": 0,
"output": "OFF"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "tag"
}
},
"props.textStyle.color": {
"binding": {
"config": {
"path": "this.props.text"
},
"transforms": [
{
"fallback": "#000000",
"inputType": "scalar",
"mappings": [
{
"input": "ON",
"output": "#47FF47"
},
{
"input": "OFF",
"output": "#FF0000"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "property" "type": "property"
} }
} }
@ -523,180 +574,16 @@
"style": { "style": {
"classes": "Text-Styles/Ariel-Bold-12pt", "classes": "Text-Styles/Ariel-Bold-12pt",
"paddingLeft": 10 "paddingLeft": 10
},
"textStyle": {
"color": "#C2C2C2"
} }
}, },
"type": "ia.display.label" "type": "ia.display.label"
} }
], ],
"meta": { "meta": {
"name": "Property" "name": "Name"
},
"position": {
"basis": "35px",
"shrink": 2
},
"props": {
"style": {
"classes": "PopUp-Styles/InfoLabel"
}
},
"type": "ia.container.flex"
}
],
"meta": {
"name": "FlexContainer_2"
},
"position": {
"basis": "35px"
},
"propConfig": {
"meta.visible": {
"binding": {
"config": {
"expression": "if(\r\n indexOf({view.params.tagProps[0]}, \"EPC\") \u003e\u003d 0,\r\n false,\r\n true\r\n)\r\n"
},
"type": "expr"
}
}
},
"props": {
"direction": "column"
},
"type": "ia.container.flex"
},
{
"children": [
{
"children": [
{
"meta": {
"name": "NameField"
},
"position": {
"basis": "50%",
"grow": 1
},
"props": {
"style": {
"paddingLeft": 20
},
"text": "EPC BEACON"
},
"type": "ia.display.label"
},
{
"meta": {
"name": "PB_Light"
},
"position": {
"basis": "50%",
"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": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE"
},
"transforms": [
{
"expression": "if(\r\n indexOf({view.params.tagProps[0]}, \"EPC\") \u003e\u003d 0,\r\n coalesce(\r\n if({value} \u003d 0, 1, {value}),\r\n {view.params.forceFaultStatus},\r\n \"UNKNOWN\"\r\n ),\r\n \"UNKNOWN\"\r\n)\r\n",
"type": "expression"
},
{
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "ON"
},
{
"input": 0,
"output": "OFF"
},
{
"input": 2,
"output": "ON"
},
{
"input": 3,
"output": "ON"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "tag"
}
},
"props.textStyle.color": {
"binding": {
"config": {
"path": "this.props.text"
},
"transforms": [
{
"fallback": "#000000",
"inputType": "scalar",
"mappings": [
{
"input": "ON",
"output": "#47FF47"
},
{
"input": "OFF",
"output": "#FF0000"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "property"
}
}
},
"props": {
"style": {
"classes": "Text-Styles/Ariel-Bold-12pt",
"paddingLeft": 10
}
},
"type": "ia.display.label"
}
],
"meta": {
"name": "Property"
}, },
"position": { "position": {
"basis": "35px", "basis": "35px",
@ -716,16 +603,6 @@
"position": { "position": {
"basis": "35px" "basis": "35px"
}, },
"propConfig": {
"meta.visible": {
"binding": {
"config": {
"expression": "if(\r\n indexOf({view.params.tagProps[0]}, \"EPC\") \u003e\u003d 0,\r\n true,\r\n false\r\n)\r\n"
},
"type": "expr"
}
}
},
"props": { "props": {
"direction": "column" "direction": "column"
}, },
@ -745,6 +622,229 @@
} }
}, },
"type": "ia.container.flex" "type": "ia.container.flex"
},
{
"children": [
{
"children": [
{
"children": [
{
"events": {
"component": {
"onActionPerformed": {
"config": {
"script": "\ttag_name \u003d self.view.params.tagProps[0]\n\ttag_path \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+tag_name+\"/Start_PB\"\n\tsystem.tag.writeBlocking([tag_path],[True])\n\ttag_path2 \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+tag_name+\"/JR_PB\"\n\tsystem.tag.writeBlocking([tag_path2],[True])\n\ttag_path3 \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+tag_name+\"/GS_PB\"\n\tsystem.tag.writeBlocking([tag_path3],[True])\n\ttag_path4 \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+tag_name+\"/Enable_Chute_PB\"\n\tsystem.tag.writeBlocking([tag_path4],[True])"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "Button"
},
"position": {
"basis": "80px",
"grow": 1
},
"propConfig": {
"props.enabled": {
"binding": {
"config": {
"expression": "indexOf({session.props.auth.user.roles}, \"Administrator\") \u003e\u003d 0 || indexOf({session.props.auth.user.roles}, \"Maintenance\") \u003e\u003d 0"
},
"type": "expr"
}
},
"props.image.icon.color": {
"binding": {
"config": {
"path": "view.custom.type"
},
"transforms": [
{
"fallback": "#000000",
"inputType": "scalar",
"mappings": [
{
"input": "Start",
"output": "#FFFFFF"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "property"
}
},
"props.image.icon.path": {
"binding": {
"config": {
"path": "view.custom.type"
},
"transforms": [
{
"fallback": "",
"inputType": "scalar",
"mappings": [
{
"input": "PR",
"output": "material/not_started"
},
{
"input": "Start",
"output": "material/not_started"
},
{
"input": "JR",
"output": "material/sync_problem"
},
{
"input": "GS",
"output": "material/not_started"
},
{
"input": "Chute_JR",
"output": "material/sync_problem"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
},
"props.style.backgroundColor": {
"binding": {
"config": {
"path": "view.custom.color"
},
"type": "property"
}
},
"props.text": {
"binding": {
"config": {
"path": "view.custom.type"
},
"transforms": [
{
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": "PR",
"output": "ENABLE"
},
{
"input": "Start",
"output": "START"
},
{
"input": "JR",
"output": "JAM RESET"
},
{
"input": "GS",
"output": "GAYLORD START"
},
{
"input": "Chute_JR",
"output": "CHUTE JAM RESET"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
},
"props.textStyle.color": {
"binding": {
"config": {
"path": "view.custom.type"
},
"transforms": [
{
"fallback": "#000000",
"inputType": "scalar",
"mappings": [
{
"input": "Start",
"output": "#FFFFFF"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "property"
}
}
},
"props": {
"image": {
"icon": {}
},
"style": {
"classes": "Background-Styles/Controller"
}
},
"type": "ia.input.button"
}
],
"meta": {
"name": "Reset Jam"
},
"position": {
"basis": "35px"
},
"props": {
"style": {
"classes": "PopUp-Styles/InfoLabel",
"padding": ""
}
},
"type": "ia.container.flex"
}
],
"meta": {
"name": "FlexContainer_0"
},
"position": {
"basis": "100px",
"grow": 1
},
"props": {
"direction": "column",
"style": {
"gap": 6,
"paddingBottom": 20,
"paddingLeft": 10,
"paddingRight": 10,
"paddingTop": 13
}
},
"type": "ia.container.flex"
}
],
"meta": {
"name": "Commands_tab"
},
"position": {
"tabIndex": 2
},
"props": {
"direction": "column",
"style": {
"paddingTop": 1
}
},
"type": "ia.container.flex"
} }
], ],
"meta": { "meta": {
@ -753,8 +853,23 @@
"position": { "position": {
"grow": 1 "grow": 1
}, },
"propConfig": {
"props.tabs": {
"binding": {
"config": {
"path": "view.custom.type"
},
"transforms": [
{
"code": "\t# This script runs whenever view.custom.type changes\n\tif value \u003d\u003d \"PR\" or value \u003d\u003d \"Enable\":\n\t\treturn [\"Alarms\", \"Info\"]\n\telse:\n\t\treturn [\"Alarms\", \"Info\", \"Commands\"]",
"type": "script"
}
],
"type": "property"
}
}
},
"props": { "props": {
"currentTabIndex": 1,
"menuType": "modern", "menuType": "modern",
"tabSize": { "tabSize": {
"width": 1000 "width": 1000
@ -776,11 +891,7 @@
"fontWeight": "bold", "fontWeight": "bold",
"paddingLeft": 10 "paddingLeft": 10
} }
}, }
"tabs": [
"Alarms",
"Info"
]
}, },
"type": "ia.container.tab" "type": "ia.container.tab"
} }

View File

@ -0,0 +1,659 @@
{
"custom": {
"PLC_list": [
"MCM01",
"MCM02",
"MCM03",
"MCM04",
"MCM05",
"MCM06",
"MCM07"
],
"color": "#00FF00"
},
"params": {
"tagProps": [
"System/MCM01/Station/EPC/UL1_4_EPC1",
"value",
"value",
"value",
"value",
"value",
"value",
"value",
"value",
"value"
]
},
"propConfig": {
"custom.PLC_list": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]Configuration/PLC"
},
"transforms": [
{
"code": "\tdevices \u003d system.util.jsonDecode(value)\n\tplcList \u003d []\n\tfor k in devices.keys():\n\t\tplcList.append(k)\n\t\t\n\treturn(sorted(set(plcList)))\n",
"type": "script"
}
],
"type": "tag"
},
"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},{view.params.forceFaultStatus},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
},
"params.tagProps": {
"paramDirection": "input",
"persistent": true
}
},
"props": {
"defaultSize": {
"width": 400
}
},
"root": {
"children": [
{
"children": [
{
"children": [
{
"meta": {
"name": "Label"
},
"position": {
"grow": 1
},
"propConfig": {
"props.text": {
"binding": {
"config": {
"expression": "\u0027Source ID: \u0027 + {view.params.tagProps[0]}"
},
"type": "expr"
}
}
},
"props": {
"style": {
"color": "#FFFF",
"fontFamily": "Arial",
"fontSize": 14,
"fontWeight": "bold",
"paddingLeft": 10
}
},
"type": "ia.display.label"
},
{
"events": {
"dom": {
"onClick": {
"config": {
"script": "\tsystem.perspective.closeDock(\u0027Docked-East-BTN\u0027)\n\tself.getSibling(\"tabs\").props.currentTabIndex \u003d 0"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "Icon",
"tooltip": {
"enabled": true,
"style": {
"cursor": "pointer"
},
"text": "Close faceplate"
}
},
"props": {
"path": "material/close",
"style": {
"cursor": "pointer",
"marginBottom": 5,
"marginLeft": 5,
"marginRight": 5,
"marginTop": 5
}
},
"type": "ia.display.icon"
}
],
"meta": {
"name": "FlexContainer"
},
"position": {
"basis": "30px",
"shrink": 0
},
"props": {
"style": {
"overflow": "hidden"
}
},
"type": "ia.container.flex"
},
{
"children": [
{
"children": [
{
"children": [
{
"meta": {
"name": "Label"
},
"position": {
"basis": "32px",
"display": false
},
"propConfig": {
"position.display": {
"binding": {
"config": {
"expression": "if({../AlarmTable.props.params.length_of_table_data} \u003d 0, True, False)"
},
"enabled": false,
"type": "expr"
}
}
},
"props": {
"style": {
"classes": "Labels/Label_1",
"marginTop": 20
},
"text": "No Active Alarms"
},
"type": "ia.display.label"
},
{
"meta": {
"name": "AlarmStatusTable"
},
"position": {
"basis": "400px",
"grow": 1
},
"propConfig": {
"props.filters.active.text": {
"binding": {
"config": {
"path": "view.params.tagProps[0]"
},
"transforms": [
{
"code": "\treturn value[1:]",
"type": "script"
}
],
"type": "property"
}
}
},
"props": {
"columns": {
"active": {
"displayPath": {
"enabled": false
},
"priority": {
"enabled": false
},
"source": {
"enabled": false
},
"state": {
"enabled": false
}
}
},
"filters": {
"active": {
"priorities": {
"critical": false,
"high": false,
"low": false,
"medium": false
},
"states": {
"clearUnacked": false
}
}
},
"refreshRate": 500,
"toolbar": {
"enabled": false
}
},
"type": "ia.display.alarmstatustable"
}
],
"meta": {
"name": "Active_tab"
},
"props": {
"direction": "column"
},
"type": "ia.container.flex"
},
{
"children": [
{
"children": [
{
"children": [
{
"meta": {
"name": "NameField"
},
"position": {
"basis": "50%",
"grow": 1
},
"props": {
"style": {
"paddingLeft": 20
},
"text": "NAME"
},
"type": "ia.display.label"
},
{
"meta": {
"name": "DeviceName"
},
"position": {
"basis": "50%",
"grow": 1
},
"propConfig": {
"props.text": {
"binding": {
"config": {
"path": "view.params.tagProps[0]"
},
"transforms": [
{
"code": " return value.rsplit(\u0027/\u0027, 1)[-1]",
"type": "script"
}
],
"type": "property"
}
}
},
"props": {
"style": {
"backgroundColor": "#FFFFFF",
"classes": "Text-Styles/Ariel-Bold-12pt",
"paddingLeft": 10
}
},
"type": "ia.display.label"
}
],
"meta": {
"name": "Name"
},
"position": {
"basis": "35px"
},
"props": {
"style": {
"classes": "PopUp-Styles/InfoLabel",
"overflow": "hidden"
}
},
"type": "ia.container.flex"
}
],
"meta": {
"name": "FlexContainer_0"
},
"position": {
"basis": "35px"
},
"props": {
"direction": "column"
},
"type": "ia.container.flex"
},
{
"children": [
{
"children": [
{
"meta": {
"name": "NameField"
},
"position": {
"basis": "50%",
"grow": 1
},
"props": {
"style": {
"paddingLeft": 20
},
"text": "EPC LIGHT"
},
"type": "ia.display.label"
},
{
"meta": {
"name": "PB_Light"
},
"position": {
"basis": "50%",
"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": {
"path": "view.custom.color"
},
"transforms": [
{
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": "#FF0000",
"output": "ON"
},
{
"input": "#00FF00",
"output": "OFF"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
},
"props.textStyle.color": {
"binding": {
"config": {
"path": "view.custom.color"
},
"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": "FlexContainer_1"
},
"position": {
"basis": "35px"
},
"props": {
"direction": "column"
},
"type": "ia.container.flex"
}
],
"meta": {
"name": "Info_tab"
},
"position": {
"tabIndex": 1
},
"props": {
"direction": "column",
"style": {
"margin-left": ""
}
},
"type": "ia.container.flex"
}
],
"meta": {
"name": "tabs"
},
"position": {
"grow": 1
},
"props": {
"menuType": "modern",
"tabSize": {
"width": 1000
},
"tabStyle": {
"active": {
"classes": "",
"color": "#FFFFFF",
"fontFamily": "Arial",
"fontSize": 14,
"fontWeight": "bold",
"paddingLeft": 10
},
"inactive": {
"classes": "",
"color": "#B8B8B8",
"fontFamily": "Arial",
"fontSize": 14,
"fontWeight": "bold",
"paddingLeft": 10
}
},
"tabs": [
"Alarms",
"Info"
]
},
"type": "ia.container.tab"
}
],
"meta": {
"name": "FlexContainer_1"
},
"position": {
"basis": "670px",
"grow": 1
},
"props": {
"style": {
"border-top": "1px solid white",
"gap": ""
}
},
"type": "ia.container.flex"
}
],
"meta": {
"name": "FlexContainer"
},
"position": {
"basis": "800px",
"grow": 1
},
"props": {
"direction": "column"
},
"type": "ia.container.flex"
}
],
"meta": {
"name": "root"
},
"props": {
"direction": "column",
"style": {
"classes": "Buttons/Button-Menu"
}
},
"type": "ia.container.flex"
}
}

View File

@ -9,9 +9,7 @@
"MCM06", "MCM06",
"MCM07" "MCM07"
], ],
"running_state": -1, "state": 0
"state": 0,
"views_data": []
}, },
"params": { "params": {
"tagProps": [ "tagProps": [
@ -48,21 +46,6 @@
}, },
"persistent": true "persistent": true
}, },
"custom.running_state": {
"binding": {
"config": {
"expression": "try(jsonGet({session.custom.state_messages},{this.custom.tag_path_to_lookup}),-1)\t\r\n"
},
"transforms": [
{
"expression": "if({value} !\u003d -1, try(jsonGet({value},\"state\"),4),{value})",
"type": "expression"
}
],
"type": "expr"
},
"persistent": true
},
"custom.state": { "custom.state": {
"binding": { "binding": {
"config": { "config": {
@ -108,24 +91,6 @@
}, },
"persistent": true "persistent": true
}, },
"custom.views_data": {
"binding": {
"config": {
"struct": {
"equipment_id": "{view.params.tagProps[0]}"
},
"waitOnAll": true
},
"transforms": [
{
"code": "\tproject_info \u003d system.perspective.getProjectInfo()\n\t#self.custom.views_data \u003d project_info\n\tviews \u003d project_info.get(\"views\")\n\t#equipment_id \u003d self.view.params.tagProps[0]\n\tviews_data \u003d [i for i in views if i[\"path\"].startswith(\"Custom-Views/\"+ value.equipment_id)]\n\t#self.custom.views_data \u003d views_data\n\t\n\treturn views_data",
"type": "script"
}
],
"type": "expr-struct"
},
"persistent": true
},
"params.tagProps": { "params.tagProps": {
"paramDirection": "input", "paramDirection": "input",
"persistent": true "persistent": true
@ -2243,14 +2208,6 @@
} }
}, },
"props.style.backgroundColor": { "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 \"#41E841\",\r\n if(\r\n {this.props.text} \u003d \"START\",\r\n \"#00A700\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n"
},
"type": "expr"
}
},
"props.text": {
"binding": { "binding": {
"config": { "config": {
"fallbackDelay": 2.5, "fallbackDelay": 2.5,
@ -2259,27 +2216,107 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Start_PB_STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Start_PB_Color"
}, },
"transforms": [ "transforms": [
{ {
"expression": "coalesce({value},{view.params.forceFaultStatus},0)", "expression": "coalesce({value},{view.params.forceFaultStatus},\"#006400\")",
"type": "expression" "type": "expression"
}, },
{ {
"fallback": "START", "fallback": "#006400",
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{
"input": 0,
"output": "#C2C2C2"
},
{
"input": 1,
"output": "#FF0000"
},
{ {
"input": 2, "input": 2,
"output": "STARTED" "output": "#FFA500"
},
{
"input": 3,
"output": "#0008FF"
}, },
{ {
"input": 4, "input": 4,
"output": "STARTED" "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": "scalar", "outputType": "color",
"type": "map" "type": "map"
} }
], ],
@ -2295,7 +2332,8 @@
}, },
"style": { "style": {
"classes": "Background-Styles/Controller" "classes": "Background-Styles/Controller"
} },
"text": "START"
}, },
"type": "ia.input.button" "type": "ia.input.button"
} }
@ -2374,7 +2412,7 @@
"mappings": [ "mappings": [
{ {
"input": 1, "input": 1,
"output": "STOP PRESSED" "output": "STOPPED"
} }
], ],
"outputType": "scalar", "outputType": "scalar",
@ -2451,16 +2489,108 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Motor_Fault_Reset_PB_STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Motor_Fault_Reset_PB_Color"
}, },
"transforms": [ "transforms": [
{ {
"expression": "coalesce({value},{view.params.forceFaultStatus},0)", "expression": "coalesce({value},{view.params.forceFaultStatus},\"#FFF700\")",
"type": "expression" "type": "expression"
}, },
{ {
"expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#BCBC52\",\r\n if(\r\n {value} \u003d 2 || {value} \u003d 4,\r\n \"#FCFF86\",\r\n if(\r\n {value},\r\n \"#DCDC03\",\r\n \"#BCBC52\"\r\n )\r\n )\r\n)\r\n", "fallback": "#FFF700",
"type": "expression" "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" "type": "tag"
@ -2538,16 +2668,108 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Power_Branch_Fault_Reset_PB_STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Power_Branch_Fault_Reset_PB_Color"
}, },
"transforms": [ "transforms": [
{ {
"expression": "coalesce({value},{view.params.forceFaultStatus},0)", "expression": "coalesce({value},{view.params.forceFaultStatus},\"#FFF700\")",
"type": "expression" "type": "expression"
}, },
{ {
"expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#BCBC52\",\r\n if(\r\n {value} \u003d 2 || {value} \u003d 4,\r\n \"#FCFF86\",\r\n if(\r\n {value},\r\n \"#DCDC03\",\r\n \"#BCBC52\"\r\n )\r\n )\r\n)\r\n", "fallback": "#FFF700",
"type": "expression" "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" "type": "tag"
@ -2625,16 +2847,108 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Low_Air_Pressure_Reset_PB_STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Low_Air_Pressure_Reset_PB_Color"
}, },
"transforms": [ "transforms": [
{ {
"expression": "coalesce({value},{view.params.forceFaultStatus},0)", "expression": "coalesce({value},{view.params.forceFaultStatus},\"#00008B\")",
"type": "expression" "type": "expression"
}, },
{ {
"expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#9090C2\",\r\n if(\r\n {value} \u003d 2 || {value} \u003d 4,\r\n \"#5D5DFF\",\r\n if(\r\n {value},\r\n \"#0A0AA4\",\r\n \"#9090C2\"\r\n )\r\n )\r\n)\r\n", "fallback": "#00008B",
"type": "expression" "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" "type": "tag"
@ -2708,16 +3022,108 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Jam_Restart_PB_STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Jam_Restart_PB_Color"
}, },
"transforms": [ "transforms": [
{ {
"expression": "coalesce({value},{view.params.forceFaultStatus},0)", "expression": "coalesce({value},{view.params.forceFaultStatus},\"#C2C2C2\")",
"type": "expression" "type": "expression"
}, },
{ {
"expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#A1A1A1\",\r\n if(\r\n {value} \u003d 2 || {value} \u003d 4,\r\n \"#FFFFFF\",\r\n if(\r\n {value},\r\n \"#D4D4D4\",\r\n \"#A1A1A1\"\r\n )\r\n )\r\n)", "fallback": "#C2C2C2",
"type": "expression" "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" "type": "tag"
@ -2803,7 +3209,7 @@
"type": "expression" "type": "expression"
}, },
{ {
"expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#A1A1A1\",\r\n if(\r\n {value} \u003d 1,\r\n \"#FFFFFF\",\r\n \"#A1A1A1\"\r\n )\r\n)\r\n", "expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#A1A1A1\",\r\n if(\r\n {value} \u003d 1,\r\n \"#AAAAAA\",\r\n \"#FFFFFF\"\r\n )\r\n)\r\n",
"type": "expression" "type": "expression"
} }
], ],
@ -2886,7 +3292,7 @@
"grow": 1 "grow": 1
}, },
"props": { "props": {
"currentTabIndex": 1, "currentTabIndex": 2,
"menuType": "modern", "menuType": "modern",
"tabSize": { "tabSize": {
"width": 1000 "width": 1000

View File

@ -9,13 +9,12 @@
"MCM06", "MCM06",
"MCM07" "MCM07"
], ],
"running_state": -1, "start_color": "#00FF00",
"state": 2, "stop_color": "#B43434"
"views_data": []
}, },
"params": { "params": {
"tagProps": [ "tagProps": [
"System/MCM02/Station/S_PB/UL21_3_S2", "System/MCM01/Station/SS_PB/UL3_1_SS1",
"value", "value",
"value", "value",
"value", "value",
@ -48,22 +47,7 @@
}, },
"persistent": true "persistent": true
}, },
"custom.running_state": { "custom.start_color": {
"binding": {
"config": {
"expression": "try(jsonGet({session.custom.state_messages},{this.custom.tag_path_to_lookup}),-1)\t\r\n"
},
"transforms": [
{
"expression": "if({value} !\u003d -1, try(jsonGet({value},\"state\"),4),{value})",
"type": "expression"
}
],
"type": "expr"
},
"persistent": true
},
"custom.state": {
"binding": { "binding": {
"config": { "config": {
"fallbackDelay": 2.5, "fallbackDelay": 2.5,
@ -72,35 +56,107 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Start/Color"
}, },
"transforms": [ "transforms": [
{ {
"expression": "if(isNull({value}), 0, {value})", "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression" "type": "expression"
}, },
{ {
"fallback": null, "fallback": "#000000",
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": 3, "input": 0,
"output": 3 "output": "#C2C2C2"
},
{
"input": 2,
"output": 2
}, },
{ {
"input": 1, "input": 1,
"output": 1 "output": "#FF0000"
}, },
{ {
"input": 0, "input": 2,
"output": 0 "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": "scalar", "outputType": "color",
"type": "map" "type": "map"
} }
], ],
@ -108,21 +164,120 @@
}, },
"persistent": true "persistent": true
}, },
"custom.views_data": { "custom.stop_color": {
"binding": { "binding": {
"config": { "config": {
"struct": { "fallbackDelay": 2.5,
"equipment_id": "{view.params.tagProps[0]}" "mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
}, },
"waitOnAll": true "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Stop/Color"
}, },
"transforms": [ "transforms": [
{ {
"code": "\tproject_info \u003d system.perspective.getProjectInfo()\n\t#self.custom.views_data \u003d project_info\n\tviews \u003d project_info.get(\"views\")\n\t#equipment_id \u003d self.view.params.tagProps[0]\n\tviews_data \u003d [i for i in views if i[\"path\"].startswith(\"Custom-Views/\"+ value.equipment_id)]\n\t#self.custom.views_data \u003d views_data\n\t\n\treturn views_data", "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "script" "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": "expr-struct" "type": "tag"
}, },
"persistent": true "persistent": true
}, },
@ -465,52 +620,12 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Start/Color"
}, },
"transforms": [ "transforms": [
{ {
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "expression": "if({value}\u003d4, \"ON\", \"OFF\")",
"type": "expression" "type": "expression"
},
{
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": 0,
"output": "OFF"
},
{
"input": 1,
"output": "ON"
},
{
"input": 2,
"output": "ON"
},
{
"input": 3,
"output": "ON"
},
{
"input": 4,
"output": "OFF"
},
{
"input": 5,
"output": "ON"
},
{
"input": 6,
"output": "ON"
},
{
"input": 7,
"output": "ON"
}
],
"outputType": "scalar",
"type": "map"
} }
], ],
"type": "tag" "type": "tag"
@ -630,65 +745,9 @@
"props.style.backgroundColor": { "props.style.backgroundColor": {
"binding": { "binding": {
"config": { "config": {
"fallbackDelay": 2.5, "path": "view.custom.start_color"
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE"
}, },
"transforms": [ "type": "property"
{
"expression": "if({this.props.enabled} \u003d false, 8, coalesce({value}, {view.params.forceFaultStatus}, 0))\r\n",
"type": "expression"
},
{
"fallback": "#00A700",
"inputType": "scalar",
"mappings": [
{
"input": 0,
"output": "#00A700"
},
{
"input": 1,
"output": "#41E841"
},
{
"input": 2,
"output": "#41E841"
},
{
"input": 3,
"output": "#41E841"
},
{
"input": 4,
"output": "#00A700"
},
{
"input": 5,
"output": "#41E841"
},
{
"input": 6,
"output": "#41E841"
},
{
"input": 7,
"output": "#41E841"
},
{
"input": 8,
"output": "#7DB17D"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "tag"
} }
} }
}, },
@ -753,45 +812,9 @@
"props.style.backgroundColor": { "props.style.backgroundColor": {
"binding": { "binding": {
"config": { "config": {
"fallbackDelay": 2.5, "path": "view.custom.stop_color"
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE"
}, },
"transforms": [ "type": "property"
{
"expression": "if({this.props.enabled} \u003d false, 3, coalesce({value}, {view.params.forceFaultStatus}, 0))\r\n",
"type": "expression"
},
{
"fallback": "#CA0D0D",
"inputType": "scalar",
"mappings": [
{
"input": 2,
"output": "#CA0D0D"
},
{
"input": 1,
"output": "#CA0D0D"
},
{
"input": 0,
"output": "#CA0D0D"
},
{
"input": 3,
"output": "#BB5050"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "tag"
} }
} }
}, },
@ -870,6 +893,7 @@
"grow": 1 "grow": 1
}, },
"props": { "props": {
"currentTabIndex": 2,
"menuType": "modern", "menuType": "modern",
"tabSize": { "tabSize": {
"width": 1000 "width": 1000

View File

@ -9,14 +9,13 @@
"MCM06", "MCM06",
"MCM07" "MCM07"
], ],
"running_state": -1, "button_type": "Enable",
"state": 2, "type": 4
"type": 3,
"views_data": []
}, },
"params": { "params": {
"forceFaultStatus": null,
"tagProps": [ "tagProps": [
"System/MCM04/Chute/FL_CHUTE/FL1038_1CH", "System/MCM06/Chute/NC/S02_203CH",
"value", "value",
"value", "value",
"value", "value",
@ -49,22 +48,7 @@
}, },
"persistent": true "persistent": true
}, },
"custom.running_state": { "custom.button_type": {
"binding": {
"config": {
"expression": "try(jsonGet({session.custom.state_messages},{this.custom.tag_path_to_lookup}),-1)\t\r\n"
},
"transforms": [
{
"expression": "if({value} !\u003d -1, try(jsonGet({value},\"state\"),4),{value})",
"type": "expression"
}
],
"type": "expr"
},
"persistent": true
},
"custom.state": {
"binding": { "binding": {
"config": { "config": {
"fallbackDelay": 2.5, "fallbackDelay": 2.5,
@ -73,36 +57,40 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Button_Type"
}, },
"transforms": [ "transforms": [
{ {
"expression": "if(isNull({value}), 0, {value})", "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression" "type": "expression"
}, },
{ {
"fallback": null, "fallback": "UNKNOWN",
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": 3, "input": 5,
"output": 3 "output": "Chute_JR"
},
{
"input": 2,
"output": 2
},
{
"input": 1,
"output": 1
},
{
"input": 0,
"output": 0
}, },
{ {
"input": 4, "input": 4,
"output": 4 "output": "GS"
},
{
"input": 3,
"output": "PR"
},
{
"input": 2,
"output": "Start"
},
{
"input": 1,
"output": "JR"
},
{
"input": 6,
"output": "Enable"
} }
], ],
"outputType": "scalar", "outputType": "scalar",
@ -134,22 +122,8 @@
}, },
"persistent": true "persistent": true
}, },
"custom.views_data": { "params.forceFaultStatus": {
"binding": { "paramDirection": "input",
"config": {
"struct": {
"equipment_id": "{view.params.tagProps[0]}"
},
"waitOnAll": true
},
"transforms": [
{
"code": "\tproject_info \u003d system.perspective.getProjectInfo()\n\t#self.custom.views_data \u003d project_info\n\tviews \u003d project_info.get(\"views\")\n\t#equipment_id \u003d self.view.params.tagProps[0]\n\tviews_data \u003d [i for i in views if i[\"path\"].startswith(\"Custom-Views/\"+ value.equipment_id)]\n\t#self.custom.views_data \u003d views_data\n\t\n\treturn views_data",
"type": "script"
}
],
"type": "expr-struct"
},
"persistent": true "persistent": true
}, },
"params.tagProps": { "params.tagProps": {
@ -759,6 +733,10 @@
{ {
"input": 3, "input": 3,
"output": true "output": true
},
{
"input": 4,
"output": true
} }
], ],
"outputType": "scalar", "outputType": "scalar",
@ -950,6 +928,10 @@
{ {
"input": 2, "input": 2,
"output": true "output": true
},
{
"input": 4,
"output": true
} }
], ],
"outputType": "scalar", "outputType": "scalar",
@ -1141,6 +1123,10 @@
{ {
"input": 2, "input": 2,
"output": true "output": true
},
{
"input": 4,
"output": true
} }
], ],
"outputType": "scalar", "outputType": "scalar",
@ -1576,23 +1562,16 @@
} }
}, },
"props.style.backgroundColor": { "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"
},
"type": "expr"
}
},
"props.style.color": {
"binding": { "binding": {
"config": { "config": {
"fallbackDelay": 2.5, "fallbackDelay": 2.5,
"mode": "indirect", "mode": "indirect",
"references": { "references": {
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}",
"type": "{view.custom.button_type}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Disabled" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/{type}/Color"
}, },
"transforms": [ "transforms": [
{ {
@ -1600,12 +1579,96 @@
"type": "expression" "type": "expression"
}, },
{ {
"fallback": "#FFFFFF", "fallback": "#000000",
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{
"input": 0,
"output": "#C2C2C2"
},
{ {
"input": 1, "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" "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", "outputType": "color",
@ -1618,48 +1681,45 @@
"props.text": { "props.text": {
"binding": { "binding": {
"config": { "config": {
"fallbackDelay": 2.5, "path": "view.custom.type"
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Disabled"
}, },
"transforms": [ "transforms": [
{ {
"expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "fallback": "UNKNOWN",
"type": "expression"
},
{
"fallback": "DISABLE",
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": 1, "input": 2,
"output": "ENABLE" "output": "ENABLE"
}, },
{ {
"input": 0, "input": 1,
"output": "DISABLE" "output": "GAYLORD START"
},
{
"input": 4,
"output": "ENABLE"
} }
], ],
"outputType": "scalar", "outputType": "scalar",
"type": "map" "type": "map"
} }
], ],
"type": "tag" "type": "property"
} }
} }
}, },
"props": { "props": {
"image": { "image": {
"icon": { "icon": {
"path": "material/cached" "color": "#0B0B0B"
} }
}, },
"style": { "style": {
"classes": "Background-Styles/Controller" "classes": "Background-Styles/Controller"
},
"textStyle": {
"color": "#000000"
} }
}, },
"type": "ia.input.button" "type": "ia.input.button"
@ -1699,6 +1759,10 @@
{ {
"input": 2, "input": 2,
"output": true "output": true
},
{
"input": 4,
"output": true
} }
], ],
"outputType": "scalar", "outputType": "scalar",
@ -1776,7 +1840,7 @@
} }
}, },
"props": { "props": {
"currentTabIndex": 1, "currentTabIndex": 2,
"menuType": "modern", "menuType": "modern",
"tabSize": { "tabSize": {
"width": 1000 "width": 1000

View File

@ -9,9 +9,8 @@
"MCM06", "MCM06",
"MCM07" "MCM07"
], ],
"running_state": -1, "color": "#00FF00",
"state": 2, "state": "Running"
"views_data": []
}, },
"params": { "params": {
"tagProps": [ "tagProps": [
@ -48,18 +47,120 @@
}, },
"persistent": true "persistent": true
}, },
"custom.running_state": { "custom.color": {
"binding": { "binding": {
"config": { "config": {
"expression": "try(jsonGet({session.custom.state_messages},{this.custom.tag_path_to_lookup}),-1)\t\r\n" "fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Color"
}, },
"transforms": [ "transforms": [
{ {
"expression": "if({value} !\u003d -1, try(jsonGet({value},\"state\"),4),{value})", "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression" "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": "expr" "type": "tag"
}, },
"persistent": true "persistent": true
}, },
@ -72,32 +173,212 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/State"
}, },
"transforms": [ "transforms": [
{ {
"expression": "if(isNull({value}), 0, {value})", "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression" "type": "expression"
}, },
{ {
"fallback": null, "fallback": "Unknown",
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": 3, "input": 0,
"output": 3 "output": "Closed"
},
{
"input": 2,
"output": 2
}, },
{ {
"input": 1, "input": 1,
"output": 1 "output": "Actuated"
}, },
{ {
"input": 0, "input": 2,
"output": 0 "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", "outputType": "scalar",
@ -108,24 +389,6 @@
}, },
"persistent": true "persistent": true
}, },
"custom.views_data": {
"binding": {
"config": {
"struct": {
"equipment_id": "{view.params.tagProps[0]}"
},
"waitOnAll": true
},
"transforms": [
{
"code": "\tproject_info \u003d system.perspective.getProjectInfo()\n\t#self.custom.views_data \u003d project_info\n\tviews \u003d project_info.get(\"views\")\n\t#equipment_id \u003d self.view.params.tagProps[0]\n\tviews_data \u003d [i for i in views if i[\"path\"].startswith(\"Custom-Views/\"+ value.equipment_id)]\n\t#self.custom.views_data \u003d views_data\n\t\n\treturn views_data",
"type": "script"
}
],
"type": "expr-struct"
},
"persistent": true
},
"params.tagProps": { "params.tagProps": {
"paramDirection": "input", "paramDirection": "input",
"persistent": true "persistent": true
@ -506,7 +769,7 @@
"props.text": { "props.text": {
"binding": { "binding": {
"config": { "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": "if({view.custom.state}\u003d\"Closed\", \"UNKNOWN\", {view.custom.state})"
}, },
"type": "expr" "type": "expr"
} }
@ -514,7 +777,7 @@
"props.textStyle.color": { "props.textStyle.color": {
"binding": { "binding": {
"config": { "config": {
"expression": "switch(\r\n toInt({..../State.custom.state}),\r\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14,61,\r\n \"#c2c2c2\", \"#c9fcc0\", \"#00ff11\", \"#00ffd0\", \"#ff8c00\",\r\n \"#0008ff\", \"#946446\", \"#ff0000\", \"#ff0000\", \"#ff0000\", \"#ff8c00\", \"#c2c2c2\", \"#B45C5C\",\r\n \"#000000\"\r\n)\r\n\r\n" "expression": "if({view.custom.state}\u003d\"Closed\", \"#000000\", {view.custom.color})"
}, },
"type": "expr" "type": "expr"
} }
@ -538,7 +801,8 @@
}, },
"props": { "props": {
"style": { "style": {
"classes": "PopUp-Styles/InfoLabel" "classes": "PopUp-Styles/InfoLabel",
"overflow": "hidden"
} }
}, },
"type": "ia.container.flex" "type": "ia.container.flex"
@ -550,30 +814,11 @@
"position": { "position": {
"basis": "35px" "basis": "35px"
}, },
"propConfig": {
"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},{view.params.forceFaultStatus},404)",
"type": "expression"
}
],
"type": "tag"
}
}
},
"props": { "props": {
"direction": "column" "direction": "column",
"style": {
"overflow": "hidden"
}
}, },
"type": "ia.container.flex" "type": "ia.container.flex"
}, },
@ -2357,6 +2602,7 @@
"grow": 1 "grow": 1
}, },
"props": { "props": {
"currentTabIndex": 2,
"menuType": "modern", "menuType": "modern",
"tabSize": { "tabSize": {
"width": 1000 "width": 1000

View File

@ -1,17 +1,13 @@
{ {
"custom": { "custom": {
"disconnected": false, "color": "#00FF00",
"plc": "", "priority": "No Active Alarms",
"priority": 0, "state": "Normal"
"priority_string": "No Active Alarms",
"searchId": "PLC01",
"state": 0,
"state_string": "Normal"
}, },
"params": { "params": {
"forceFaultStatus": null, "forceFaultStatus": null,
"tagProps": [ "tagProps": [
"/System/Field_Devices/SIO/SIO1", "System/MCM01/IO_BLOCK/FIO/UL1_3_FIO1",
"value", "value",
"value", "value",
"value", "value",
@ -24,7 +20,7 @@
] ]
}, },
"propConfig": { "propConfig": {
"custom.disconnected": { "custom.color": {
"binding": { "binding": {
"config": { "config": {
"fallbackDelay": 2.5, "fallbackDelay": 2.5,
@ -33,64 +29,132 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Color"
}, },
"transforms": [ "transforms": [
{ {
"expression": "!isGood({value})", "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression" "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" "type": "tag"
}, },
"persistent": true "persistent": true
}, },
"custom.plc": {
"binding": {
"config": {
"path": "view.params.tagProps[0]"
},
"transforms": [
{
"expression": "split({value}, \"/\")[0]",
"type": "expression"
}
],
"type": "property"
},
"persistent": true
},
"custom.priority": { "custom.priority": {
"binding": { "binding": {
"config": { "config": {
"path": "view.custom.state" "fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Priority"
}, },
"transforms": [ "transforms": [
{ {
"fallback": 0, "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"inputType": "scalar", "type": "expression"
"mappings": [ },
{
"input": 1,
"output": 1
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
},
"persistent": true
},
"custom.priority_string": {
"binding": {
"config": {
"path": "view.custom.state"
},
"transforms": [
{ {
"fallback": "Unknown", "fallback": null,
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
@ -100,22 +164,25 @@
{ {
"input": 1, "input": 1,
"output": "High" "output": "High"
},
{
"input": 2,
"output": "Medium"
},
{
"input": 3,
"output": "Low"
},
{
"input": 4,
"output": "Diagnostic"
} }
], ],
"outputType": "scalar", "outputType": "scalar",
"type": "map" "type": "map"
} }
], ],
"type": "property" "type": "tag"
},
"persistent": true
},
"custom.searchId": {
"binding": {
"config": {
"path": "session.custom.searchId"
},
"type": "property"
}, },
"persistent": true "persistent": true
}, },
@ -128,27 +195,222 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/State"
}, },
"transforms": [ "transforms": [
{ {
"expression": "coalesce({value},{view.params.forceFaultStatus},0)", "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression" "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" "type": "tag"
}, },
"persistent": true "persistent": true
}, },
"custom.state_string": {
"binding": {
"config": {
"expression": "case({view.custom.state},\r\n0, \"Normal\",\r\n1, \"Communication Faulted\",\r\n\"Unknown\")"
},
"type": "expr"
},
"persistent": true
},
"params.forceFaultStatus": { "params.forceFaultStatus": {
"paramDirection": "input", "paramDirection": "input",
"persistent": true "persistent": true
@ -218,7 +480,7 @@
"props.color": { "props.color": {
"binding": { "binding": {
"config": { "config": {
"expression": "if(\r\n {view.custom.disconnected},\r\n \u0027#D3D3D3\u0027,\r\n if(\r\n {view.custom.state} \u003d 1,\r\n \u0027#FF0000\u0027,\r\n if(\r\n {view.custom.state} \u003d 0,\r\n \u0027#00D900\u0027,\r\n \u0027#fff700\u0027\r\n )\r\n )\r\n)\r\n" "expression": "if(\r\n {view.custom.state} \u003d \"Closed\",\r\n \"#000000\",\r\n {view.custom.color}\r\n)\r\n"
}, },
"type": "expr" "type": "expr"
} }
@ -271,16 +533,20 @@
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": 1, "input": "High",
"output": "Alarms-Styles/High" "output": "Alarms-Styles/High"
}, },
{ {
"input": 2, "input": "Medium",
"output": "Alarms-Styles/High" "output": "Alarms-Styles/Medium"
}, },
{ {
"input": 3, "input": "Low",
"output": "Alarms-Styles/High" "output": "Alarms-Styles/Low"
},
{
"input": "Diagnostic",
"output": "Alarms-Styles/Diagnostic"
} }
], ],
"outputType": "style-list", "outputType": "style-list",
@ -293,7 +559,7 @@
"meta.tooltip.text": { "meta.tooltip.text": {
"binding": { "binding": {
"config": { "config": {
"expression": "if(\n {view.custom.disconnected} \u003d false,\n \"Source Id: \" + {view.params.tagProps[0]} + \", Priority: \" + {view.custom.priority_string} + \", State: \" + {view.custom.state_string},\n \"Device Disconnected\"\n)\n" "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" "type": "expr"
} }

View File

@ -1,20 +1,14 @@
{ {
"custom": { "custom": {
"alarm_message": null, "color": "#C2C2C2",
"button_type": "", "priority": "No Active Alarms",
"disconnected": false, "state": "Normal",
"plc": "System", "type": "Enable"
"priority": 0,
"priority_string": "No Active Alarms",
"searchId": "PLC01",
"state": 2,
"state_string": "Unknown"
}, },
"params": { "params": {
"color": 3,
"forceFaultStatus": null, "forceFaultStatus": null,
"tagProps": [ "tagProps": [
"System/MCM01/Station/S_PB/UL12_3_S2", "System/MCM06/Chute/NC/S02_203CH",
"value", "value",
"value", "value",
"value", "value",
@ -27,96 +21,171 @@
] ]
}, },
"propConfig": { "propConfig": {
"custom.alarm_message": { "custom.color": {
"persistent": true
},
"custom.button_type": {
"binding": {
"config": {
"expression": "if({view.params.color} \u003d 1, \"PR_PB_\",\r\n if({view.params.color} \u003d 2, \"GS_PB_\", \"\")\r\n)\r\n"
},
"type": "expr"
},
"persistent": true
},
"custom.disconnected": {
"binding": { "binding": {
"config": { "config": {
"fallbackDelay": 2.5, "fallbackDelay": 2.5,
"mode": "indirect", "mode": "indirect",
"references": { "references": {
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"1": "{view.custom.type}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/{1}/Color"
}, },
"transforms": [ "transforms": [
{ {
"expression": "!isGood({value})", "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression" "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" "type": "tag"
}, },
"persistent": true "persistent": true
}, },
"custom.plc": {
"binding": {
"config": {
"path": "view.params.tagProps[0]"
},
"transforms": [
{
"expression": "split({value}, \"/\")[0]",
"type": "expression"
}
],
"type": "property"
},
"persistent": true
},
"custom.priority": { "custom.priority": {
"binding": { "binding": {
"config": { "config": {
"path": "view.custom.state" "fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"1": "",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/{1}/Priority"
}, },
"transforms": [ "transforms": [
{ {
"fallback": 0, "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": null,
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{
"input": 0,
"output": "No Active Alarms"
},
{ {
"input": 1, "input": 1,
"output": 1 "output": "High"
}, },
{ {
"input": 2, "input": 2,
"output": 0 "output": "Medium"
},
{
"input": 3,
"output": "Low"
},
{
"input": 4,
"output": "Diagnostic"
} }
], ],
"outputType": "scalar", "outputType": "scalar",
"type": "map" "type": "map"
} }
], ],
"type": "property" "type": "tag"
},
"persistent": true
},
"custom.priority_string": {
"binding": {
"config": {
"expression": "case({view.custom.state},\r\n1, \"Low\",\r\n2, \"No Active Alarms\",\r\n0, \"No Active Alarms\",\r\n\"Unknown\")"
},
"type": "expr"
},
"persistent": true
},
"custom.searchId": {
"binding": {
"config": {
"path": "session.custom.searchId"
},
"type": "property"
}, },
"persistent": true "persistent": true
}, },
@ -127,34 +196,278 @@
"mode": "indirect", "mode": "indirect",
"references": { "references": {
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}", "1": "{view.custom.type}",
"type": "{view.custom.button_type}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/{type}STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/{1}/State"
}, },
"transforms": [ "transforms": [
{ {
"expression": "coalesce({value},{view.params.forceFaultStatus},0)", "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression" "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" "type": "tag"
}, },
"persistent": true "persistent": true
}, },
"custom.state_string": { "custom.type": {
"binding": { "binding": {
"config": { "config": {
"expression": "case(\r\n {view.custom.state} + \"-\" + {view.params.color},\r\n \"1-1\", \"Package Release Pressed\",\r\n \"1-2\", \"Gaylord Start Pressed\",\r\n \"0-1\", \"Normal\",\r\n \"0-2\", \"Normal\",\r\n \"2-2\", \"Normal\",\r\n \"Unknown\"\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}/Button_Type"
}, },
"type": "expr" "transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "UNKNOWN",
"inputType": "scalar",
"mappings": [
{
"input": 5,
"output": "Chute_JR"
},
{
"input": 4,
"output": "GS"
},
{
"input": 3,
"output": "PR"
},
{
"input": 2,
"output": "Start"
},
{
"input": 1,
"output": "JR"
},
{
"input": 6,
"output": "Enable"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "tag"
}, },
"persistent": true "persistent": true
}, },
"params.color": {
"paramDirection": "input",
"persistent": true
},
"params.forceFaultStatus": { "params.forceFaultStatus": {
"paramDirection": "input", "paramDirection": "input",
"persistent": true "persistent": true
@ -181,19 +494,74 @@
"width": 1 "width": 1
}, },
"propConfig": { "propConfig": {
"props.elements[0].fill.paint": { "props.elements[1].fill.paint": {
"binding": { "binding": {
"config": { "config": {
"expression": "if(\r\n {view.custom.disconnected},\r\n \u0027#999999\u0027,\r\n if(\r\n {view.custom.state} \u003d 1 || {view.custom.state} \u003d 2,\r\n \u0027#D5D5D5\u0027,\r\n if(\r\n {view.custom.state} \u003d 0,\r\n \u0027#D5D5D5\u0027,\r\n \u0027#fff700\u0027\r\n )\r\n )\r\n)\r\n" "expression": "if(\r\n {view.custom.state} \u003d \"Closed\",\r\n \"#000000\",\r\n {view.custom.color}\r\n)\r\n"
}, },
"type": "expr" "type": "expr"
} }
}, },
"props.elements[1].fill.paint": { "props.style.classes": {
"binding": { "binding": {
"config": { "config": {
"expression": "if(\r\n {view.custom.disconnected} \u0026\u0026 {view.params.color} \u003d 1,\r\n \"#D5D5D5\",\r\n if(\r\n {view.custom.disconnected} \u0026\u0026 {view.params.color} \u003d 2,\r\n \"#00D900\",\r\n if(\r\n {view.params.color} \u003d 1,\r\n if(\r\n {view.custom.state} \u003d 1,\r\n \"#FF0000\",\r\n \"#D5D5D5\"\r\n ),\r\nif(\r\n {view.params.color} \u003d 2,\r\n if(\r\n {view.custom.state} \u003d 1,\r\n \"#FF0000\",\r\n if(\r\n {view.custom.state} \u003d 2,\r\n \"#FF0000\",\r\n \"#00D900\"\r\n )\r\n ),\r\n \"#D5D5D5\"\r\n )\r\n )\r\n )\r\n)\r\n" "expression": "if({session.custom.colours.colour_impaired} \u003d True,\r\n{view.custom.state} + 100,\r\n{view.custom.state})"
}, },
"enabled": false,
"transforms": [
{
"fallback": "",
"inputType": "scalar",
"mappings": [
{
"input": 101,
"output": "State-Styles/State101"
},
{
"input": 102,
"output": "State-Styles/State102"
},
{
"input": 103,
"output": "State-Styles/State103"
},
{
"input": 104,
"output": "State-Styles/State104"
},
{
"input": 105,
"output": "State-Styles/State105"
},
{
"input": 106,
"output": "State-Styles/State106"
},
{
"input": 201,
"output": "State-Styles/State201"
},
{
"input": 202,
"output": "State-Styles/State202"
},
{
"input": 203,
"output": "State-Styles/State203"
},
{
"input": 204,
"output": "State-Styles/State204"
},
{
"input": 205,
"output": "State-Styles/State205"
}
],
"outputType": "style-list",
"type": "map"
}
],
"type": "expr" "type": "expr"
} }
} }
@ -202,7 +570,9 @@
"elements": [ "elements": [
{ {
"d": "M 0,0 H 20 V 20 H 0 Z", "d": "M 0,0 H 20 V 20 H 0 Z",
"fill": {}, "fill": {
"paint": "#AAAAAA"
},
"name": "path", "name": "path",
"stroke": { "stroke": {
"paint": "#000000", "paint": "#000000",
@ -235,13 +605,6 @@
"scope": "G", "scope": "G",
"type": "script" "type": "script"
}, },
"onDoubleClick": {
"config": {
"script": "\ttagProps \u003d self.view.params.tagProps\n\tsystem.perspective.openPopup(\"StatusPopUP\", \"PopUp-Views/Controller-Equipment/Information\", params \u003d{\"tagProps\":tagProps})"
},
"scope": "G",
"type": "script"
},
"onMouseEnter": { "onMouseEnter": {
"config": { "config": {
"script": "\tfrom time import sleep\n\t\n\talarm \u003d []\n\tmessage \u003d None\n\t\n\tsleep(0.5)\n\t\n\tif system.tag.exists(\"System/aws_data\"):\n\t\tif self.view.params.tagProps[0] !\u003d \"\":\n\t\t\ttags_to_read \u003d system.tag.readBlocking(\"System/aws_data\")\n\t\t\tdecode_alarm_data \u003d system.util.jsonDecode(tags_to_read[0].value)\n\t\t\talarm \u003d [decode_alarm_data[i] for i in decode_alarm_data\n\t\t\t\t\tif decode_alarm_data[i][\u0027sourceId\u0027].startswith(self.view.params.tagProps[0])]\n\t\tif alarm:\n\t\t\talarm \u003d sorted(alarm, key \u003d lambda t:t[\u0027timestamp\u0027], reverse\u003dTrue)\n\t\t\tmessage \u003d max(alarm, key \u003d lambda p:p[\u0027priority\u0027]).get(\u0027message\u0027)\n\t\t\tif len(alarm) \u003e 1:\n\t\t\t\tmessage +\u003d \" (+\" + str(len(alarm)-1) + \")\"\n\tself.view.custom.alarm_message \u003d message" "script": "\tfrom time import sleep\n\t\n\talarm \u003d []\n\tmessage \u003d None\n\t\n\tsleep(0.5)\n\t\n\tif system.tag.exists(\"System/aws_data\"):\n\t\tif self.view.params.tagProps[0] !\u003d \"\":\n\t\t\ttags_to_read \u003d system.tag.readBlocking(\"System/aws_data\")\n\t\t\tdecode_alarm_data \u003d system.util.jsonDecode(tags_to_read[0].value)\n\t\t\talarm \u003d [decode_alarm_data[i] for i in decode_alarm_data\n\t\t\t\t\tif decode_alarm_data[i][\u0027sourceId\u0027].startswith(self.view.params.tagProps[0])]\n\t\tif alarm:\n\t\t\talarm \u003d sorted(alarm, key \u003d lambda t:t[\u0027timestamp\u0027], reverse\u003dTrue)\n\t\t\tmessage \u003d max(alarm, key \u003d lambda p:p[\u0027priority\u0027]).get(\u0027message\u0027)\n\t\t\tif len(alarm) \u003e 1:\n\t\t\t\tmessage +\u003d \" (+\" + str(len(alarm)-1) + \")\"\n\tself.view.custom.alarm_message \u003d message"
@ -270,20 +633,20 @@
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": 1, "input": "High",
"output": "Alarms-Styles/Diagnostic" "output": "Alarms-Styles/High"
}, },
{ {
"input": 2, "input": "Medium",
"output": "Alarms-Styles/Low"
},
{
"input": 3,
"output": "Alarms-Styles/Medium" "output": "Alarms-Styles/Medium"
}, },
{ {
"input": 4, "input": "Low",
"output": "Alarms-Styles/High" "output": "Alarms-Styles/Low"
},
{
"input": "Diagnostic",
"output": "Alarms-Styles/Diagnostic"
} }
], ],
"outputType": "style-list", "outputType": "style-list",
@ -296,7 +659,7 @@
"meta.tooltip.text": { "meta.tooltip.text": {
"binding": { "binding": {
"config": { "config": {
"expression": "if(\n {view.custom.disconnected} \u003d false,\n \"Source Id: \" + {view.params.tagProps[0]} + \", Priority: \" + {view.custom.priority_string} + \", State: \" + {view.custom.state_string},\n \"Device Disconnected\"\n)\n" "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" "type": "expr"
} }

View File

@ -1,13 +1,8 @@
{ {
"custom": { "custom": {
"alarm_message": null, "color": "#C2C2C2",
"disconnected": true, "priority": "No Active Alarms",
"plc": "value", "state": "Closed"
"priority": 0,
"priority_string": "No active alarms",
"searchId": "value",
"state": 0,
"state_string": "Normal"
}, },
"params": { "params": {
"forceFaultStatus": null, "forceFaultStatus": null,
@ -27,7 +22,7 @@
] ]
}, },
"propConfig": { "propConfig": {
"custom.disconnected": { "custom.color": {
"binding": { "binding": {
"config": { "config": {
"fallbackDelay": 2.5, "fallbackDelay": 2.5,
@ -36,83 +31,160 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Color"
}, },
"transforms": [ "transforms": [
{ {
"expression": "!isGood({value})", "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression" "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" "type": "tag"
}, },
"persistent": true "persistent": true
}, },
"custom.plc": {
"binding": {
"config": {
"path": "view.params.tagProps[0]"
},
"transforms": [
{
"expression": "split({value}, \"/\")[0]",
"type": "expression"
}
],
"type": "property"
},
"persistent": true
},
"custom.priority": { "custom.priority": {
"binding": { "binding": {
"config": { "config": {
"path": "view.custom.state" "fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Priority"
}, },
"transforms": [ "transforms": [
{ {
"fallback": 0, "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": null,
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{
"input": 0,
"output": "No Active Alarms"
},
{ {
"input": 1, "input": 1,
"output": 4 "output": "High"
}, },
{ {
"input": 2, "input": 2,
"output": 3 "output": "Medium"
}, },
{ {
"input": 3, "input": 3,
"output": 2 "output": "Low"
}, },
{ {
"input": 4, "input": 4,
"output": 1 "output": "Diagnostic"
} }
], ],
"outputType": "scalar", "outputType": "scalar",
"type": "map" "type": "map"
} }
], ],
"type": "property" "type": "tag"
},
"persistent": true
},
"custom.priority_string": {
"binding": {
"config": {
"expression": "case({view.custom.state},\r\n1, \"High\",\r\n0, \"No active alarms\",\r\n\"Unknown\")"
},
"type": "expr"
},
"persistent": true
},
"custom.searchId": {
"binding": {
"config": {
"path": "session.custom.searchId"
},
"type": "property"
}, },
"persistent": true "persistent": true
}, },
@ -125,27 +197,222 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/State"
}, },
"transforms": [ "transforms": [
{ {
"expression": "coalesce({value},{view.params.forceFaultStatus},0)", "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression" "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" "type": "tag"
}, },
"persistent": true "persistent": true
}, },
"custom.state_string": {
"binding": {
"config": {
"expression": "case({view.custom.state},\r\n1, \"Communication Faulted\",\r\n0, \"Normal\",\r\n\"Unknown\")"
},
"type": "expr"
},
"persistent": true
},
"params.forceFaultStatus": { "params.forceFaultStatus": {
"paramDirection": "input", "paramDirection": "input",
"persistent": true "persistent": true
@ -183,7 +450,7 @@
"props.elements[0].fill.paint": { "props.elements[0].fill.paint": {
"binding": { "binding": {
"config": { "config": {
"expression": "if(\r\n {view.custom.disconnected},\r\n \u0027#808080\u0027,\r\n if(\r\n {view.custom.state} \u003d 1,\r\n \u0027#FF0000\u0027,\r\n if(\r\n {view.custom.state} \u003d 0,\r\n \u0027#00D900\u0027,\r\n \u0027#fff700\u0027\r\n )\r\n )\r\n)\r\n" "expression": "if(\r\n {view.custom.state} \u003d \"Closed\",\r\n \"#000000\",\r\n {view.custom.color}\r\n)\r\n"
}, },
"type": "expr" "type": "expr"
} }
@ -267,20 +534,20 @@
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": 1, "input": "High",
"output": "Alarms-Styles/Diagnostic" "output": "Alarms-Styles/High"
}, },
{ {
"input": 2, "input": "Medium",
"output": "Alarms-Styles/Low"
},
{
"input": 3,
"output": "Alarms-Styles/Medium" "output": "Alarms-Styles/Medium"
}, },
{ {
"input": 4, "input": "Low",
"output": "Alarms-Styles/High" "output": "Alarms-Styles/Low"
},
{
"input": "Diagnostic",
"output": "Alarms-Styles/Diagnostic"
} }
], ],
"outputType": "style-list", "outputType": "style-list",
@ -293,7 +560,7 @@
"meta.tooltip.text": { "meta.tooltip.text": {
"binding": { "binding": {
"config": { "config": {
"expression": "if(\n {view.custom.disconnected} \u003d false,\n \"Source Id: \" + {view.params.tagProps[0]} + \", Priority: \" + {view.custom.priority_string} + \", State: \" + {view.custom.state_string},\n \"Device Disconnected\"\n)\n" "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" "type": "expr"
} }

View File

@ -1,19 +1,14 @@
{ {
"custom": { "custom": {
"disconnected": false, "color": "#FF0000",
"plc": "value", "priority": "High",
"priority": 0, "state": "EStopped"
"priority_string": "No Active Alarms",
"searchId": "PLC01",
"state": 0,
"state_string": "Running"
}, },
"params": { "params": {
"directionLeft": false, "directionLeft": false,
"forceFaultStatus": null, "forceFaultStatus": null,
"forceRunningStatus": null,
"tagProps": [ "tagProps": [
"value", "System/MCM01/Conveyor/EXTENDO/UL1_1_EX1",
"value", "value",
"value", "value",
"value", "value",
@ -27,7 +22,7 @@
"type": 1 "type": 1
}, },
"propConfig": { "propConfig": {
"custom.disconnected": { "custom.color": {
"binding": { "binding": {
"config": { "config": {
"fallbackDelay": 2.5, "fallbackDelay": 2.5,
@ -36,88 +31,132 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Color"
}, },
"transforms": [ "transforms": [
{ {
"expression": "!isGood({value})", "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression" "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" "type": "tag"
}, },
"persistent": true "persistent": true
}, },
"custom.plc": {
"binding": {
"config": {
"path": "view.params.tagProps[0]"
},
"transforms": [
{
"expression": "split({value}, \"/\")[0]",
"type": "expression"
}
],
"type": "property"
},
"persistent": true
},
"custom.priority": { "custom.priority": {
"binding": { "binding": {
"config": { "config": {
"path": "view.custom.state" "fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Priority"
}, },
"transforms": [ "transforms": [
{ {
"fallback": 0, "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"inputType": "scalar", "type": "expression"
"mappings": [ },
{
"input": 0,
"output": 0
},
{
"input": 1,
"output": 0
},
{
"input": 2,
"output": 0
},
{
"input": 3,
"output": 3
},
{
"input": 4,
"output": 1
},
{
"input": 5,
"output": 1
},
{
"input": 6,
"output": 1
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
},
"persistent": true
},
"custom.priority_string": {
"binding": {
"config": {
"path": "view.custom.state"
},
"transforms": [
{ {
"fallback": "Unknown", "fallback": null,
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
@ -126,11 +165,11 @@
}, },
{ {
"input": 1, "input": 1,
"output": "No Active Alarms" "output": "High"
}, },
{ {
"input": 2, "input": 2,
"output": "No Active Alarms" "output": "Medium"
}, },
{ {
"input": 3, "input": 3,
@ -138,35 +177,14 @@
}, },
{ {
"input": 4, "input": 4,
"output": "High" "output": "Diagnostic"
},
{
"input": 5,
"output": "High"
},
{
"input": 6,
"output": "High"
} }
], ],
"outputType": "scalar", "outputType": "scalar",
"type": "map" "type": "map"
} }
], ],
"type": "property" "type": "tag"
},
"onChange": {
"enabled": null,
"script": "\tif self.custom.priority not in [1, 2, 3, 4, 5, 6, 0]:\n\t self.custom.priority_string \u003d \"Unknown\""
},
"persistent": true
},
"custom.searchId": {
"binding": {
"config": {
"path": "session.custom.searchId"
},
"type": "property"
}, },
"persistent": true "persistent": true
}, },
@ -179,27 +197,222 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/State"
}, },
"transforms": [ "transforms": [
{ {
"expression": "coalesce({value},{view.params.forceFaultStatus},0)", "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression" "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" "type": "tag"
}, },
"persistent": true "persistent": true
}, },
"custom.state_string": {
"binding": {
"config": {
"expression": "if(\r\n {view.params.type} \u003d 0,\r\n case(\r\n {view.custom.state},\r\n 0, \"Loading Not Allowed\",\r\n 1, \"Loading Allowed\",\r\n 2, \"Running\",\r\n 3, \"Full\",\r\n 4, \"Communication Faulted\",\r\n 5, \"Extendo Faulted\",\r\n 6, \"Estopped\",\r\n \"Unknown\"\r\n ),\r\n case(\r\n {view.custom.state},\r\n 0, \"Running\", \r\n 1, \"OK to Run\", \r\n 2, \"PLC Ready to Run\", \r\n 3, \"Ready To Receive\", \r\n 4, \"Motor Faulted\", \r\n 5, \"Estopped\", \r\n \"Unknown\"\r\n )\r\n)\r\n"
},
"type": "expr"
},
"persistent": true
},
"params.directionLeft": { "params.directionLeft": {
"paramDirection": "input", "paramDirection": "input",
"persistent": true "persistent": true
@ -208,10 +421,6 @@
"paramDirection": "input", "paramDirection": "input",
"persistent": true "persistent": true
}, },
"params.forceRunningStatus": {
"paramDirection": "input",
"persistent": true
},
"params.tagProps": { "params.tagProps": {
"paramDirection": "inout", "paramDirection": "inout",
"persistent": true "persistent": true
@ -254,7 +463,7 @@
"props.elements[0].fill.paint": { "props.elements[0].fill.paint": {
"binding": { "binding": {
"config": { "config": {
"expression": "if(\r\n {view.custom.disconnected},\r\n \"#000000\",\r\n if(\r\n toInt({view.params.type}) \u003d 0,\r\n if(\r\n toInt({view.custom.state}) \u003d 0, \"#c2c2c2\",\r\n if(\r\n toInt({view.custom.state}) \u003d 1, \"#c9fcc0\",\r\n if(\r\n toInt({view.custom.state}) \u003d 2, \"#00ff11\",\r\n if(\r\n toInt({view.custom.state}) \u003d 3, \"#0000FF\",\r\n if(\r\n toInt({view.custom.state}) \u003d 4, \"#FF0000\",\r\n if(\r\n toInt({view.custom.state}) \u003d 5, \"#FF0000\",\r\n if(\r\n toInt({view.custom.state}) \u003d 6, \"#FF0000\",\r\n \"#fff700\"\r\n )\r\n )\r\n )\r\n )\r\n )\r\n )\r\n ),\r\n if(\r\n toInt({view.custom.state}) \u003d 0, \"#00ff11\",\r\n if(\r\n toInt({view.custom.state}) \u003d 1, \"#c9fcc0\",\r\n if(\r\n toInt({view.custom.state}) \u003d 2, \"#c9fcc0\",\r\n if(\r\n toInt({view.custom.state}) \u003d 3, \"#c9fcc0\",\r\n if(\r\n toInt({view.custom.state}) \u003d 4, \"#FF0000\",\r\n if(\r\n toInt({view.custom.state}) \u003d 5, \"#FF0000\",\r\n \"#fff700\"\r\n )\r\n )\r\n )\r\n )\r\n )\r\n )\r\n )\r\n)\r\n" "expression": "if(\r\n {view.custom.state} \u003d \"Closed\",\r\n \"#000000\",\r\n {view.custom.color}\r\n)\r\n"
}, },
"type": "expr" "type": "expr"
} }
@ -262,7 +471,7 @@
"props.elements[1].fill.paint": { "props.elements[1].fill.paint": {
"binding": { "binding": {
"config": { "config": {
"expression": "if(\r\n {view.custom.disconnected},\r\n \"#000000\",\r\n if(\r\n toInt({view.params.type}) \u003d 0,\r\n if(\r\n toInt({view.custom.state}) \u003d 0, \"#c2c2c2\",\r\n if(\r\n toInt({view.custom.state}) \u003d 1, \"#c9fcc0\",\r\n if(\r\n toInt({view.custom.state}) \u003d 2, \"#00ff11\",\r\n if(\r\n toInt({view.custom.state}) \u003d 3, \"#0000FF\",\r\n if(\r\n toInt({view.custom.state}) \u003d 4, \"#FF0000\",\r\n if(\r\n toInt({view.custom.state}) \u003d 5, \"#FF0000\",\r\n if(\r\n toInt({view.custom.state}) \u003d 6, \"#FF0000\",\r\n \"#fff700\"\r\n )\r\n )\r\n )\r\n )\r\n )\r\n )\r\n ),\r\n if(\r\n toInt({view.custom.state}) \u003d 0, \"#00ff11\",\r\n if(\r\n toInt({view.custom.state}) \u003d 1, \"#c9fcc0\",\r\n if(\r\n toInt({view.custom.state}) \u003d 2, \"#c9fcc0\",\r\n if(\r\n toInt({view.custom.state}) \u003d 3, \"#c9fcc0\",\r\n if(\r\n toInt({view.custom.state}) \u003d 4, \"#FF0000\",\r\n if(\r\n toInt({view.custom.state}) \u003d 5, \"#FF0000\",\r\n \"#fff700\"\r\n )\r\n )\r\n )\r\n )\r\n )\r\n )\r\n )\r\n)\r\n" "expression": "if(\r\n {view.custom.state} \u003d \"Closed\",\r\n \"#000000\",\r\n {view.custom.color}\r\n)\r\n"
}, },
"type": "expr" "type": "expr"
} }
@ -270,7 +479,7 @@
"props.elements[2].fill.paint": { "props.elements[2].fill.paint": {
"binding": { "binding": {
"config": { "config": {
"expression": "if(\r\n {view.custom.disconnected},\r\n \"#000000\",\r\n if(\r\n toInt({view.params.type}) \u003d 0,\r\n if(\r\n toInt({view.custom.state}) \u003d 0, \"#c2c2c2\",\r\n if(\r\n toInt({view.custom.state}) \u003d 1, \"#c9fcc0\",\r\n if(\r\n toInt({view.custom.state}) \u003d 2, \"#00ff11\",\r\n if(\r\n toInt({view.custom.state}) \u003d 3, \"#0000FF\",\r\n if(\r\n toInt({view.custom.state}) \u003d 4, \"#FF0000\",\r\n if(\r\n toInt({view.custom.state}) \u003d 5, \"#FF0000\",\r\n if(\r\n toInt({view.custom.state}) \u003d 6, \"#FF0000\",\r\n \"#fff700\"\r\n )\r\n )\r\n )\r\n )\r\n )\r\n )\r\n ),\r\n if(\r\n toInt({view.custom.state}) \u003d 0, \"#00ff11\",\r\n if(\r\n toInt({view.custom.state}) \u003d 1, \"#c9fcc0\",\r\n if(\r\n toInt({view.custom.state}) \u003d 2, \"#c9fcc0\",\r\n if(\r\n toInt({view.custom.state}) \u003d 3, \"#c9fcc0\",\r\n if(\r\n toInt({view.custom.state}) \u003d 4, \"#FF0000\",\r\n if(\r\n toInt({view.custom.state}) \u003d 5, \"#FF0000\",\r\n \"#fff700\"\r\n )\r\n )\r\n )\r\n )\r\n )\r\n )\r\n )\r\n)\r\n" "expression": "if(\r\n {view.custom.state} \u003d \"Closed\",\r\n \"#000000\",\r\n {view.custom.color}\r\n)\r\n"
}, },
"type": "expr" "type": "expr"
} }
@ -355,19 +564,19 @@
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": 1, "input": "High",
"output": "Alarms-Styles/High" "output": "Alarms-Styles/High"
}, },
{ {
"input": 2, "input": "Medium",
"output": "Alarms-Styles/Medium" "output": "Alarms-Styles/Medium"
}, },
{ {
"input": 3, "input": "Low",
"output": "Alarms-Styles/Low" "output": "Alarms-Styles/Low"
}, },
{ {
"input": 4, "input": "Diagnostic",
"output": "Alarms-Styles/Diagnostic" "output": "Alarms-Styles/Diagnostic"
} }
], ],
@ -381,7 +590,7 @@
"meta.tooltip.text": { "meta.tooltip.text": {
"binding": { "binding": {
"config": { "config": {
"expression": "if(\n {view.custom.disconnected} \u003d false,\n \"Source Id: \" + {view.params.tagProps[0]} + \", Priority: \" + {view.custom.priority_string} + \", State: \" + {view.custom.state_string},\n \"Device Disconnected\"\n)\n" "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" "type": "expr"
} }

View File

@ -0,0 +1,321 @@
{
"custom": {
"alarm_message": null,
"button_type": "",
"disconnected": true,
"plc": "System",
"priority": 0,
"priority_string": "No Active Alarms",
"searchId": "PLC01",
"state": 0,
"state_string": "Unknown"
},
"params": {
"color": 3,
"forceFaultStatus": null,
"tagProps": [
"System/MCM01/Station/S_PB/UL12_3_S2",
"value",
"value",
"value",
"value",
"value",
"value",
"value",
"value",
"value"
]
},
"propConfig": {
"custom.alarm_message": {
"persistent": true
},
"custom.button_type": {
"binding": {
"config": {
"expression": "if({view.params.color} \u003d 1, \"PR_PB_\",\r\n if({view.params.color} \u003d 2, \"GS_PB_\", \"\")\r\n)\r\n"
},
"type": "expr"
},
"persistent": true
},
"custom.disconnected": {
"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": "!isGood({value})",
"type": "expression"
}
],
"type": "tag"
},
"persistent": true
},
"custom.plc": {
"binding": {
"config": {
"path": "view.params.tagProps[0]"
},
"transforms": [
{
"expression": "split({value}, \"/\")[0]",
"type": "expression"
}
],
"type": "property"
},
"persistent": true
},
"custom.priority": {
"binding": {
"config": {
"path": "view.custom.state"
},
"transforms": [
{
"fallback": 0,
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": 1
},
{
"input": 2,
"output": 0
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
},
"persistent": true
},
"custom.priority_string": {
"binding": {
"config": {
"expression": "case({view.custom.state},\r\n1, \"Low\",\r\n2, \"No Active Alarms\",\r\n0, \"No Active Alarms\",\r\n\"Unknown\")"
},
"type": "expr"
},
"persistent": true
},
"custom.searchId": {
"binding": {
"config": {
"path": "session.custom.searchId"
},
"type": "property"
},
"persistent": true
},
"custom.state": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}",
"type": "{view.custom.button_type}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/{type}STATE"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
}
],
"type": "tag"
},
"persistent": true
},
"custom.state_string": {
"binding": {
"config": {
"expression": "case(\r\n {view.custom.state} + \"-\" + {view.params.color},\r\n \"1-1\", \"Package Release Pressed\",\r\n \"1-2\", \"Gaylord Start Pressed\",\r\n \"0-1\", \"Normal\",\r\n \"0-2\", \"Normal\",\r\n \"2-2\", \"Normal\",\r\n \"Unknown\"\r\n)\r\n"
},
"type": "expr"
},
"persistent": true
},
"params.color": {
"paramDirection": "input",
"persistent": true
},
"params.forceFaultStatus": {
"paramDirection": "input",
"persistent": true
},
"params.tagProps": {
"paramDirection": "input",
"persistent": true
}
},
"props": {
"defaultSize": {
"height": 25,
"width": 25
}
},
"root": {
"children": [
{
"meta": {
"name": "Button"
},
"position": {
"height": 1,
"width": 1
},
"propConfig": {
"props.elements[0].fill.paint": {
"binding": {
"config": {
"expression": "if(\r\n {view.custom.disconnected},\r\n \u0027#999999\u0027,\r\n if(\r\n {view.custom.state} \u003d 1 || {view.custom.state} \u003d 2,\r\n \u0027#D5D5D5\u0027,\r\n if(\r\n {view.custom.state} \u003d 0,\r\n \u0027#D5D5D5\u0027,\r\n \u0027#fff700\u0027\r\n )\r\n )\r\n)\r\n"
},
"type": "expr"
}
},
"props.elements[1].fill.paint": {
"binding": {
"config": {
"expression": "if(\r\n {view.custom.disconnected} \u0026\u0026 {view.params.color} \u003d 1,\r\n \"#D5D5D5\",\r\n if(\r\n {view.custom.disconnected} \u0026\u0026 {view.params.color} \u003d 2,\r\n \"#00D900\",\r\n if(\r\n {view.params.color} \u003d 1,\r\n if(\r\n {view.custom.state} \u003d 1,\r\n \"#FF0000\",\r\n \"#D5D5D5\"\r\n ),\r\nif(\r\n {view.params.color} \u003d 2,\r\n if(\r\n {view.custom.state} \u003d 1,\r\n \"#FF0000\",\r\n if(\r\n {view.custom.state} \u003d 2,\r\n \"#FF0000\",\r\n \"#00D900\"\r\n )\r\n ),\r\n \"#D5D5D5\"\r\n )\r\n )\r\n )\r\n)\r\n"
},
"type": "expr"
}
}
},
"props": {
"elements": [
{
"d": "M 0,0 H 20 V 20 H 0 Z",
"fill": {},
"name": "path",
"stroke": {
"paint": "#000000",
"width": "1.5"
},
"type": "path"
},
{
"d": "m 17,10.5 a 7,7 0 0 1 -7,7 7,7 0 0 1 -7,-7 7,7 0 0 1 7,-7 7,7 0 0 1 7,7 z",
"fill": {},
"name": "path",
"stroke": {
"paint": "#000000",
"width": "1"
},
"type": "path"
}
],
"viewBox": "0 0 20 20"
},
"type": "ia.shapes.svg"
}
],
"events": {
"dom": {
"onClick": {
"config": {
"script": "\tsystem.perspective.openDock(\u0027Docked-East-BTN\u0027,params\u003d{\u0027tagProps\u0027:self.view.params.tagProps})"
},
"scope": "G",
"type": "script"
},
"onDoubleClick": {
"config": {
"script": "\ttagProps \u003d self.view.params.tagProps\n\tsystem.perspective.openPopup(\"StatusPopUP\", \"PopUp-Views/Controller-Equipment/Information\", params \u003d{\"tagProps\":tagProps})"
},
"scope": "G",
"type": "script"
},
"onMouseEnter": {
"config": {
"script": "\tfrom time import sleep\n\t\n\talarm \u003d []\n\tmessage \u003d None\n\t\n\tsleep(0.5)\n\t\n\tif system.tag.exists(\"System/aws_data\"):\n\t\tif self.view.params.tagProps[0] !\u003d \"\":\n\t\t\ttags_to_read \u003d system.tag.readBlocking(\"System/aws_data\")\n\t\t\tdecode_alarm_data \u003d system.util.jsonDecode(tags_to_read[0].value)\n\t\t\talarm \u003d [decode_alarm_data[i] for i in decode_alarm_data\n\t\t\t\t\tif decode_alarm_data[i][\u0027sourceId\u0027].startswith(self.view.params.tagProps[0])]\n\t\tif alarm:\n\t\t\talarm \u003d sorted(alarm, key \u003d lambda t:t[\u0027timestamp\u0027], reverse\u003dTrue)\n\t\t\tmessage \u003d max(alarm, key \u003d lambda p:p[\u0027priority\u0027]).get(\u0027message\u0027)\n\t\t\tif len(alarm) \u003e 1:\n\t\t\t\tmessage +\u003d \" (+\" + str(len(alarm)-1) + \")\"\n\tself.view.custom.alarm_message \u003d message"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "root",
"tooltip": {
"enabled": true,
"style": {}
}
},
"propConfig": {
"meta.tooltip.style.classes": {
"binding": {
"config": {
"expression": "{view.custom.priority}"
},
"transforms": [
{
"fallback": "Alarms-Styles/NoAlarm",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "Alarms-Styles/Diagnostic"
},
{
"input": 2,
"output": "Alarms-Styles/Low"
},
{
"input": 3,
"output": "Alarms-Styles/Medium"
},
{
"input": 4,
"output": "Alarms-Styles/High"
}
],
"outputType": "style-list",
"type": "map"
}
],
"type": "expr"
}
},
"meta.tooltip.text": {
"binding": {
"config": {
"expression": "if(\n {view.custom.disconnected} \u003d false,\n \"Source Id: \" + {view.params.tagProps[0]} + \", Priority: \" + {view.custom.priority_string} + \", State: \" + {view.custom.state_string},\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"
}
}

View File

@ -1,19 +1,14 @@
{ {
"custom": { "custom": {
"disconnected": true, "alarm_message": null,
"plc": "MCM", "color": "#C2C2C2",
"priority": 0, "priority": "No Active Alarms",
"priority_string": "No Active Alarms", "state": "Closed"
"searchId": "PLC01",
"state": 0,
"state_string": "Normal"
}, },
"params": { "params": {
"forceFaultStatus": null, "forceFaultStatus": null,
"forceRunningStatus": null,
"has_state": false,
"tagProps": [ "tagProps": [
"MCM", "System/MCM01/MCM01",
"value", "value",
"value", "value",
"value", "value",
@ -26,7 +21,7 @@
] ]
}, },
"propConfig": { "propConfig": {
"custom.disconnected": { "custom.color": {
"binding": { "binding": {
"config": { "config": {
"fallbackDelay": 2.5, "fallbackDelay": 2.5,
@ -35,103 +30,160 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Color"
}, },
"transforms": [ "transforms": [
{ {
"expression": "!isGood({value})", "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression" "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" "type": "tag"
}, },
"persistent": true "persistent": true
}, },
"custom.plc": {
"binding": {
"config": {
"path": "view.params.tagProps[0]"
},
"transforms": [
{
"expression": "split({value}, \"/\")[0]",
"type": "expression"
}
],
"type": "property"
},
"persistent": true
},
"custom.priority": { "custom.priority": {
"binding": { "binding": {
"config": { "config": {
"path": "view.custom.state" "fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Priority"
}, },
"transforms": [ "transforms": [
{ {
"fallback": 0, "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": null,
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{
"input": 0,
"output": "No Active Alarms"
},
{ {
"input": 1, "input": 1,
"output": 1 "output": "High"
}, },
{ {
"input": 2, "input": 2,
"output": 1 "output": "Medium"
}, },
{ {
"input": 3, "input": 3,
"output": 1 "output": "Low"
}, },
{ {
"input": 4, "input": 4,
"output": 1 "output": "Diagnostic"
},
{
"input": 5,
"output": 1
},
{
"input": 6,
"output": 1
},
{
"input": 7,
"output": 1
},
{
"input": 8,
"output": 1
},
{
"input": 9,
"output": 0
} }
], ],
"outputType": "scalar", "outputType": "scalar",
"type": "map" "type": "map"
} }
], ],
"type": "property" "type": "tag"
},
"persistent": true
},
"custom.priority_string": {
"binding": {
"config": {
"expression": "case({view.custom.priority},\r\n1, \"High\",\r\n0, \"No Active Alarms\",\r\n\"Unknown\")"
},
"type": "expr"
},
"persistent": true
},
"custom.searchId": {
"binding": {
"config": {
"path": "session.custom.searchId"
},
"type": "property"
}, },
"persistent": true "persistent": true
}, },
@ -144,39 +196,226 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/State"
}, },
"transforms": [ "transforms": [
{ {
"expression": "coalesce({value},{view.params.forceFaultStatus},0)", "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression" "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" "type": "tag"
}, },
"persistent": true "persistent": true
}, },
"custom.state_string": {
"binding": {
"config": {
"expression": "case({view.custom.state},\r\n1, \"Motor Was Faulted\",\r\n2, \"Power Branch Was Faulted\",\r\n3, \"Low Air Pressure Fault Was Present\",\r\n4, \"Encoder Fault\",\r\n5, \"Jam Fault\",\r\n6, \"Communication Faulted\",\r\n7, \"Estop Was Actuated\",\r\n8, \"Estopped Locally\",\r\n9, \"System Started\",\r\n0, \"Normal\",\r\n\"Unknown\")"
},
"type": "expr"
},
"persistent": true
},
"params.forceFaultStatus": { "params.forceFaultStatus": {
"paramDirection": "input", "paramDirection": "input",
"persistent": true "persistent": true
}, },
"params.forceRunningStatus": {
"paramDirection": "input",
"persistent": true
},
"params.has_state": {
"paramDirection": "input",
"persistent": true
},
"params.tagProps": { "params.tagProps": {
"paramDirection": "inout", "paramDirection": "inout",
"persistent": true "persistent": true
@ -202,7 +441,7 @@
"props.elements[0].fill.paint": { "props.elements[0].fill.paint": {
"binding": { "binding": {
"config": { "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.state} \u003d \"Closed\",\r\n \"#000000\",\r\n {view.custom.color}\r\n)\r\n"
}, },
"type": "expr" "type": "expr"
}, },
@ -214,23 +453,9 @@
"props.elements[1].style.fill": { "props.elements[1].style.fill": {
"binding": { "binding": {
"config": { "config": {
"path": "view.custom.disconnected" "expression": "if(\r\n {view.custom.state} \u003d \"Closed\",\r\n \"#FFFFFF\",\r\n \"#000000\"\r\n)\r\n"
}, },
"transforms": [ "type": "expr"
{
"fallback": "#000000",
"inputType": "scalar",
"mappings": [
{
"input": true,
"output": "#FFFFFF"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "property"
} }
} }
}, },
@ -301,8 +526,20 @@
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": 1, "input": "High",
"output": "Alarms-Styles/High" "output": "Alarms-Styles/High"
},
{
"input": "Medium",
"output": "Alarms-Styles/Medium"
},
{
"input": "Low",
"output": "Alarms-Styles/Low"
},
{
"input": "Diagnostic",
"output": "Alarms-Styles/Diagnostic"
} }
], ],
"outputType": "style-list", "outputType": "style-list",
@ -315,7 +552,7 @@
"meta.tooltip.text": { "meta.tooltip.text": {
"binding": { "binding": {
"config": { "config": {
"expression": "if(\n {view.custom.disconnected} \u003d false,\n \"Source Id: \" + {view.params.tagProps[0]} + \", Priority: \" + {view.custom.priority_string} + \", State: \" + {view.custom.state_string},\n \"Device Disconnected\"\n)\n" "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" "type": "expr"
} }

View File

@ -1,18 +1,13 @@
{ {
"custom": { "custom": {
"disconnected": true, "color": "#00FF00",
"plc": "System", "priority": "No Active Alarms",
"priority": 0, "state": "Normal"
"priority_string": "No active alarms",
"searchId": "PLC01",
"state": 0,
"state_string": "Normal"
}, },
"params": { "params": {
"forceFaultStatus": null, "forceFaultStatus": null,
"forceRunningStatus": null,
"tagProps": [ "tagProps": [
"System/Station/EPC/UL1_3_EPC1", "System/MCM01/Station/EPC/UL1_3_EPC1",
"value", "value",
"value", "value",
"value", "value",
@ -25,7 +20,7 @@
] ]
}, },
"propConfig": { "propConfig": {
"custom.disconnected": { "custom.color": {
"binding": { "binding": {
"config": { "config": {
"fallbackDelay": 2.5, "fallbackDelay": 2.5,
@ -34,85 +29,160 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Color"
}, },
"transforms": [ "transforms": [
{ {
"expression": "!isGood({value})", "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression" "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" "type": "tag"
}, },
"persistent": true "persistent": true
}, },
"custom.plc": {
"binding": {
"config": {
"path": "view.params.tagProps[0]"
},
"transforms": [
{
"expression": "split({value}, \"/\")[0]",
"type": "expression"
}
],
"type": "property"
},
"persistent": true
},
"custom.priority": { "custom.priority": {
"binding": { "binding": {
"config": { "config": {
"path": "view.custom.state" "fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Priority"
}, },
"transforms": [ "transforms": [
{ {
"fallback": 0, "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": null,
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": 1, "input": 0,
"output": 1 "output": "No Active Alarms"
} },
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
},
"persistent": true
},
"custom.priority_string": {
"binding": {
"config": {
"path": "view.custom.state"
},
"transforms": [
{
"fallback": "No active alarms",
"inputType": "scalar",
"mappings": [
{ {
"input": 1, "input": 1,
"output": "High" "output": "High"
},
{
"input": 2,
"output": "Medium"
},
{
"input": 3,
"output": "Low"
},
{
"input": 4,
"output": "Diagnostic"
} }
], ],
"outputType": "scalar", "outputType": "scalar",
"type": "map" "type": "map"
} }
], ],
"type": "property" "type": "tag"
},
"persistent": true
},
"custom.searchId": {
"binding": {
"config": {
"path": "session.custom.searchId"
},
"type": "property"
}, },
"persistent": true "persistent": true
}, },
@ -125,35 +195,226 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/State"
}, },
"transforms": [ "transforms": [
{ {
"expression": "coalesce({value},{view.params.forceFaultStatus},0)", "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression" "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" "type": "tag"
}, },
"persistent": true "persistent": true
}, },
"custom.state_string": {
"binding": {
"config": {
"expression": "case({view.custom.state},\r\n1, \"Actuated\",\r\n0, \"Normal\",\r\n\"Unknown\")"
},
"type": "expr"
},
"persistent": true
},
"params.forceFaultStatus": { "params.forceFaultStatus": {
"paramDirection": "input", "paramDirection": "input",
"persistent": true "persistent": true
}, },
"params.forceRunningStatus": {
"paramDirection": "input",
"persistent": true
},
"params.tagProps": { "params.tagProps": {
"paramDirection": "inout", "paramDirection": "inout",
"persistent": true "persistent": true
@ -178,32 +439,18 @@
"y": 0.0005 "y": 0.0005
}, },
"propConfig": { "propConfig": {
"props.elements[0].fill.paint": {
"binding": {
"config": {
"expression": "if(\r\n {view.custom.disconnected},\r\n \"#AAAAAA\",\r\n switch(\r\n toInt({view.custom.state}),\r\n 0, 1, \r\n \"#AAAAAA\", \"#AAAAAA\", \r\n \"#FFFF00\"\r\n )\r\n)"
},
"type": "expr"
}
},
"props.elements[1].fill.paint": { "props.elements[1].fill.paint": {
"binding": { "binding": {
"config": { "config": {
"path": "view.custom.state" "expression": "if({view.custom.state} \u003d \"Closed\", \"#000000\", {view.custom.color})"
}, },
"transforms": [ "type": "expr"
{
"expression": "case({value},\r\n0,{session.custom.colours.state5},\r\n{session.custom.colours.state1}\r\n)",
"type": "expression"
}
],
"type": "property"
} }
}, },
"props.elements[2].visibility": { "props.elements[2].visibility": {
"binding": { "binding": {
"config": { "config": {
"expression": "if(\r\n {view.custom.state} \u003d 0 \u0026\u0026 \r\n {parent.meta.visible}, \r\n \u0027visible\u0027, \r\n \u0027hidden\u0027\r\n)" "expression": "if(\r\n {view.custom.color} \u003d \"#FF0000\" \u0026\u0026 \r\n {parent.meta.visible},\r\n \u0027visible\u0027, \r\n \u0027hidden\u0027\r\n)"
}, },
"type": "expr" "type": "expr"
} }
@ -211,7 +458,7 @@
"props.elements[3].visibility": { "props.elements[3].visibility": {
"binding": { "binding": {
"config": { "config": {
"expression": "if(\r\n {view.custom.state} \u003e\u003d 1 \u0026\u0026 \r\n {parent.meta.visible}, \r\n \u0027visible\u0027, \r\n \u0027hidden\u0027\r\n)" "expression": "if(\r\n {view.custom.color} \u003d \"#00FF00\" \u0026\u0026 \r\n {parent.meta.visible} || {view.custom.state} \u003d \"Closed\",\r\n \u0027visible\u0027, \r\n \u0027hidden\u0027\r\n)"
}, },
"type": "expr" "type": "expr"
} }
@ -221,7 +468,9 @@
"elements": [ "elements": [
{ {
"d": "M 0.01621377,0.01595147 H 25.93719 V 41.138171 H 0.01621377 Z", "d": "M 0.01621377,0.01595147 H 25.93719 V 41.138171 H 0.01621377 Z",
"fill": {}, "fill": {
"paint": "#AAAAAA"
},
"name": "path", "name": "path",
"stroke": { "stroke": {
"paint": "#000000", "paint": "#000000",
@ -285,19 +534,11 @@
"dom": { "dom": {
"onClick": { "onClick": {
"config": { "config": {
"script": "\tsystem.perspective.openDock(\u0027Docked-East-BTN\u0027,params\u003d{\u0027tagProps\u0027:self.view.params.tagProps})" "script": "\tsystem.perspective.openDock(\u0027Docked-East-EPC\u0027,params\u003d{\u0027tagProps\u0027:self.view.params.tagProps})"
}, },
"scope": "G", "scope": "G",
"type": "script" "type": "script"
}, },
"onDoubleClick": {
"config": {
"script": "\ttagProps \u003d self.view.params.tagProps\n\tsystem.perspective.openPopup(\"StatusPopUP\", \"PopUp-Views/Controller-Equipment/Information\", params \u003d{\"tagProps\":tagProps})\n\t"
},
"enabled": false,
"scope": "G",
"type": "script"
},
"onMouseEnter": { "onMouseEnter": {
"config": { "config": {
"script": "\tfrom time import sleep\n\t\n\talarm \u003d []\n\tmessage \u003d None\n\t\n\tsleep(0.5)\n\t\n\tif system.tag.exists(\"System/aws_data\"):\n\t\tif self.view.params.tagProps[0] !\u003d \"\":\n\t\t\ttags_to_read \u003d system.tag.readBlocking(\"System/aws_data\")\n\t\t\tdecode_alarm_data \u003d system.util.jsonDecode(tags_to_read[0].value)\n\t\t\talarm \u003d [decode_alarm_data[i] for i in decode_alarm_data\n\t\t\t\t\tif decode_alarm_data[i][\u0027sourceId\u0027].startswith(self.view.params.tagProps[0])]\n\t\tif alarm:\n\t\t\talarm \u003d sorted(alarm, key \u003d lambda t:t[\u0027timestamp\u0027], reverse\u003dTrue)\n\t\t\tmessage \u003d max(alarm, key \u003d lambda p:p[\u0027priority\u0027]).get(\u0027message\u0027)\n\t\t\tif len(alarm) \u003e 1:\n\t\t\t\tmessage +\u003d \" (+\" + str(len(alarm)-1) + \")\"\n\tself.view.custom.alarm_message \u003d message" "script": "\tfrom time import sleep\n\t\n\talarm \u003d []\n\tmessage \u003d None\n\t\n\tsleep(0.5)\n\t\n\tif system.tag.exists(\"System/aws_data\"):\n\t\tif self.view.params.tagProps[0] !\u003d \"\":\n\t\t\ttags_to_read \u003d system.tag.readBlocking(\"System/aws_data\")\n\t\t\tdecode_alarm_data \u003d system.util.jsonDecode(tags_to_read[0].value)\n\t\t\talarm \u003d [decode_alarm_data[i] for i in decode_alarm_data\n\t\t\t\t\tif decode_alarm_data[i][\u0027sourceId\u0027].startswith(self.view.params.tagProps[0])]\n\t\tif alarm:\n\t\t\talarm \u003d sorted(alarm, key \u003d lambda t:t[\u0027timestamp\u0027], reverse\u003dTrue)\n\t\t\tmessage \u003d max(alarm, key \u003d lambda p:p[\u0027priority\u0027]).get(\u0027message\u0027)\n\t\t\tif len(alarm) \u003e 1:\n\t\t\t\tmessage +\u003d \" (+\" + str(len(alarm)-1) + \")\"\n\tself.view.custom.alarm_message \u003d message"
@ -327,7 +568,7 @@
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": 1, "input": "High",
"output": "Alarms-Styles/High" "output": "Alarms-Styles/High"
} }
], ],
@ -341,7 +582,7 @@
"meta.tooltip.text": { "meta.tooltip.text": {
"binding": { "binding": {
"config": { "config": {
"expression": "if(\n {view.custom.disconnected} \u003d false,\n \"Source Id: \" + {view.params.tagProps[0]} + \", Priority: \" + {view.custom.priority_string} + \", State: \" + {view.custom.state_string},\n \"Device Disconnected\"\n)\n" "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" "type": "expr"
} }

View File

@ -1,18 +1,13 @@
{ {
"custom": { "custom": {
"disconnected": true, "color": "#00FF00",
"plc": "value", "priority": "No Active Alarms",
"priority": 0, "state": "Normal"
"priority_string": "No active alarms",
"searchId": "PLC01",
"state": 0,
"state_string": "Normal"
}, },
"params": { "params": {
"forceFaultStatus": null, "forceFaultStatus": null,
"forceRunningStatus": null,
"tagProps": [ "tagProps": [
"value", "System/MCM01/Station/EPC/UL1_4_EPC1",
"value", "value",
"value", "value",
"value", "value",
@ -25,7 +20,7 @@
] ]
}, },
"propConfig": { "propConfig": {
"custom.disconnected": { "custom.color": {
"binding": { "binding": {
"config": { "config": {
"fallbackDelay": 2.5, "fallbackDelay": 2.5,
@ -34,85 +29,160 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Color"
}, },
"transforms": [ "transforms": [
{ {
"expression": "!isGood({value})", "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression" "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" "type": "tag"
}, },
"persistent": true "persistent": true
}, },
"custom.plc": {
"binding": {
"config": {
"path": "view.params.tagProps[0]"
},
"transforms": [
{
"expression": "split({value}, \"/\")[0]",
"type": "expression"
}
],
"type": "property"
},
"persistent": true
},
"custom.priority": { "custom.priority": {
"binding": { "binding": {
"config": { "config": {
"path": "view.custom.state" "fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Priority"
}, },
"transforms": [ "transforms": [
{ {
"fallback": 0, "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": null,
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": 1, "input": 0,
"output": 1 "output": "No Active Alarms"
} },
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
},
"persistent": true
},
"custom.priority_string": {
"binding": {
"config": {
"path": "view.custom.state"
},
"transforms": [
{
"fallback": "No active alarms",
"inputType": "scalar",
"mappings": [
{ {
"input": 1, "input": 1,
"output": "High" "output": "High"
},
{
"input": 2,
"output": "Medium"
},
{
"input": 3,
"output": "Low"
},
{
"input": 4,
"output": "Diagnostic"
} }
], ],
"outputType": "scalar", "outputType": "scalar",
"type": "map" "type": "map"
} }
], ],
"type": "property" "type": "tag"
},
"persistent": true
},
"custom.searchId": {
"binding": {
"config": {
"path": "session.custom.searchId"
},
"type": "property"
}, },
"persistent": true "persistent": true
}, },
@ -125,35 +195,226 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/State"
}, },
"transforms": [ "transforms": [
{ {
"expression": "coalesce({value},{view.params.forceFaultStatus},0)", "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression" "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" "type": "tag"
}, },
"persistent": true "persistent": true
}, },
"custom.state_string": {
"binding": {
"config": {
"expression": "case({view.custom.state},\r\n1, \"Actuated\",\r\n0, \"Normal\",\r\n\"Unknown\")"
},
"type": "expr"
},
"persistent": true
},
"params.forceFaultStatus": { "params.forceFaultStatus": {
"paramDirection": "input", "paramDirection": "input",
"persistent": true "persistent": true
}, },
"params.forceRunningStatus": {
"paramDirection": "input",
"persistent": true
},
"params.tagProps": { "params.tagProps": {
"paramDirection": "inout", "paramDirection": "inout",
"persistent": true "persistent": true
@ -175,21 +436,13 @@
"height": 1, "height": 1,
"width": 1 "width": 1
}, },
"propConfig": {
"props.elements[0].fill.paint": {
"binding": {
"config": {
"expression": "if(\r\n {view.custom.disconnected},\r\n \"#AAAAAA\",\r\n switch(\r\n toInt({view.custom.state}),\r\n 0, 1, \r\n \"#AAAAAA\", \"#FF0000\", \r\n \"#FFFF00\"\r\n )\r\n)\r\n"
},
"type": "expr"
}
}
},
"props": { "props": {
"elements": [ "elements": [
{ {
"d": "M 0.01621377,0.01595147 H 25.93719 V 41.138171 H 0.01621377 Z", "d": "M 0.01621377,0.01595147 H 25.93719 V 41.138171 H 0.01621377 Z",
"fill": {}, "fill": {
"paint": "#AAAAAA"
},
"name": "path", "name": "path",
"stroke": { "stroke": {
"paint": "#000000", "paint": "#000000",
@ -208,19 +461,11 @@
"dom": { "dom": {
"onClick": { "onClick": {
"config": { "config": {
"script": "\tsystem.perspective.openDock(\u0027Docked-East-BTN\u0027,params\u003d{\u0027tagProps\u0027:self.view.params.tagProps})" "script": "\tsystem.perspective.openDock(\u0027Docked-East-EPC\u0027,params\u003d{\u0027tagProps\u0027:self.view.params.tagProps})"
}, },
"scope": "G", "scope": "G",
"type": "script" "type": "script"
}, },
"onDoubleClick": {
"config": {
"script": "\ttagProps \u003d self.view.params.tagProps\n\tsystem.perspective.openPopup(\"StatusPopUP\", \"PopUp-Views/Controller-Equipment/Information\", params \u003d{\"tagProps\":tagProps})\n\t"
},
"enabled": false,
"scope": "G",
"type": "script"
},
"onMouseEnter": { "onMouseEnter": {
"config": { "config": {
"script": "\tfrom time import sleep\n\t\n\talarm \u003d []\n\tmessage \u003d None\n\t\n\tsleep(0.5)\n\t\n\tif system.tag.exists(\"System/aws_data\"):\n\t\tif self.view.params.tagProps[0] !\u003d \"\":\n\t\t\ttags_to_read \u003d system.tag.readBlocking(\"System/aws_data\")\n\t\t\tdecode_alarm_data \u003d system.util.jsonDecode(tags_to_read[0].value)\n\t\t\talarm \u003d [decode_alarm_data[i] for i in decode_alarm_data\n\t\t\t\t\tif decode_alarm_data[i][\u0027sourceId\u0027].startswith(self.view.params.tagProps[0])]\n\t\tif alarm:\n\t\t\talarm \u003d sorted(alarm, key \u003d lambda t:t[\u0027timestamp\u0027], reverse\u003dTrue)\n\t\t\tmessage \u003d max(alarm, key \u003d lambda p:p[\u0027priority\u0027]).get(\u0027message\u0027)\n\t\t\tif len(alarm) \u003e 1:\n\t\t\t\tmessage +\u003d \" (+\" + str(len(alarm)-1) + \")\"\n\tself.view.custom.alarm_message \u003d message" "script": "\tfrom time import sleep\n\t\n\talarm \u003d []\n\tmessage \u003d None\n\t\n\tsleep(0.5)\n\t\n\tif system.tag.exists(\"System/aws_data\"):\n\t\tif self.view.params.tagProps[0] !\u003d \"\":\n\t\t\ttags_to_read \u003d system.tag.readBlocking(\"System/aws_data\")\n\t\t\tdecode_alarm_data \u003d system.util.jsonDecode(tags_to_read[0].value)\n\t\t\talarm \u003d [decode_alarm_data[i] for i in decode_alarm_data\n\t\t\t\t\tif decode_alarm_data[i][\u0027sourceId\u0027].startswith(self.view.params.tagProps[0])]\n\t\tif alarm:\n\t\t\talarm \u003d sorted(alarm, key \u003d lambda t:t[\u0027timestamp\u0027], reverse\u003dTrue)\n\t\t\tmessage \u003d max(alarm, key \u003d lambda p:p[\u0027priority\u0027]).get(\u0027message\u0027)\n\t\t\tif len(alarm) \u003e 1:\n\t\t\t\tmessage +\u003d \" (+\" + str(len(alarm)-1) + \")\"\n\tself.view.custom.alarm_message \u003d message"
@ -250,7 +495,7 @@
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": 1, "input": "High",
"output": "Alarms-Styles/High" "output": "Alarms-Styles/High"
} }
], ],
@ -264,7 +509,7 @@
"meta.tooltip.text": { "meta.tooltip.text": {
"binding": { "binding": {
"config": { "config": {
"expression": "if(\n {view.custom.disconnected} \u003d false,\n \"Source Id: \" + {view.params.tagProps[0]} + \", Priority: \" + {view.custom.priority_string} + \", State: \" + {view.custom.state_string},\n \"Device Disconnected\"\n)\n" "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" "type": "expr"
} }

View File

@ -1,18 +1,13 @@
{ {
"custom": { "custom": {
"disconnected": true, "color": "#00FF00",
"plc": "value", "priority": "No Active Alarms",
"priority": 0, "state": "Normal"
"priority_string": "No active alarms",
"searchId": "PLC01",
"state": 0,
"state_string": "Normal"
}, },
"params": { "params": {
"forceFaultStatus": null, "forceFaultStatus": null,
"forceRunningStatus": null,
"tagProps": [ "tagProps": [
"value", "System/MCM01/Station/EPC/UL1_4_EPC1",
"value", "value",
"value", "value",
"value", "value",
@ -25,7 +20,7 @@
] ]
}, },
"propConfig": { "propConfig": {
"custom.disconnected": { "custom.color": {
"binding": { "binding": {
"config": { "config": {
"fallbackDelay": 2.5, "fallbackDelay": 2.5,
@ -34,85 +29,160 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Color"
}, },
"transforms": [ "transforms": [
{ {
"expression": "!isGood({value})", "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression" "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" "type": "tag"
}, },
"persistent": true "persistent": true
}, },
"custom.plc": {
"binding": {
"config": {
"path": "view.params.tagProps[0]"
},
"transforms": [
{
"expression": "split({value}, \"/\")[0]",
"type": "expression"
}
],
"type": "property"
},
"persistent": true
},
"custom.priority": { "custom.priority": {
"binding": { "binding": {
"config": { "config": {
"path": "view.custom.state" "fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Priority"
}, },
"transforms": [ "transforms": [
{ {
"fallback": 0, "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": null,
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": 1, "input": 0,
"output": 1 "output": "No Active Alarms"
} },
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
},
"persistent": true
},
"custom.priority_string": {
"binding": {
"config": {
"path": "view.custom.state"
},
"transforms": [
{
"fallback": "No active alarms",
"inputType": "scalar",
"mappings": [
{ {
"input": 1, "input": 1,
"output": "High" "output": "High"
},
{
"input": 2,
"output": "Medium"
},
{
"input": 3,
"output": "Low"
},
{
"input": 4,
"output": "Diagnostic"
} }
], ],
"outputType": "scalar", "outputType": "scalar",
"type": "map" "type": "map"
} }
], ],
"type": "property" "type": "tag"
},
"persistent": true
},
"custom.searchId": {
"binding": {
"config": {
"path": "session.custom.searchId"
},
"type": "property"
}, },
"persistent": true "persistent": true
}, },
@ -125,35 +195,226 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/State"
}, },
"transforms": [ "transforms": [
{ {
"expression": "coalesce({value},{view.params.forceFaultStatus},0)", "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression" "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" "type": "tag"
}, },
"persistent": true "persistent": true
}, },
"custom.state_string": {
"binding": {
"config": {
"expression": "case({view.custom.state},\r\n1, \"Actuated\",\r\n0, \"Normal\",\r\n\"Unknown\")"
},
"type": "expr"
},
"persistent": true
},
"params.forceFaultStatus": { "params.forceFaultStatus": {
"paramDirection": "input", "paramDirection": "input",
"persistent": true "persistent": true
}, },
"params.forceRunningStatus": {
"paramDirection": "input",
"persistent": true
},
"params.tagProps": { "params.tagProps": {
"paramDirection": "inout", "paramDirection": "inout",
"persistent": true "persistent": true
@ -179,7 +440,7 @@
"props.elements[0].stroke.paint": { "props.elements[0].stroke.paint": {
"binding": { "binding": {
"config": { "config": {
"expression": "if(\r\n {view.custom.disconnected},\r\n \"#000000\",\r\n switch(\r\n toInt({view.custom.state}),\r\n 0, 1, \r\n \"#00D900\", \"#FF0000\", \r\n \"#FFFF00\"\r\n )\r\n)\r\n" "expression": "if({view.custom.state} \u003d \"Closed\", \"#000000\", {view.custom.color})"
}, },
"type": "expr" "type": "expr"
} }
@ -222,19 +483,11 @@
"dom": { "dom": {
"onClick": { "onClick": {
"config": { "config": {
"script": "\tsystem.perspective.openDock(\u0027Docked-East-BTN\u0027,params\u003d{\u0027tagProps\u0027:self.view.params.tagProps})" "script": "\tsystem.perspective.openDock(\u0027Docked-East-EPC\u0027,params\u003d{\u0027tagProps\u0027:self.view.params.tagProps})"
}, },
"scope": "G", "scope": "G",
"type": "script" "type": "script"
}, },
"onDoubleClick": {
"config": {
"script": "\ttagProps \u003d self.view.params.tagProps\n\tsystem.perspective.openPopup(\"StatusPopUP\", \"PopUp-Views/Controller-Equipment/Information\", params \u003d{\"tagProps\":tagProps})\n\t"
},
"enabled": false,
"scope": "G",
"type": "script"
},
"onMouseEnter": { "onMouseEnter": {
"config": { "config": {
"script": "\tfrom time import sleep\n\t\n\talarm \u003d []\n\tmessage \u003d None\n\t\n\tsleep(0.5)\n\t\n\tif system.tag.exists(\"System/aws_data\"):\n\t\tif self.view.params.tagProps[0] !\u003d \"\":\n\t\t\ttags_to_read \u003d system.tag.readBlocking(\"System/aws_data\")\n\t\t\tdecode_alarm_data \u003d system.util.jsonDecode(tags_to_read[0].value)\n\t\t\talarm \u003d [decode_alarm_data[i] for i in decode_alarm_data\n\t\t\t\t\tif decode_alarm_data[i][\u0027sourceId\u0027].startswith(self.view.params.tagProps[0])]\n\t\tif alarm:\n\t\t\talarm \u003d sorted(alarm, key \u003d lambda t:t[\u0027timestamp\u0027], reverse\u003dTrue)\n\t\t\tmessage \u003d max(alarm, key \u003d lambda p:p[\u0027priority\u0027]).get(\u0027message\u0027)\n\t\t\tif len(alarm) \u003e 1:\n\t\t\t\tmessage +\u003d \" (+\" + str(len(alarm)-1) + \")\"\n\tself.view.custom.alarm_message \u003d message" "script": "\tfrom time import sleep\n\t\n\talarm \u003d []\n\tmessage \u003d None\n\t\n\tsleep(0.5)\n\t\n\tif system.tag.exists(\"System/aws_data\"):\n\t\tif self.view.params.tagProps[0] !\u003d \"\":\n\t\t\ttags_to_read \u003d system.tag.readBlocking(\"System/aws_data\")\n\t\t\tdecode_alarm_data \u003d system.util.jsonDecode(tags_to_read[0].value)\n\t\t\talarm \u003d [decode_alarm_data[i] for i in decode_alarm_data\n\t\t\t\t\tif decode_alarm_data[i][\u0027sourceId\u0027].startswith(self.view.params.tagProps[0])]\n\t\tif alarm:\n\t\t\talarm \u003d sorted(alarm, key \u003d lambda t:t[\u0027timestamp\u0027], reverse\u003dTrue)\n\t\t\tmessage \u003d max(alarm, key \u003d lambda p:p[\u0027priority\u0027]).get(\u0027message\u0027)\n\t\t\tif len(alarm) \u003e 1:\n\t\t\t\tmessage +\u003d \" (+\" + str(len(alarm)-1) + \")\"\n\tself.view.custom.alarm_message \u003d message"
@ -264,7 +517,7 @@
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": 1, "input": "High",
"output": "Alarms-Styles/High" "output": "Alarms-Styles/High"
} }
], ],
@ -278,7 +531,7 @@
"meta.tooltip.text": { "meta.tooltip.text": {
"binding": { "binding": {
"config": { "config": {
"expression": "if(\n {view.custom.disconnected} \u003d false,\n \"Source Id: \" + {view.params.tagProps[0]} + \", Priority: \" + {view.custom.priority_string} + \", State: \" + {view.custom.state_string},\n \"Device Disconnected\"\n)\n" "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" "type": "expr"
} }

View File

@ -1,24 +1,15 @@
{ {
"custom": { "custom": {
"alarm_message": null, "alarm_message": null,
"covert_mode": true, "color": "#90EE90",
"disconnected": true, "priority": "No Active Alarms",
"display_icon": true, "state": "Enabled Not Running"
"plc": "System",
"priority": 0,
"priority_string": "No Active Alarms",
"running": false,
"searchId": "PLC01",
"state": 0,
"state_string": "Off(Inactive)"
}, },
"params": { "params": {
"angle": 0, "angle": 0,
"directionLeft": false, "directionLeft": false,
"forceFaultStatus": null,
"forceRunningStatus": null,
"tagProps": [ "tagProps": [
"System/MCM01/Conveyor/UL1_3_VFD1", "System/MCM01/Conveyor/VFD/UL1_3_VFD1",
"value", "value",
"value", "value",
"value", "value",
@ -31,22 +22,7 @@
] ]
}, },
"propConfig": { "propConfig": {
"custom.covert_mode": { "custom.color": {
"binding": {
"config": {
"path": "view.custom.state"
},
"transforms": [
{
"expression": "case(\t{value},\r\n\t\t0, True,\r\n\t\t1, True,\r\n\t\t2, {session.custom.alarm_filter.show_running},\r\n\t\t3, {session.custom.alarm_filter.show_diagnostic} || {session.custom.alarm_filter.show_running},\r\n\t\t4, True,\r\n\t\t5, True,\r\n\t\t6, {session.custom.alarm_filter.show_diagnostic} || {session.custom.alarm_filter.show_running},\r\n\t\t7, True,\r\n\t\t8, True,\r\n\t\t9, True,\r\n\t\t13, True,\r\n\t\t14, True,\r\n\t\t61, True,\r\n 131, True,\t\r\n\t\tFalse )",
"type": "expression"
}
],
"type": "property"
},
"persistent": true
},
"custom.disconnected": {
"binding": { "binding": {
"config": { "config": {
"fallbackDelay": 2.5, "fallbackDelay": 2.5,
@ -55,121 +31,132 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Color"
}, },
"transforms": [ "transforms": [
{ {
"expression": "!isGood({value})", "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression" "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" "type": "tag"
}, },
"persistent": true "persistent": true
}, },
"custom.display_icon": {
"binding": {
"config": {
"expression": "{this.custom.covert_mode} \u003e 0"
},
"type": "expr"
},
"persistent": true
},
"custom.plc": {
"binding": {
"config": {
"path": "view.params.tagProps[0]"
},
"transforms": [
{
"expression": "split({value}, \"/\")[0]",
"type": "expression"
}
],
"type": "property"
},
"persistent": true
},
"custom.priority": { "custom.priority": {
"binding": { "binding": {
"config": { "config": {
"path": "view.custom.state" "fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Priority"
}, },
"transforms": [ "transforms": [
{ {
"fallback": 0, "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"inputType": "scalar", "type": "expression"
"mappings": [ },
{
"input": 0,
"output": 0
},
{
"input": 1,
"output": 0
},
{
"input": 2,
"output": 0
},
{
"input": 3,
"output": 4
},
{
"input": 4,
"output": 1
},
{
"input": 5,
"output": 3
},
{
"input": 6,
"output": 4
},
{
"input": 7,
"output": 1
},
{
"input": 8,
"output": 1
},
{
"input": 9,
"output": 1
},
{
"input": 13,
"output": 1
},
{
"input": 14,
"output": 2
},
{
"input": 61,
"output": 4
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
},
"persistent": true
},
"custom.priority_string": {
"binding": {
"config": {
"path": "view.custom.state"
},
"transforms": [
{ {
"fallback": "Unknown", "fallback": null,
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
@ -178,80 +165,26 @@
}, },
{ {
"input": 1, "input": 1,
"output": "No Active Alarms"
},
{
"input": 2,
"output": "No Active Alarms"
},
{
"input": 3,
"output": "Diagnostic"
},
{
"input": 4,
"output": "High" "output": "High"
}, },
{ {
"input": 5, "input": 2,
"output": "Medium"
},
{
"input": 3,
"output": "Low" "output": "Low"
}, },
{ {
"input": 6, "input": 4,
"output": "Diagnostic" "output": "Diagnostic"
},
{
"input": 7,
"output": "High"
},
{
"input": 8,
"output": "High"
},
{
"input": 9,
"output": "High"
},
{
"input": 13,
"output": "High"
},
{
"input": 14,
"output": "Medium"
},
{
"input": 61,
"output": "Diagnostic"
},
{
"input": 131,
"output": "Medium"
} }
], ],
"outputType": "scalar", "outputType": "scalar",
"type": "map" "type": "map"
} }
], ],
"type": "property" "type": "tag"
},
"persistent": true
},
"custom.running": {
"binding": {
"config": {
"expression": "{view.custom.state} \u003d 1"
},
"type": "expr"
},
"persistent": true
},
"custom.searchId": {
"binding": {
"config": {
"path": "session.custom.searchId"
},
"type": "property"
}, },
"persistent": true "persistent": true
}, },
@ -264,27 +197,222 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/State"
}, },
"transforms": [ "transforms": [
{ {
"expression": "coalesce({value},{view.params.forceFaultStatus},0)", "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression" "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" "type": "tag"
}, },
"persistent": true "persistent": true
}, },
"custom.state_string": {
"binding": {
"config": {
"expression": "case({view.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\n131, \"Disconnected\",\r\n\"Unknown\")"
},
"type": "expr"
},
"persistent": true
},
"params.angle": { "params.angle": {
"paramDirection": "input", "paramDirection": "input",
"persistent": true "persistent": true
@ -293,14 +421,6 @@
"paramDirection": "input", "paramDirection": "input",
"persistent": true "persistent": true
}, },
"params.forceFaultStatus": {
"paramDirection": "input",
"persistent": true
},
"params.forceRunningStatus": {
"paramDirection": "input",
"persistent": true
},
"params.tagProps": { "params.tagProps": {
"paramDirection": "inout", "paramDirection": "inout",
"persistent": true "persistent": true
@ -327,13 +447,14 @@
"config": { "config": {
"expression": "if(({view.custom.display_icon} || ({view.custom.show_running} \u0026\u0026 !{view.custom.show_error})) \u0026\u0026 !{view.params.directionLeft}, True, False)" "expression": "if(({view.custom.display_icon} || ({view.custom.show_running} \u0026\u0026 !{view.custom.show_error})) \u0026\u0026 !{view.params.directionLeft}, True, False)"
}, },
"enabled": false,
"type": "expr" "type": "expr"
} }
}, },
"props.elements[0].fill.paint": { "props.elements[0].fill.paint": {
"binding": { "binding": {
"config": { "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, 13, 14, 61, 131,\r\n \"#c2c2c2\", \"#c9fcc0\", \"#00ff11\", \"#00ffd0\", \"#ff8c00\",\r\n \"#0008ff\", \"#946446\", \"#ff0000\", \"#ff0000\", \"#ff0000\", \"#ff8c00\", \"#c2c2c2\", \"#B45C5C\", \"#c2c2c2\",\r\n \"#fff700\"\r\n )\r\n)\r\n" "expression": "if(\r\n {view.custom.state} \u003d \"Closed\",\r\n \"#000000\",\r\n {view.custom.color}\r\n)\r\n"
}, },
"type": "expr" "type": "expr"
} }
@ -438,19 +559,19 @@
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": 1, "input": "High",
"output": "Alarms-Styles/High" "output": "Alarms-Styles/High"
}, },
{ {
"input": 2, "input": "Medium",
"output": "Alarms-Styles/Medium" "output": "Alarms-Styles/Medium"
}, },
{ {
"input": 3, "input": "Low",
"output": "Alarms-Styles/Low" "output": "Alarms-Styles/Low"
}, },
{ {
"input": 4, "input": "Diagnostic",
"output": "Alarms-Styles/Diagnostic" "output": "Alarms-Styles/Diagnostic"
} }
], ],
@ -464,7 +585,7 @@
"meta.tooltip.text": { "meta.tooltip.text": {
"binding": { "binding": {
"config": { "config": {
"expression": "if(\n {view.custom.disconnected} \u003d false,\n \"Source Id: \" + {view.params.tagProps[0]} + \", Priority: \" + {view.custom.priority_string} + \", State: \" + {view.custom.state_string},\n \"Device Disconnected\"\n)\n" "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" "type": "expr"
} }
@ -472,7 +593,7 @@
"meta.visible": { "meta.visible": {
"binding": { "binding": {
"config": { "config": {
"path": "view.custom.display_icon" "path": "session.custom.alarm_filter.show_running"
}, },
"type": "property" "type": "property"
} }

View File

@ -1,20 +1,14 @@
{ {
"custom": { "custom": {
"disconnected": true, "color": "#90EE90",
"plc": "System", "priority": "No Active Alarms",
"priority": 0, "state": "Normal",
"priority_string": "Medium", "type": 3
"searchId": "PLC01",
"state": 0,
"state_string": "Disabled",
"type": 0
}, },
"params": { "params": {
"directionLeft": false, "directionLeft": false,
"forceFaultStatus": null,
"forceRunningStatus": null,
"tagProps": [ "tagProps": [
"System/D2C/D2C_Chute_1", "System/MCM04/Chute/FL_CHUTE/FL3012_1CH",
"value", "value",
"value", "value",
"value", "value",
@ -27,7 +21,7 @@
] ]
}, },
"propConfig": { "propConfig": {
"custom.disconnected": { "custom.color": {
"binding": { "binding": {
"config": { "config": {
"fallbackDelay": 2.5, "fallbackDelay": 2.5,
@ -36,61 +30,160 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Color"
}, },
"transforms": [ "transforms": [
{ {
"expression": "!isGood({value})", "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression" "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" "type": "tag"
}, },
"persistent": true "persistent": true
}, },
"custom.plc": {
"binding": {
"config": {
"path": "view.params.tagProps[0]"
},
"transforms": [
{
"expression": "split({value}, \"/\")[0]",
"type": "expression"
}
],
"type": "property"
},
"persistent": true
},
"custom.priority": { "custom.priority": {
"binding": { "binding": {
"config": { "config": {
"expression": "if(\r\n {view.custom.type} \u003d 0,\r\n case(\r\n if(\r\n {view.custom.state} \u003d 0 || {view.custom.state} \u003d 3,\r\n {view.custom.state},\r\n 0\r\n ),\r\n 0, 0,\r\n 3, 3,\r\n 0\r\n ),\r\n if(\r\n {view.custom.type} \u003d 1,\r\n case(\r\n if(\r\n {view.custom.state} \u003e\u003d 1 \u0026\u0026 {view.custom.state} \u003c\u003d 6,\r\n {view.custom.state},\r\n 0\r\n ),\r\n 0, 0,\r\n 1, 2,\r\n 2, 3,\r\n 3, 3,\r\n 4, 1,\r\n 5, 3,\r\n 6, 3,\r\n 0\r\n ),\r\n if(\r\n {view.custom.type} \u003d 2,\r\n case(\r\n if(\r\n {view.custom.state} \u003e\u003d 1 \u0026\u0026 {view.custom.state} \u003c\u003d 4,\r\n {view.custom.state},\r\n 0\r\n ),\r\n 0, 0,\r\n 1, 2,\r\n 2, 3,\r\n 3, 3,\r\n 4, 1,\r\n 0\r\n ),\r\n 0\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}/Priority"
}, },
"type": "expr" "transforms": [
}, {
"persistent": true "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
}, "type": "expression"
"custom.priority_string": { },
"binding": { {
"config": { "fallback": null,
"expression": "if(\r\n {view.custom.type} \u003d 0,\r\n case(\r\n {view.custom.state},\r\n 0, \u0027Medium\u0027,\r\n 3, \u0027Low\u0027,\r\n \u0027Unknown\u0027\r\n ),\r\n if(\r\n {view.custom.type} \u003d 1,\r\n case(\r\n {view.custom.state},\r\n 0, \u0027Medium\u0027,\r\n 1, \u0027Low\u0027,\r\n 2, \u0027Low\u0027,\r\n 3, \u0027No Active Alarms\u0027,\r\n 4, \u0027Low\u0027,\r\n 5, \u0027Low\u0027,\r\n 6, \u0027High\u0027,\r\n \u0027Unknown\u0027\r\n ),\r\n if(\r\n {view.custom.type} \u003d 2,\r\n case(\r\n {view.custom.state},\r\n 0, \u0027Medium\u0027,\r\n 1, \u0027No Active Alarms\u0027,\r\n 2, \u0027Low\u0027,\r\n 3, \u0027Low\u0027,\r\n 4, \u0027High\u0027,\r\n \u0027Unknown\u0027\r\n ),\r\n if(\r\n {view.custom.type} \u003d 3,\r\n case(\r\n {view.custom.state},\r\n 0, \u0027No Active Alarms\u0027,\r\n 1, \u0027Low\u0027,\r\n 2, \u0027High\u0027,\r\n \u0027Unknown\u0027\r\n ),\r\n \u0027Unknown\u0027\r\n )\r\n )\r\n )\r\n)\r\n" "inputType": "scalar",
}, "mappings": [
"type": "expr" {
}, "input": 0,
"onChange": { "output": "No Active Alarms"
"enabled": null, },
"script": "\tif self.custom.priority not in [1, 2, 3, 4, 5, 6, 0]:\n\t self.custom.priority_string \u003d \"Unknown\"" {
}, "input": 1,
"persistent": true "output": "High"
}, },
"custom.searchId": { {
"binding": { "input": 2,
"config": { "output": "Medium"
"path": "session.custom.searchId" },
}, {
"type": "property" "input": 3,
"output": "Low"
},
{
"input": 4,
"output": "Diagnostic"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "tag"
}, },
"persistent": true "persistent": true
}, },
@ -103,27 +196,222 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/State"
}, },
"transforms": [ "transforms": [
{ {
"expression": "coalesce({value},{view.params.forceFaultStatus},0)", "expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression" "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" "type": "tag"
}, },
"persistent": true "persistent": true
}, },
"custom.state_string": {
"binding": {
"config": {
"expression": "if(\r\n {view.custom.type} \u003d 0,\r\n case(\r\n {view.custom.state},\r\n 0, \u0027Disabled\u0027,\r\n 3, \u0027Full\u0027,\r\n \u0027Unknown\u0027\r\n ),\r\n if(\r\n {view.custom.type} \u003d 1,\r\n case(\r\n {view.custom.state},\r\n 0, \u0027Disabled\u0027,\r\n 1, \u0027No Container\u0027,\r\n 2, \u0027Ready To Be Enabled\u0027,\r\n 3, \u0027Enabled\u0027,\r\n 4, \u0027Half Full\u0027,\r\n 5, \u0027Full\u0027,\r\n 6, \u0027Jammed\u0027,\r\n \u0027Unknown\u0027\r\n ),\r\n if(\r\n {view.custom.type} \u003d 2,\r\n case(\r\n {view.custom.state},\r\n 0, \u0027Disabled\u0027,\r\n 1, \u0027Enabled\u0027,\r\n 2, \u0027Half Full\u0027,\r\n 3, \u0027Full\u0027,\r\n 4, \u0027Jammed\u0027,\r\n \u0027Unknown\u0027\r\n ),\r\n if(\r\n {view.custom.type} \u003d 3,\r\n case(\r\n {view.custom.state},\r\n 0, \u0027Enabled\u0027,\r\n 1, \u0027Full\u0027,\r\n 2, \u0027Jammed\u0027,\r\n \u0027Unknown\u0027\r\n ),\r\n \u0027Unknown\u0027\r\n )\r\n )\r\n )\r\n)\r\n"
},
"type": "expr"
},
"persistent": true
},
"custom.type": { "custom.type": {
"binding": { "binding": {
"config": { "config": {
@ -149,14 +437,6 @@
"paramDirection": "input", "paramDirection": "input",
"persistent": true "persistent": true
}, },
"params.forceFaultStatus": {
"paramDirection": "input",
"persistent": true
},
"params.forceRunningStatus": {
"paramDirection": "input",
"persistent": true
},
"params.tagProps": { "params.tagProps": {
"paramDirection": "inout", "paramDirection": "inout",
"persistent": true "persistent": true
@ -195,7 +475,7 @@
"props.elements[0].fill.paint": { "props.elements[0].fill.paint": {
"binding": { "binding": {
"config": { "config": {
"expression": "if(\r\n {view.custom.disconnected},\r\n \"#FFFFFF\",\r\n if(\r\n {view.custom.type} \u003d 0,\r\n case(\r\n {view.custom.state},\r\n 0, \u0027#c2c2c2\u0027,\r\n 3, \u0027#0000FF\u0027,\r\n \u0027#fff700\u0027\r\n ),\r\n if( \r\n {view.custom.type} \u003d 1,\r\n case(\r\n {view.custom.state},\r\n 1, \u0027#FF4487\u0027,\r\n 2, \u0027#92FF00\u0027,\r\n 3, \u0027#CCFFCC\u0027,\r\n 4, \u0027#FFFF00\u0027,\r\n 5, \u0027#0000FF\u0027,\r\n 6, \u0027#FF8C00\u0027,\r\n \u0027#fff700\u0027\r\n ),\r\n if(\r\n {view.custom.type} \u003d 2,\r\n case(\r\n {view.custom.state},\r\n 0, \u0027#c2c2c2\u0027,\r\n 1, \u0027#CCFFCC\u0027,\r\n 2, \u0027#FFFF00\u0027,\r\n 3, \u0027#0000FF\u0027,\r\n 4, \u0027#FF8C00\u0027,\r\n \u0027#FFFFFF\u0027\r\n ),\r\n if(\r\n {view.custom.type} \u003d 3, \r\n case(\r\n {view.custom.state},\r\n 0, \u0027#CCFFCC\u0027,\r\n 1, \u0027#0000FF\u0027,\r\n 2, \u0027#FF8C00\u0027,\r\n \u0027#FFFFFF\u0027\r\n ),\r\n \u0027#fff700\u0027\r\n )\r\n )\r\n )\r\n )\r\n)\r\n" "expression": "if(\r\n {view.custom.state} \u003d \"Closed\",\r\n \"#FFFFFF\",\r\n {view.custom.color}\r\n)\r\n"
}, },
"type": "expr" "type": "expr"
} }
@ -260,19 +540,19 @@
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": 1, "input": "High",
"output": "Alarms-Styles/High" "output": "Alarms-Styles/High"
}, },
{ {
"input": 2, "input": "Medium",
"output": "Alarms-Styles/Medium" "output": "Alarms-Styles/Medium"
}, },
{ {
"input": 3, "input": "Low",
"output": "Alarms-Styles/Low" "output": "Alarms-Styles/Low"
}, },
{ {
"input": 4, "input": "Diagnostic",
"output": "Alarms-Styles/Diagnostic" "output": "Alarms-Styles/Diagnostic"
} }
], ],
@ -286,7 +566,7 @@
"meta.tooltip.text": { "meta.tooltip.text": {
"binding": { "binding": {
"config": { "config": {
"expression": "if(\n {view.custom.disconnected} \u003d false,\n \"Source Id: \" + {view.params.tagProps[0]} + \", Priority: \" + {view.custom.priority_string} + \", State: \" + {view.custom.state_string},\n \"Device Disconnected\"\n)\n" "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" "type": "expr"
} }

View File

@ -80,7 +80,7 @@ def reset_highlights(self):
# 2. Close popup and docks # 2. Close popup and docks
system.perspective.closePopup(id="TagSearch") system.perspective.closePopup(id="TagSearch")
for dock_id in ["Docked-East-VFD", "Docked-East-MCM", "Docked-East-SNP"]: for dock_id in ["Docked-East-VFD", "Docked-East-MCM", "Docked-East-SNP", "Docked-East-EPC", "Docked-East-DS", "Docked-East-Extendo", "Docked-East-BTN", "Docked-East-SS-BTN"]:
system.perspective.closeDock(dock_id) system.perspective.closeDock(dock_id)
# 3. Trigger CLEAR state via navigate to same view # 3. Trigger CLEAR state via navigate to same view

File diff suppressed because it is too large Load Diff

View File

@ -1,572 +0,0 @@
{
"name": "",
"tagType": "Provider",
"tags": [
{
"name": "System",
"tagType": "Folder",
"tags": [
{
"valueSource": "memory",
"dataType": "String",
"name": "device_count",
"value": "{}",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "String",
"name": "download",
"value": "",
"tagType": "AtomicTag"
},
{
"name": "Station",
"tagType": "Folder",
"tags": [
{
"name": "Buttons",
"tagType": "Folder",
"tags": [
{
"name": "UL1_3_JR_PB1",
"typeId": "Station",
"tagType": "UdtInstance",
"tags": [
{
"name": "STATE",
"tagType": "AtomicTag"
},
{
"name": "Maintenance",
"tagType": "Folder",
"tags": [
{
"name": "Start_PB",
"tagType": "AtomicTag"
},
{
"name": "Stop_PB",
"tagType": "AtomicTag"
}
]
},
{
"name": "Alarm",
"tagType": "Folder",
"tags": [
{
"name": "Estopped",
"tagType": "AtomicTag"
},
{
"name": "Stopped",
"tagType": "AtomicTag"
},
{
"alarms": [
{
"setpointA": 1.0,
"name": "Pressed"
}
],
"tagGroup": "Alarm",
"name": "Pressed",
"tagType": "AtomicTag"
}
]
}
]
},
{
"name": "UL1_3_JR_PB2",
"typeId": "Station",
"tagType": "UdtInstance",
"tags": [
{
"name": "Alarm",
"tagType": "Folder",
"tags": [
{
"name": "Estopped",
"tagType": "AtomicTag"
},
{
"alarms": [
{
"setpointA": 1.0,
"name": "Pressed"
}
],
"tagGroup": "Alarm",
"name": "Pressed",
"tagType": "AtomicTag"
},
{
"name": "Stopped",
"tagType": "AtomicTag"
}
]
},
{
"name": "Maintenance",
"tagType": "Folder",
"tags": [
{
"name": "Start_PB",
"tagType": "AtomicTag"
},
{
"name": "Stop_PB",
"tagType": "AtomicTag"
}
]
},
{
"name": "STATE",
"tagType": "AtomicTag"
}
]
}
]
},
{
"name": "EPC",
"tagType": "Folder",
"tags": [
{
"name": "UL1_3_EPC2",
"typeId": "Station",
"tagType": "UdtInstance",
"tags": [
{
"name": "Alarm",
"tagType": "Folder",
"tags": [
{
"name": "Stopped",
"tagType": "AtomicTag"
},
{
"name": "Estopped",
"tagType": "AtomicTag"
},
{
"name": "Pressed",
"tagType": "AtomicTag"
}
]
},
{
"name": "STATE",
"tagType": "AtomicTag"
},
{
"name": "Maintenance",
"tagType": "Folder",
"tags": [
{
"name": "Start_PB",
"tagType": "AtomicTag"
},
{
"name": "Stop_PB",
"tagType": "AtomicTag"
}
]
}
]
},
{
"name": "UL1_3_EPC1",
"typeId": "Station",
"tagType": "UdtInstance",
"tags": [
{
"name": "STATE",
"tagType": "AtomicTag"
},
{
"name": "Alarm",
"tagType": "Folder",
"tags": [
{
"name": "Pressed",
"tagType": "AtomicTag"
},
{
"name": "Estopped",
"tagType": "AtomicTag"
},
{
"name": "Stopped",
"tagType": "AtomicTag"
}
]
},
{
"name": "Maintenance",
"tagType": "Folder",
"tags": [
{
"name": "Stop_PB",
"tagType": "AtomicTag"
},
{
"name": "Start_PB",
"tagType": "AtomicTag"
}
]
}
]
}
]
}
]
},
{
"valueSource": "memory",
"dataType": "Boolean",
"name": "close_socket",
"value": true,
"tagType": "AtomicTag"
},
{
"name": "Conveyor",
"tagType": "Folder",
"tags": [
{
"name": "UL1_3_VFD1",
"typeId": "TagProp",
"tagType": "UdtInstance",
"tags": [
{
"name": "ALARMST",
"tagType": "AtomicTag"
},
{
"value": 3,
"name": "STATE",
"tagType": "AtomicTag"
},
{
"name": "DCN",
"tagType": "AtomicTag"
}
]
}
]
},
{
"valueSource": "memory",
"dataType": "String",
"name": "IdToStatus",
"value": "{}",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "Boolean",
"name": "wbsckt_running",
"value": true,
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "Boolean",
"name": "wbsckt_logging",
"value": false,
"tagGroup": "Default",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "String",
"name": "thread_id",
"value": "5610",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "DateTime",
"name": "wbsckt_heartbeat_interval",
"value": 1749560917384,
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "String",
"name": "aws_data",
"value": "{}",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "String",
"name": "wbsckt_messages_send",
"value": "{\"message_list\":[]}",
"tagType": "AtomicTag"
}
]
},
{
"name": "Configuration",
"tagType": "Folder",
"tags": [
{
"valueSource": "memory",
"dataType": "String",
"name": "BACKEND_EDGE_DEVICE",
"value": "quattro",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "String",
"name": "PLC",
"value": "{ \"MCM07\": { \"Area\": \"Bypass\", \"SubArea\": \"\" }, \t\"MCM06\": { \"Area\": \"Non Con Sorters\", \"SubArea\": \"\" }, \t\"MCM05\": { \"Area\": \"North Bulk Inbound, Fluid Outbound and Problem Solve\", \"SubArea\": \"\" }, \t\"MCM04\": { \"Area\": \"South Bulk Inbound, Fluid Outbound and Problem Solve\", \"SubArea\": \"\" }, \t\"MCM03\": { \"Area\": \"Non Con Merge\", \"SubArea\": \"\" }, \t\"MCM02\": { \"Area\": \"Fluid Inbound Merges 5-7\", \"SubArea\": \"\" }, \t\"MCM01\": { \"Area\": \"Fluid Inbound Merges 1-4\", \"SubArea\": \"\" } }",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "String",
"name": "aws",
"value": "{\"prefix\":\"na\",\"region\":\"us-east-1\"}",
"tagType": "AtomicTag"
},
{
"valueSource": "reference",
"dataType": "String",
"sourceTagPath": "[System]Gateway/SystemName",
"name": "SystemName",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "String",
"name": "SiteLatLng",
"value": "{\"lat\":40.19567891533845, \"lng\":-74.56542081870408}",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "String",
"name": "FC",
"alarmEvalEnabled": false,
"value": "MTN6_SIMULATION",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "String",
"name": "DetailedViews",
"value": "{ \"MCM07 Bypass\": [ \"MCM07\" ], \t\"MCM06 Non Con\": [ \"MCM06\" ],\t \t\"MCM05 South Bulk Inbound, Fluid Outbound and Problem Solve\": [ \"MCM05\" ],\t \t\"MCM04 North Bulk Inbound, Fluid Outbound and Problem Solve\": [ \"MCM04\" ], \t\"MCM03 Non Con\": [ \"MCM03\" ], \t\"MCM02 Fluid Inbound Merges 5-7\": [ \"MCM02\" ], \t\"MCM01 Fluid Inbound Merges 1-4\": [ \"MCM01\" ]}",
"tagType": "AtomicTag"
}
]
},
{
"name": "_types_",
"tagType": "Folder",
"tags": [
{
"name": "TagProp",
"tagType": "UdtType",
"tags": [
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.STATE"
},
"valueSource": "opc",
"name": "STATE",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.ALARMST"
},
"valueSource": "opc",
"name": "ALARMST",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.DISC"
},
"valueSource": "opc",
"name": "DCN",
"tagType": "AtomicTag",
"opcServer": "PLC"
}
]
},
{
"name": "Station",
"tagType": "UdtType",
"tags": [
{
"name": "Maintenance",
"tagType": "Folder",
"tags": [
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Maintenance.Start_PB"
},
"valueSource": "opc",
"name": "Start_PB",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Maintenance.Stop_PB"
},
"valueSource": "opc",
"name": "Stop_PB",
"tagType": "AtomicTag",
"opcServer": "PLC"
}
]
},
{
"name": "Alarm",
"tagType": "Folder",
"tags": [
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.Pressed"
},
"valueSource": "opc",
"dataType": "Boolean",
"name": "Pressed",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.Stopped"
},
"valueSource": "opc",
"dataType": "Boolean",
"name": "Stopped",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.EStopped"
},
"valueSource": "opc",
"dataType": "Boolean",
"name": "Estopped",
"tagType": "AtomicTag",
"opcServer": "PLC"
}
]
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.STATE"
},
"valueSource": "opc",
"name": "STATE",
"tagType": "AtomicTag",
"opcServer": "PLC"
}
]
}
]
},
{
"name": "Latency",
"tagType": "Folder",
"tags": [
{
"valueSource": "memory",
"dataType": "String",
"name": "avg_latency",
"value": "",
"tagType": "AtomicTag"
},
{
"valueSource": "reference",
"dataType": "String",
"sourceTagPath": "[~]System/aws_data.value",
"name": "aws_data_copy",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "Boolean",
"name": "first_pass",
"value": true,
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "DateTime",
"name": "last_alarm_change_ts",
"formatString": "yyyy-MM-dd h:mm:ss aa",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "String",
"name": "prev_key",
"value": "",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "StringArray",
"name": "rolling_latency",
"alarmEvalEnabled": true,
"value": [
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0"
],
"tagType": "AtomicTag"
}
]
}
]
}

View File

@ -1,490 +0,0 @@
{
"name": "_types_",
"tagType": "Folder",
"tags": [
{
"name": "Station Chute",
"tagType": "UdtType",
"tags": [
{
"name": "Maintenance",
"tagType": "Folder",
"tags": [
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Maintenance.Start_PB"
},
"valueSource": "opc",
"name": "Start_PB",
"tagType": "AtomicTag",
"opcServer": "PLC"
}
]
},
{
"name": "Alarm",
"tagType": "Folder",
"tags": [
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.Pressed"
},
"valueSource": "opc",
"dataType": "Boolean",
"name": "Pressed",
"tagType": "AtomicTag",
"opcServer": "PLC"
}
]
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.STATE"
},
"valueSource": "opc",
"name": "STATE",
"tagType": "AtomicTag",
"opcServer": "PLC"
}
]
},
{
"name": "Chute",
"tagType": "UdtType",
"tags": [
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.STATE"
},
"valueSource": "opc",
"name": "STATE",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"name": "Alarm",
"tagType": "Folder",
"tags": [
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarms.Disabled"
},
"valueSource": "opc",
"alarms": [
{
"setpointA": 1.0,
"notes": "Conveyor is Disabled",
"name": "Disabled",
"priority": "Medium"
}
],
"name": "Disabled",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarms.PKGREL_PB_Pressed"
},
"valueSource": "opc",
"name": "PKGREL_PB_Pressed",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarms.Full"
},
"valueSource": "opc",
"alarms": [
{
"setpointA": 1.0,
"notes": "Conveyor is Full",
"name": "Full",
"priority": "High"
}
],
"name": "Full",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarms.Half_Full"
},
"valueSource": "opc",
"alarms": [
{
"setpointA": 1.0,
"notes": "Conveyor is Half Full",
"name": "Half Full",
"priority": "High"
}
],
"name": "Half_Full",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarms.Jam"
},
"valueSource": "opc",
"alarms": [
{
"setpointA": 1.0,
"notes": "Conveyor is Jammed",
"name": "Jammed",
"label": "",
"displayPath": "",
"priority": "High"
}
],
"name": "Jam",
"tagType": "AtomicTag",
"opcServer": "PLC"
}
]
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Enable_Chute_Pressed"
},
"valueSource": "opc",
"name": "Enable_Chute_Pressed",
"tagType": "AtomicTag",
"opcServer": "PLC"
}
]
},
{
"name": "TagProp",
"tagType": "UdtType",
"tags": [
{
"opcItemPath": {
"bindType": "parameter",
"binding": "{InstanceName}.Disconnected"
},
"valueSource": "opc",
"name": "Disconnected",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.ALARMST"
},
"valueSource": "opc",
"name": "ALARMST",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.STATE"
},
"valueSource": "opc",
"name": "STATE",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.DISC"
},
"valueSource": "opc",
"name": "DCN",
"tagType": "AtomicTag",
"opcServer": "PLC"
}
]
},
{
"name": "PE",
"tagType": "UdtType",
"tags": [
{
"valueSource": "memory",
"name": "TimeOut",
"tagType": "AtomicTag"
},
{
"name": "Alarm",
"tagType": "Folder",
"tags": [
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.Full"
},
"valueSource": "opc",
"dataType": "Boolean",
"name": "Full",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"valueSource": "memory",
"dataType": "Boolean",
"name": "Jammed",
"tagType": "AtomicTag"
}
]
}
]
},
{
"name": "Conveyor",
"tagType": "UdtType",
"tags": [
{
"name": "Maintenance",
"tagType": "Folder",
"tags": [
{
"valueSource": "memory",
"dataType": "Boolean",
"name": "Maintenance_Mode",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "Boolean",
"name": "Direction",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "Boolean",
"name": "Direction_PB_Pressed",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "Boolean",
"name": "Stop_LT",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "Boolean",
"name": "Jog_PB_Pressed",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "Boolean",
"name": "Stop_PB_Pressed",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "Boolean",
"name": "Start_PB_Pressed",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "Boolean",
"name": "Run_LT",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "Boolean",
"name": "Speed_FPM",
"tagType": "AtomicTag"
}
]
},
{
"name": "Alarms",
"tagType": "Folder",
"tags": [
{
"valueSource": "memory",
"dataType": "Boolean",
"name": "Disconnected",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "Boolean",
"name": "VFD_Fault",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "Boolean",
"name": "Communication_Fault",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "Boolean",
"name": "VFD_Reset_Required",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "Boolean",
"name": "Communication_Fault_Reset_Required",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "Boolean",
"name": "Safe_Off_Fault",
"tagType": "AtomicTag"
}
]
},
{
"valueSource": "memory",
"name": "FPM",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"name": "Last_VFD_Fault_Code",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"name": "STATE",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"name": "Voltage",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"name": "Amperage",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"name": "Communication_Fault_Code",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"name": "VFD_Fault_Code",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"name": "Frequenncy",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"name": "Power_Save_Time",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"name": "Speed_At_60Hz",
"tagType": "AtomicTag"
}
]
},
{
"name": "Station",
"tagType": "UdtType",
"tags": [
{
"name": "Alarm",
"tagType": "Folder",
"tags": [
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.Pressed"
},
"valueSource": "opc",
"dataType": "Boolean",
"name": "Pressed",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.Stopped"
},
"valueSource": "opc",
"dataType": "Boolean",
"name": "Stopped",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.EStopped"
},
"valueSource": "opc",
"dataType": "Boolean",
"name": "Estopped",
"tagType": "AtomicTag",
"opcServer": "PLC"
}
]
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.STATE"
},
"valueSource": "opc",
"name": "STATE",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"name": "Maintenance",
"tagType": "Folder",
"tags": [
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Maintenance.Start_PB"
},
"valueSource": "opc",
"name": "Start_PB",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Maintenance.Stop_PB"
},
"valueSource": "opc",
"name": "Stop_PB",
"tagType": "AtomicTag",
"opcServer": "PLC"
}
]
}
]
}
]
}

View File

@ -1,932 +0,0 @@
{
"name": "",
"tagType": "Provider",
"tags": [
{
"name": "Latency",
"tagType": "Folder",
"tags": [
{
"valueSource": "memory",
"dataType": "StringArray",
"name": "rolling_latency",
"alarmEvalEnabled": true,
"value": [
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0"
],
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "Boolean",
"name": "first_pass",
"value": true,
"tagType": "AtomicTag"
},
{
"valueSource": "reference",
"dataType": "String",
"sourceTagPath": "[~]System/aws_data.value",
"name": "aws_data_copy",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "String",
"name": "prev_key",
"value": "",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "DateTime",
"name": "last_alarm_change_ts",
"formatString": "yyyy-MM-dd h:mm:ss aa",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "String",
"name": "avg_latency",
"value": "",
"tagType": "AtomicTag"
}
]
},
{
"name": "Configuration",
"tagType": "Folder",
"tags": [
{
"valueSource": "memory",
"dataType": "String",
"name": "SiteLatLng",
"value": "{\"lat\":40.19567891533845, \"lng\":-74.56542081870408}",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "String",
"name": "PLC",
"value": "{ \"MCM07\": { \"Area\": \"Bypass\", \"SubArea\": \"\" }, \t\"MCM06\": { \"Area\": \"Non Con Sorters\", \"SubArea\": \"\" }, \t\"MCM05\": { \"Area\": \"North Bulk Inbound, Fluid Outbound and Problem Solve\", \"SubArea\": \"\" }, \t\"MCM04\": { \"Area\": \"South Bulk Inbound, Fluid Outbound and Problem Solve\", \"SubArea\": \"\" }, \t\"MCM03\": { \"Area\": \"Non Con Merge\", \"SubArea\": \"\" }, \t\"MCM02\": { \"Area\": \"Fluid Inbound Merges 5-7\", \"SubArea\": \"\" }, \t\"MCM01\": { \"Area\": \"Fluid Inbound Merges 1-4\", \"SubArea\": \"\" } }",
"tagType": "AtomicTag"
},
{
"valueSource": "reference",
"dataType": "String",
"sourceTagPath": "[System]Gateway/SystemName",
"name": "SystemName",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "String",
"name": "aws",
"value": "{\"prefix\":\"na\",\"region\":\"us-east-1\"}",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "String",
"name": "FC",
"alarmEvalEnabled": false,
"value": "MTN6_SIMULATION",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "String",
"name": "DetailedViews",
"value": "{ \"MCM07 Bypass\": [ \"MCM07\" ], \t\"MCM06 Non Con\": [ \"MCM06\" ],\t \t\"MCM05 South Bulk Inbound, Fluid Outbound and Problem Solve\": [ \"MCM05\" ],\t \t\"MCM04 North Bulk Inbound, Fluid Outbound and Problem Solve\": [ \"MCM04\" ], \t\"MCM03 Non Con\": [ \"MCM03\" ], \t\"MCM02 Fluid Inbound Merges 5-7\": [ \"MCM02\" ], \t\"MCM01 Fluid Inbound Merges 1-4\": [ \"MCM01\" ]}",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "String",
"name": "BACKEND_EDGE_DEVICE",
"value": "quattro",
"tagType": "AtomicTag"
}
]
},
{
"name": "_types_",
"tagType": "Folder",
"tags": [
{
"name": "Conveyor",
"tagType": "Folder",
"tags": [
{
"name": "VFD",
"tagType": "UdtType",
"tags": [
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Voltage"
},
"valueSource": "opc",
"name": "Voltage",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.VFD_Fault_Code"
},
"valueSource": "opc",
"name": "VFD_Fault_Code",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.VFD_Type"
},
"valueSource": "opc",
"dataType": "Int4",
"name": "VFD_Type",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"name": "Alarms",
"tagType": "Folder",
"tags": [
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.Communication_Fault"
},
"valueSource": "opc",
"dataType": "Boolean",
"name": "Communication_Fault",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.Disconnected"
},
"valueSource": "opc",
"dataType": "Boolean",
"name": "Disconnected",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.VFD_Fault"
},
"valueSource": "opc",
"dataType": "Boolean",
"name": "VFD_Fault",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.Communication_Fault_Reset_Required"
},
"valueSource": "opc",
"dataType": "Boolean",
"name": "Communication_Fault_Reset_Required",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.VFD_Fault_Code"
},
"valueSource": "opc",
"dataType": "Boolean",
"name": "VFD_Reset_Required",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.Safe_Off_Fault"
},
"valueSource": "opc",
"dataType": "Boolean",
"name": "Safe_Off_Fault",
"tagType": "AtomicTag",
"opcServer": "PLC"
}
]
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Speed_At_60Hz"
},
"valueSource": "opc",
"name": "Speed_At_60Hz",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Amperage"
},
"valueSource": "opc",
"name": "Amperage",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.STATE"
},
"valueSource": "opc",
"name": "STATE",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Communication_Fault_Code"
},
"valueSource": "opc",
"name": "Communication_Fault_Code",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Frequency"
},
"valueSource": "opc",
"name": "Frequenncy",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.FPM"
},
"valueSource": "opc",
"name": "FPM",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Last_VFD_Fault_Code"
},
"valueSource": "opc",
"name": "Last_VFD_Fault_Code",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"name": "Maintenance",
"tagType": "Folder",
"tags": [
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Maintenance.Start_PB_Pressed"
},
"valueSource": "opc",
"dataType": "Boolean",
"name": "Start_PB_Pressed",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Maintenance.Maintenance_Mode"
},
"valueSource": "opc",
"dataType": "Boolean",
"name": "Maintenance_Mode",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Maintenance.Speed_FPM"
},
"valueSource": "opc",
"dataType": "Int4",
"name": "Speed_FPM",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Maintenance.Stop_PB_Pressed"
},
"valueSource": "opc",
"dataType": "Boolean",
"name": "Stop_PB_Pressed",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Maintenance.Direction_PB_Pressed"
},
"valueSource": "opc",
"dataType": "Boolean",
"name": "Direction_PB_Pressed",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Maintenance.Jog_PB_Pressed"
},
"valueSource": "opc",
"dataType": "Boolean",
"name": "Jog_PB_Pressed",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Maintenance.Direction"
},
"valueSource": "opc",
"dataType": "Boolean",
"name": "Direction",
"tagType": "AtomicTag",
"opcServer": "PLC"
}
]
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Cycle_Time_Factor"
},
"valueSource": "opc",
"name": "Cycle_Time_Factor",
"tagType": "AtomicTag",
"opcServer": "PLC"
}
]
},
{
"name": "APF",
"tagType": "UdtType",
"tags": [
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Speed_At_30rev"
},
"valueSource": "opc",
"name": "Speed_At_30rev",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Voltage"
},
"valueSource": "opc",
"name": "Voltage",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Communication_Fault_Code"
},
"valueSource": "opc",
"name": "Communication_Fault_Code",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.FPM"
},
"valueSource": "opc",
"name": "FPM",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Cycle_Time_Factor"
},
"valueSource": "opc",
"name": "Cycle_Time_Factor",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"name": "Alarms",
"tagType": "Folder",
"tags": [
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.Disconnected"
},
"valueSource": "opc",
"dataType": "Boolean",
"alarms": [
{
"setpointA": 1.0,
"name": "Disconnected",
"priority": "Medium"
}
],
"name": "Disconnected",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.Communication_Fault_Reset_Required"
},
"valueSource": "opc",
"dataType": "Boolean",
"alarms": [
{
"setpointA": 1.0,
"name": "Communication Fault Reset Required",
"priority": "Diagnostic"
}
],
"name": "Communication_Fault_Reset_Required",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.VFD_Fault"
},
"valueSource": "opc",
"dataType": "Boolean",
"alarms": [
{
"setpointA": 1.0,
"name": "VFD Fault",
"priority": "High"
}
],
"name": "VFD_Fault",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.Communication_Fault"
},
"valueSource": "opc",
"dataType": "Boolean",
"alarms": [
{
"setpointA": 1.0,
"name": "Communication Fault",
"priority": "High"
}
],
"name": "Communication_Fault",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.VFD_Reset_Required"
},
"valueSource": "opc",
"dataType": "Boolean",
"alarms": [
{
"setpointA": 1.0,
"name": "VFD Reset Required",
"priority": "Diagnostic"
}
],
"name": "VFD_Reset_Required",
"tagType": "AtomicTag",
"opcServer": "PLC"
}
]
},
{
"name": "Maintenance",
"tagType": "Folder",
"tags": [
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Maintenance.Direction_PB_Pressed"
},
"valueSource": "opc",
"dataType": "Boolean",
"name": "Direction_PB_Pressed",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Maintenance.Maintenance_Mode"
},
"valueSource": "opc",
"dataType": "Boolean",
"alarms": [
{
"setpointA": 1.0,
"name": "Maintenance Mode",
"priority": "Diagnostic"
}
],
"name": "Maintenance_Mode",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Maintenance.Stop_PB_Pressed"
},
"valueSource": "opc",
"dataType": "Boolean",
"name": "Stop_PB_Pressed",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Maintenance.Start_PB_Pressed"
},
"valueSource": "opc",
"dataType": "Boolean",
"name": "Start_PB_Pressed",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Maintenance.Direction"
},
"valueSource": "opc",
"dataType": "Boolean",
"name": "Direction",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Maintenance.Jog_PB_Pressed"
},
"valueSource": "opc",
"dataType": "Boolean",
"name": "Jog_PB_Pressed",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Maintenance.Speed_FPM"
},
"valueSource": "opc",
"dataType": "Int4",
"name": "Speed_FPM",
"tagType": "AtomicTag",
"opcServer": "PLC"
}
]
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Amperage"
},
"valueSource": "opc",
"name": "Amperage",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Velocity"
},
"valueSource": "opc",
"name": "Velocity",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.VFD_Fault_Code"
},
"valueSource": "opc",
"name": "VFD_Fault_Code",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Last_VFD_Fault_Code"
},
"valueSource": "opc",
"name": "Last_VFD_Fault_Code",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.STATE"
},
"valueSource": "opc",
"name": "STATE",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.VFD_Type"
},
"valueSource": "opc",
"dataType": "Int4",
"name": "VFD_Type",
"tagType": "AtomicTag",
"opcServer": "PLC"
}
]
}
]
}
]
},
{
"name": "System",
"tagType": "Folder",
"tags": [
{
"valueSource": "memory",
"dataType": "String",
"name": "download",
"value": "",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "String",
"name": "wbsckt_messages_send",
"value": "{\"message_list\":[{\"action\":\"pageview\",\"parameters\":{\"siteId\":\"MTN6_SIMULATION\",\"sessionId\":\"eea47f13-4bab-4370-be87-3ec749f7ce51\",\"pageId\":\"Command and Control\",\"timestamp\":1750093738406}}]}",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "String",
"name": "device_count",
"value": "{}",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "String",
"name": "IdToStatus",
"value": "{}",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "Boolean",
"name": "wbsckt_logging",
"value": false,
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "String",
"name": "thread_id",
"value": "9136",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "String",
"name": "aws_data",
"value": "{}",
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "Boolean",
"name": "close_socket",
"value": true,
"tagType": "AtomicTag"
},
{
"name": "Conveyor",
"tagType": "Folder",
"tags": [
{
"name": "APF",
"tagType": "Folder",
"tags": [
{
"name": "FL1038_2_VFD1",
"typeId": "Conveyor/APF",
"tagType": "UdtInstance",
"tags": [
{
"name": "Amperage",
"tagType": "AtomicTag"
},
{
"name": "VFD_Type",
"tagType": "AtomicTag"
},
{
"name": "Maintenance",
"tagType": "Folder",
"tags": [
{
"name": "Jog_PB_Pressed",
"tagType": "AtomicTag"
},
{
"name": "Speed_FPM",
"tagType": "AtomicTag"
},
{
"name": "Direction_PB_Pressed",
"tagType": "AtomicTag"
},
{
"name": "Direction",
"tagType": "AtomicTag"
},
{
"name": "Start_PB_Pressed",
"tagType": "AtomicTag"
},
{
"name": "Stop_PB_Pressed",
"tagType": "AtomicTag"
},
{
"name": "Maintenance_Mode",
"tagType": "AtomicTag"
}
]
},
{
"name": "STATE",
"tagType": "AtomicTag"
},
{
"name": "Speed_At_30rev",
"tagType": "AtomicTag"
},
{
"name": "Velocity",
"tagType": "AtomicTag"
},
{
"name": "Communication_Fault_Code",
"tagType": "AtomicTag"
},
{
"name": "Last_VFD_Fault_Code",
"tagType": "AtomicTag"
},
{
"name": "Voltage",
"tagType": "AtomicTag"
},
{
"name": "Alarms",
"tagType": "Folder",
"tags": [
{
"name": "Communication_Fault_Reset_Required",
"tagType": "AtomicTag"
},
{
"name": "VFD_Reset_Required",
"tagType": "AtomicTag"
},
{
"name": "Communication_Fault",
"tagType": "AtomicTag"
},
{
"name": "VFD_Fault",
"tagType": "AtomicTag"
},
{
"name": "Disconnected",
"tagType": "AtomicTag"
}
]
},
{
"name": "Cycle_Time_Factor",
"tagType": "AtomicTag"
},
{
"name": "FPM",
"tagType": "AtomicTag"
},
{
"name": "VFD_Fault_Code",
"tagType": "AtomicTag"
}
]
}
]
},
{
"name": "VFD",
"tagType": "Folder"
}
]
},
{
"valueSource": "memory",
"dataType": "DateTime",
"name": "wbsckt_heartbeat_interval",
"value": 1750247976280,
"tagType": "AtomicTag"
},
{
"valueSource": "memory",
"dataType": "Boolean",
"name": "wbsckt_running",
"value": true,
"tagType": "AtomicTag"
}
]
}
]
}

File diff suppressed because it is too large Load Diff

View File

@ -1,251 +0,0 @@
{
"name": "",
"tagType": "Provider",
"tags": [
{
"name": "_types_",
"tagType": "Folder",
"tags": [
{
"name": "Extendo",
"tagType": "UdtType",
"tags": [
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Unloading_Mode"
},
"valueSource": "opc",
"name": "Unloading_Mode",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.PEC_Override_PB"
},
"valueSource": "opc",
"name": "PEC_Override_PB",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Loading_Mode"
},
"valueSource": "opc",
"name": "Loading_Mode",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Power_Saving_Mode"
},
"valueSource": "opc",
"name": "Power_Saving_Mode",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Extendo_Faults_Reset_PB"
},
"valueSource": "opc",
"name": "Extendo_Faults_Reset_PB",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Aopen_Active"
},
"valueSource": "opc",
"name": "Aopen_Active",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Fully_Retracted"
},
"valueSource": "opc",
"name": "Fully_Retracted",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Fully_Extended"
},
"valueSource": "opc",
"name": "Fully_Extended",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.STATE"
},
"valueSource": "opc",
"name": "STATE",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"name": "Alarm",
"tagType": "Folder",
"tags": [
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.Communication_Faulted"
},
"valueSource": "opc",
"alarms": [
{
"setpointA": 1.0,
"name": "Communication Faulted",
"priority": "High"
}
],
"name": "Communication_Faulted",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.Extendo_Faulted"
},
"valueSource": "opc",
"alarms": [
{
"setpointA": 1.0,
"name": "Extendo Faulted",
"priority": "High"
}
],
"name": "Extendo_Faulted",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.EStopped"
},
"valueSource": "opc",
"alarms": [
{
"setpointA": 1.0,
"name": "Estopped"
}
],
"name": "Estopped",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.Full"
},
"valueSource": "opc",
"alarms": [
{
"setpointA": 1.0,
"name": "Full"
}
],
"name": "Full",
"tagType": "AtomicTag",
"opcServer": "PLC"
}
]
}
]
}
]
},
{
"name": "Extendo",
"tagType": "Folder",
"tags": [
{
"name": "FL4066_4_EX1",
"typeId": "Extendo",
"tagType": "UdtInstance",
"tags": [
{
"name": "Power_Saving_Mode",
"tagType": "AtomicTag"
},
{
"name": "Alarm",
"tagType": "Folder",
"tags": [
{
"name": "Communication_Faulted",
"tagType": "AtomicTag"
},
{
"name": "Extendo_Faulted",
"tagType": "AtomicTag"
},
{
"name": "Estopped",
"tagType": "AtomicTag"
},
{
"name": "Full",
"tagType": "AtomicTag"
}
]
},
{
"name": "Fully_Retracted",
"tagType": "AtomicTag"
},
{
"name": "STATE",
"tagType": "AtomicTag"
},
{
"name": "Aopen_Active",
"tagType": "AtomicTag"
},
{
"name": "Fully_Extended",
"tagType": "AtomicTag"
},
{
"name": "PEC_Override_PB",
"tagType": "AtomicTag"
},
{
"name": "Extendo_Faults_Reset_PB",
"tagType": "AtomicTag"
},
{
"name": "Loading_Mode",
"tagType": "AtomicTag"
},
{
"name": "Unloading_Mode",
"tagType": "AtomicTag"
}
]
}
]
}
]
}

View File

@ -1,622 +0,0 @@
{
"name": "",
"tagType": "Provider",
"tags": [
{
"name": "MCM",
"typeId": "MCM",
"tagType": "UdtInstance",
"tags": [
{
"name": "EStop_Actuated_LT",
"tagType": "AtomicTag"
},
{
"name": "Motor_Fault_Reset_PB_LT",
"tagType": "AtomicTag"
},
{
"name": "Jam_Restart_PB_LT",
"tagType": "AtomicTag"
},
{
"name": "Alarm",
"tagType": "Folder",
"tags": [
{
"name": "Estop_PB_Pressed",
"tagType": "AtomicTag"
},
{
"name": "Jam_Restart_PB_Pressed",
"tagType": "AtomicTag"
},
{
"name": "Power_Branch_Fault_Reset_PB_Pressed",
"tagType": "AtomicTag"
},
{
"name": "On_UPS_Battery",
"tagType": "AtomicTag"
},
{
"name": "Stop_PB_Pressed",
"tagType": "AtomicTag"
},
{
"name": "NAT_Switch_Fault",
"tagType": "AtomicTag"
},
{
"name": "UPS_Battery_On",
"tagType": "AtomicTag"
},
{
"name": "Stopped",
"tagType": "AtomicTag"
},
{
"name": "Jam_Fault",
"tagType": "AtomicTag"
},
{
"name": "Encoder_Fault",
"tagType": "AtomicTag"
},
{
"name": "UPS_Fault",
"tagType": "AtomicTag"
},
{
"name": "EStopped",
"tagType": "AtomicTag"
},
{
"name": "Motor_Fault_Reset_PB_Pressed",
"tagType": "AtomicTag"
},
{
"name": "UPS_Battery_Low",
"tagType": "AtomicTag"
},
{
"name": "Motor_Fault",
"tagType": "AtomicTag"
},
{
"name": "Low_Air_Pressure_Reset_PB_Pressed",
"tagType": "AtomicTag"
},
{
"name": "UPS_Battery_Fault",
"tagType": "AtomicTag"
},
{
"name": "Start_PB_Pressed",
"tagType": "AtomicTag"
},
{
"name": "Fire_Relay_De_Energized",
"tagType": "AtomicTag"
}
]
},
{
"name": "Power_Branch_Fault_Reset_PB",
"tagType": "AtomicTag"
},
{
"name": "Local_Estop_LT",
"tagType": "AtomicTag"
},
{
"name": "Motor_Fault_Reset_PB",
"tagType": "AtomicTag"
},
{
"name": "Start_PB",
"tagType": "AtomicTag"
},
{
"name": "Stop_PB",
"tagType": "AtomicTag"
},
{
"name": "Low_Air_Pressure_Reset_PB_LT",
"tagType": "AtomicTag"
},
{
"name": "Jam_Restart_PB",
"tagType": "AtomicTag"
},
{
"name": "Setup_Motor_Speeds",
"tagType": "AtomicTag"
},
{
"name": "STATE",
"tagType": "AtomicTag"
},
{
"name": "Start_PB_LT",
"tagType": "AtomicTag"
},
{
"name": "Low_Air_Pressure_Reset_PB",
"tagType": "AtomicTag"
}
]
},
{
"name": "_types_",
"tagType": "Folder",
"tags": [
{
"name": "MCM",
"tagType": "UdtType",
"tags": [
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Low_Air_Pressure_Reset_PB"
},
"valueSource": "opc",
"name": "Low_Air_Pressure_Reset_PB",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Motor_Fault_Reset_PB"
},
"valueSource": "opc",
"name": "Motor_Fault_Reset_PB",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Start_PB_LT"
},
"valueSource": "opc",
"name": "Start_PB_LT",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.STATE"
},
"valueSource": "opc",
"name": "STATE",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Stop_PB"
},
"valueSource": "opc",
"name": "Stop_PB",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Power_Branch_Fault_Reset_PB"
},
"valueSource": "opc",
"name": "Setup_Motor_Speeds",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Start_PB"
},
"valueSource": "opc",
"name": "Start_PB",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Jam_Restart_PB"
},
"valueSource": "opc",
"name": "Jam_Restart_PB",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Low_Air_Pressure_Reset_PB_LT"
},
"valueSource": "opc",
"name": "Low_Air_Pressure_Reset_PB_LT",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Power_Branch_Fault_Reset_PB"
},
"valueSource": "opc",
"name": "Power_Branch_Fault_Reset_PB",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Local_Estop_LT"
},
"valueSource": "opc",
"name": "Local_Estop_LT",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.EStop_Actuated_LT"
},
"valueSource": "opc",
"name": "EStop_Actuated_LT",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Jam_Restart_PB_LT"
},
"valueSource": "opc",
"name": "Jam_Restart_PB_LT",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"name": "Alarm",
"tagType": "Folder",
"tags": [
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.UPS_Battery_Low"
},
"valueSource": "opc",
"alarms": [
{
"setpointA": 1.0,
"name": "UPS Battery Low"
}
],
"name": "UPS_Battery_Low",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.Motor_Fault_Reset_PB_Pressed"
},
"valueSource": "opc",
"alarms": [
{
"setpointA": 1.0,
"name": "Motor Fault Reset PB Pressed"
}
],
"name": "Motor_Fault_Reset_PB_Pressed",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.Jam_Fault"
},
"valueSource": "opc",
"alarms": [
{
"setpointA": 1.0,
"name": "Jam Fault",
"priority": "High"
}
],
"name": "Jam_Fault",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.Stopped"
},
"valueSource": "opc",
"alarms": [
{
"setpointA": 1.0,
"name": "Stopped",
"priority": "High"
}
],
"name": "Stopped",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.UPS_Battery_On"
},
"valueSource": "opc",
"alarms": [
{
"setpointA": 1.0,
"name": "UPS Battery On"
}
],
"name": "UPS_Battery_On",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.Encoder_Fault"
},
"valueSource": "opc",
"alarms": [
{
"setpointA": 1.0,
"name": "Encoder Fault",
"priority": "High"
}
],
"name": "Encoder_Fault",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.Fire_Relay_De_Energized"
},
"valueSource": "opc",
"alarms": [
{
"setpointA": 1.0,
"name": "Fire Relay De Energized",
"priority": "High"
}
],
"name": "Fire_Relay_De_Energized",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.UPS_Battery_Fault"
},
"valueSource": "opc",
"alarms": [
{
"setpointA": 1.0,
"name": "UPS Battery Fault",
"priority": "High"
}
],
"name": "UPS_Battery_Fault",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.Jam_Restart_PB_Pressed"
},
"valueSource": "opc",
"alarms": [
{
"setpointA": 1.0,
"name": "Jam Restart PB Pressed"
}
],
"name": "Jam_Restart_PB_Pressed",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.Motor_Fault"
},
"valueSource": "opc",
"alarms": [
{
"setpointA": 1.0,
"name": "Motor Fault",
"priority": "High"
}
],
"name": "Motor_Fault",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.EStopped"
},
"valueSource": "opc",
"alarms": [
{
"setpointA": 1.0,
"name": "EStopped",
"priority": "Critical"
}
],
"name": "EStopped",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.Power_Branch_Fault_Reset_PB_Pressed"
},
"valueSource": "opc",
"alarms": [
{
"setpointA": 1.0,
"name": "Power_Branch Fault Reset PB Pressed"
}
],
"name": "Power_Branch_Fault_Reset_PB_Pressed",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.Low_Air_Pressure_Reset_PB_Pressed"
},
"valueSource": "opc",
"alarms": [
{
"setpointA": 1.0,
"name": "Low Air Pressure Reset PB Pressed"
}
],
"name": "Low_Air_Pressure_Reset_PB_Pressed",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.Stop_PB_Pressed"
},
"valueSource": "opc",
"alarms": [
{
"setpointA": 1.0,
"name": "Stop PB Pressed"
}
],
"name": "Stop_PB_Pressed",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.Start_PB_Pressed"
},
"valueSource": "opc",
"alarms": [
{
"setpointA": 1.0,
"name": "Start PB Pressed"
}
],
"name": "Start_PB_Pressed",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.NAT_Switch_Fault"
},
"valueSource": "opc",
"alarms": [
{
"setpointA": 1.0,
"name": "Nat Switch Fault",
"priority": "High"
}
],
"name": "NAT_Switch_Fault",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.On_UPS_Battery"
},
"valueSource": "opc",
"alarms": [
{
"setpointA": 1.0,
"name": "On UPS Battery"
}
],
"name": "On_UPS_Battery",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.UPS_Fault"
},
"valueSource": "opc",
"alarms": [
{
"setpointA": 1.0,
"name": "UPS Fault",
"priority": "High"
}
],
"name": "UPS_Fault",
"tagType": "AtomicTag",
"opcServer": "PLC"
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.EStop_PB_Pressed"
},
"valueSource": "opc",
"alarms": [
{
"setpointA": 1.0,
"name": "Estop PB Pressed"
}
],
"name": "Estop_PB_Pressed",
"tagType": "AtomicTag",
"opcServer": "PLC"
}
]
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Motor_Fault_Reset_PB_LT"
},
"valueSource": "opc",
"name": "Motor_Fault_Reset_PB_LT",
"tagType": "AtomicTag",
"opcServer": "PLC"
}
]
}
]
}
]
}

View File

@ -1,300 +0,0 @@
{
"name": "",
"tagType": "Provider",
"tags": [
{
"name": "System",
"tagType": "Folder",
"tags": [
{
"name": "MCM4",
"tagType": "Folder",
"tags": [
{
"name": "Field_Devices",
"tagType": "Folder",
"tags": [
{
"name": "DPM",
"tagType": "Folder",
"tags": [
{
"name": "FL1034_2_DPM1",
"typeId": "Field_Devices",
"tagType": "UdtInstance",
"tags": [
{
"name": "STATE",
"tagType": "AtomicTag"
},
{
"name": "Alarm",
"tagType": "Folder",
"tags": [
{
"name": "Communication_Fault",
"tagType": "AtomicTag"
}
]
}
]
},
{
"name": "PRS3_5_DPM1",
"typeId": "Field_Devices",
"tagType": "UdtInstance",
"tags": [
{
"name": "STATE",
"tagType": "AtomicTag"
},
{
"name": "Alarm",
"tagType": "Folder",
"tags": [
{
"name": "Communication_Fault",
"tagType": "AtomicTag"
}
]
}
]
},
{
"name": "VSA_DPM1_7",
"typeId": "Field_Devices",
"tagType": "UdtInstance",
"tags": [
{
"name": "STATE",
"tagType": "AtomicTag"
},
{
"name": "Alarm",
"tagType": "Folder",
"tags": [
{
"name": "Communication_Fault",
"tagType": "AtomicTag"
}
]
}
]
},
{
"name": "VSC_DPM2",
"typeId": "Field_Devices",
"tagType": "UdtInstance",
"tags": [
{
"name": "STATE",
"tagType": "AtomicTag"
},
{
"name": "Alarm",
"tagType": "Folder",
"tags": [
{
"name": "Communication_Fault",
"tagType": "AtomicTag"
}
]
}
]
},
{
"name": "PS10_2_DPM1",
"typeId": "Field_Devices",
"tagType": "UdtInstance",
"tags": [
{
"name": "Alarm",
"tagType": "Folder",
"tags": [
{
"name": "Communication_Fault",
"tagType": "AtomicTag"
}
]
},
{
"name": "STATE",
"tagType": "AtomicTag"
}
]
},
{
"name": "PS11_7_DPM1",
"typeId": "Field_Devices",
"tagType": "UdtInstance",
"tags": [
{
"name": "STATE",
"tagType": "AtomicTag"
},
{
"name": "Alarm",
"tagType": "Folder",
"tags": [
{
"name": "Communication_Fault",
"tagType": "AtomicTag"
}
]
}
]
},
{
"name": "VSA_DPM2",
"typeId": "Field_Devices",
"tagType": "UdtInstance",
"tags": [
{
"name": "Alarm",
"tagType": "Folder",
"tags": [
{
"name": "Communication_Fault",
"tagType": "AtomicTag"
}
]
},
{
"name": "STATE",
"tagType": "AtomicTag"
}
]
},
{
"name": "VSC_DPM3",
"typeId": "Field_Devices",
"tagType": "UdtInstance",
"tags": [
{
"name": "Alarm",
"tagType": "Folder",
"tags": [
{
"name": "Communication_Fault",
"tagType": "AtomicTag"
}
]
},
{
"name": "STATE",
"tagType": "AtomicTag"
}
]
},
{
"name": "VSC_DPM1",
"typeId": "Field_Devices",
"tagType": "UdtInstance",
"tags": [
{
"name": "Alarm",
"tagType": "Folder",
"tags": [
{
"name": "Communication_Fault",
"tagType": "AtomicTag"
}
]
},
{
"name": "STATE",
"tagType": "AtomicTag"
}
]
},
{
"name": "FL3016_2_DPM1",
"typeId": "Field_Devices",
"tagType": "UdtInstance",
"tags": [
{
"name": "Alarm",
"tagType": "Folder",
"tags": [
{
"name": "Communication_Fault",
"tagType": "AtomicTag"
}
]
},
{
"name": "STATE",
"tagType": "AtomicTag"
}
]
},
{
"name": "VSA_DPM3",
"typeId": "Field_Devices",
"tagType": "UdtInstance",
"tags": [
{
"name": "Alarm",
"tagType": "Folder",
"tags": [
{
"name": "Communication_Fault",
"tagType": "AtomicTag"
}
]
},
{
"name": "STATE",
"tagType": "AtomicTag"
}
]
}
]
}
]
}
]
}
]
},
{
"name": "_types_",
"tagType": "Folder",
"tags": [
{
"name": "Field_Devices",
"typeId": "",
"tagType": "UdtType",
"tags": [
{
"name": "Alarm",
"tagType": "Folder",
"tags": [
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.Alarm.Communication_Fault"
},
"valueSource": "opc",
"name": "Communication_Fault",
"tagType": "AtomicTag",
"opcServer": "PLC"
}
]
},
{
"opcItemPath": {
"bindType": "parameter",
"binding": "ns\u003d1;s\u003d[PLC]{InstanceName}.HMI.STATE"
},
"valueSource": "opc",
"name": "STATE",
"tagType": "AtomicTag",
"opcServer": "PLC"
}
]
}
]
}
]
}

File diff suppressed because it is too large Load Diff

192901
tags/tags_08_25.json Normal file

File diff suppressed because it is too large Load Diff