fixed dpm block bindings

This commit is contained in:
Salijoghli 2025-11-10 13:03:38 +04:00
parent 27c176da81
commit b86dc96cd1
22 changed files with 3100 additions and 13 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

View File

@ -4,7 +4,7 @@
"device": "NSC1_1_PS1",
"showTags": true,
"state": "Offline",
"view": "autStand/Equipment/Photoeye_Chute"
"view": "autStand/Equipment/PressureSensor"
},
"params": {
"name": "",
@ -53,7 +53,7 @@
},
"onChange": {
"enabled": null,
"script": "\tname \u003d self.view.custom.device\n\t\n\t# Use a list of tuples to maintain order - longer matches first\n\tdevice_mapping \u003d [\n#\t (\u0027PS\u0027, \u0027PressureSensor\u0027)\n\t \n\t # Encoder variations (check these first before \u0027EN\u0027)\n\t (\u0027ENSH\u0027, \u0027Encoder\u0027),\n\t (\u0027ENW\u0027, \u0027Encoder\u0027),\n\t (\u0027ENCODER\u0027, \u0027Encoder\u0027),\n\t \n\t # Photoeye variations\n\t (\u0027LRPE\u0027, \u0027Photoeye_Tracking\u0027),\n\t (\u0027TPE\u0027, \u0027Photoeye_Tracking\u0027),\n\t \n\t # IO_Block variations\n\t (\u0027SIO\u0027, \u0027IO_Block\u0027),\n\t (\u0027FIOM\u0027, \u0027IO_Block\u0027),\n\t (\u0027FIO_\u0027, \u0027IO_Block\u0027),\n\t \n\t # Button variations (check after encoder)\n\t (\u0027EN\u0027, \u0027Chute_Button\u0027),\n\t (\u0027JR\u0027, \u0027Button\u0027),\n\t \n\t # Photoeye (shorter version after longer ones)\n\t (\u0027TPE\u0027, \u0027Photoeye_Tracking\u0027),\n\t (\u0027PE\u0027, \u0027Photoeye_Chute\u0027),\n\t \n\t # Other devices variations \n\t (\u0027DPM\u0027, \u0027DPM\u0027),\n\t (\u0027EPC\u0027, \u0027EPC\u0027),\n\t (\u0027MCM\u0027, \u0027MCM\u0027),\n\t (\u0027PRX\u0027, \u0027ProxSensor\u0027),\n\t (\u0027SS\u0027, \u0027SS_Button\u0027),\n\t (\u0027SOL\u0027, \u0027Solenoid\u0027),\n\t \n\t # Beacon Variations (single letters last)\n\t (\u0027B\u0027, \u0027Beacon\u0027),\n\t (\u0027G\u0027, \u0027Beacon\u0027),\n\t (\u0027R\u0027, \u0027Beacon\u0027),\n\t (\u0027H\u0027, \u0027Beacon\u0027),\n\t (\u0027A\u0027, \u0027Beacon\u0027),\n\t (\u0027S03\u0027, \u0027Scanner\u0027)\n\t\t\n\t]\n\t\n\tview \u003d \"\"\n\t\n\tfor key, value in device_mapping:\n\t if key in name:\n\t\t\tview \u003d value\n\t\t\tself.custom.view \u003d \"autStand/Equipment/\" + view\n\t\t\treturn \n\t\n\tself.custom.view \u003d \"autStand/Equipment/Camera\""
"script": "\tname \u003d self.view.custom.device\n\t\n\t# Use a list of tuples to maintain order - longer matches first\n\tdevice_mapping \u003d [\n\t (\u0027PS\u0027, \u0027PressureSensor\u0027),\n\t \t \n\t # Encoder variations (check these first before \u0027EN\u0027)\n\t (\u0027ENSH\u0027, \u0027Encoder\u0027),\n\t (\u0027ENW\u0027, \u0027Encoder\u0027),\n\t (\u0027ENCODER\u0027, \u0027Encoder\u0027),\n\t \n\t # Photoeye variations\n\t (\u0027LRPE\u0027, \u0027Photoeye_Tracking\u0027),\n\t (\u0027TPE\u0027, \u0027Photoeye_Tracking\u0027),\n\t \n\t # IO_Block variations\n\t (\u0027SIO\u0027, \u0027IO_Block\u0027),\n\t (\u0027FIOM\u0027, \u0027IO_Block\u0027),\n\t (\u0027FIO_\u0027, \u0027IO_Block\u0027),\n\t \n\t # Button variations (check after encoder)\n\t (\u0027EN\u0027, \u0027Chute_Button\u0027),\n\t (\u0027JR\u0027, \u0027Button\u0027),\n\t \n\t # Photoeye (shorter version after longer ones)\n\t (\u0027TPE\u0027, \u0027Photoeye_Tracking\u0027),\n\t (\u0027PE\u0027, \u0027Photoeye_Chute\u0027),\n\t \n\t # Other devices variations \n\t (\u0027DPM\u0027, \u0027DPM\u0027),\n\t (\u0027EPC\u0027, \u0027EPC\u0027),\n\t (\u0027MCM\u0027, \u0027MCM\u0027),\n\t (\u0027PRX\u0027, \u0027ProxSensor\u0027),\n\t (\u0027SS\u0027, \u0027SS_Button\u0027),\n\t (\u0027SOL\u0027, \u0027Solenoid\u0027),\n\t \n\t # Beacon Variations (single letters last)\n\t (\u0027B\u0027, \u0027Beacon\u0027),\n\t (\u0027G\u0027, \u0027Beacon\u0027),\n\t (\u0027R\u0027, \u0027Beacon\u0027),\n\t (\u0027H\u0027, \u0027Beacon\u0027),\n\t (\u0027A\u0027, \u0027Beacon\u0027),\n\t (\u0027S03\u0027, \u0027Scanner\u0027)\n\t\t\n\t]\n\t\n\tview \u003d \"\"\n\t\n\tfor key, value in device_mapping:\n\t if key in name:\n\t\t\tview \u003d value\n\t\t\tself.custom.view \u003d \"autStand/Equipment/\" + view\n\t\t\treturn \n\t\n\tself.custom.view \u003d \"autStand/Equipment/Camera\""
},
"persistent": true
},

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

View File

@ -9,9 +9,9 @@
],
"attributes": {
"lastModification": {
"actor": "external",
"timestamp": "2025-10-20T13:55:55Z"
"actor": "admin",
"timestamp": "2025-11-10T08:34:19Z"
},
"lastModificationSignature": "220bd778cb95b01005a4973c7082b094ac14be6adda2a357f5801e27efddd3f3"
"lastModificationSignature": "6a86f984d778b1d894a32ffe3c6a67e1f9574fb2752b2f3d059cff488dfeb8c6"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -9,9 +9,9 @@
],
"attributes": {
"lastModification": {
"actor": "external",
"timestamp": "2025-10-20T13:55:55Z"
"actor": "admin",
"timestamp": "2025-11-10T09:02:48Z"
},
"lastModificationSignature": "8c6142fa869a11923bb3eddbf04279ab4dcdb8179bba4879a1e571caa2e89e0a"
"lastModificationSignature": "9090809f11d4a4d6fef16f664e3a54b949a2329a3366bcc1478b2a2c2dbd8fcc"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View File

@ -86,6 +86,32 @@
"grow": 1
},
"propConfig": {
"props.elements[10].style.visibility": {
"binding": {
"config": {
"path": "view.params.InDown"
},
"transforms": [
{
"fallback": "hidden",
"inputType": "scalar",
"mappings": [
{
"input": true,
"output": "visible"
},
{
"input": false,
"output": "hidden"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
},
"props.elements[10].visibility": {
"binding": {
"config": {
@ -112,6 +138,32 @@
"type": "property"
}
},
"props.elements[11].style.visibility": {
"binding": {
"config": {
"path": "view.params.InLeft"
},
"transforms": [
{
"fallback": "hidden",
"inputType": "scalar",
"mappings": [
{
"input": true,
"output": "visible"
},
{
"input": false,
"output": "hidden"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
},
"props.elements[11].visibility": {
"binding": {
"config": {
@ -138,6 +190,32 @@
"type": "property"
}
},
"props.elements[12].style.visibility": {
"binding": {
"config": {
"path": "view.params.InUp"
},
"transforms": [
{
"fallback": "hidden",
"inputType": "scalar",
"mappings": [
{
"input": true,
"output": "visible"
},
{
"input": false,
"output": "hidden"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
},
"props.elements[12].visibility": {
"binding": {
"config": {
@ -164,6 +242,32 @@
"type": "property"
}
},
"props.elements[13].style.visibility": {
"binding": {
"config": {
"path": "view.params.Down1"
},
"transforms": [
{
"fallback": "hidden",
"inputType": "scalar",
"mappings": [
{
"input": true,
"output": "visible"
},
{
"input": false,
"output": "hidden"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
},
"props.elements[13].visibility": {
"binding": {
"config": {
@ -190,6 +294,32 @@
"type": "property"
}
},
"props.elements[14].style.visibility": {
"binding": {
"config": {
"path": "view.params.Down2"
},
"transforms": [
{
"fallback": "hidden",
"inputType": "scalar",
"mappings": [
{
"input": true,
"output": "visible"
},
{
"input": false,
"output": "hidden"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
},
"props.elements[14].visibility": {
"binding": {
"config": {
@ -216,6 +346,32 @@
"type": "property"
}
},
"props.elements[15].style.visibility": {
"binding": {
"config": {
"path": "view.params.Down3"
},
"transforms": [
{
"fallback": "hidden",
"inputType": "scalar",
"mappings": [
{
"input": true,
"output": "visible"
},
{
"input": false,
"output": "hidden"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
},
"props.elements[15].visibility": {
"binding": {
"config": {
@ -242,6 +398,32 @@
"type": "property"
}
},
"props.elements[16].style.visibility": {
"binding": {
"config": {
"path": "view.params.DownRight"
},
"transforms": [
{
"fallback": "hidden",
"inputType": "scalar",
"mappings": [
{
"input": true,
"output": "visible"
},
{
"input": false,
"output": "hidden"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
},
"props.elements[16].visibility": {
"binding": {
"config": {
@ -268,6 +450,32 @@
"type": "property"
}
},
"props.elements[17].style.visibility": {
"binding": {
"config": {
"path": "view.params.DownLeft"
},
"transforms": [
{
"fallback": "hidden",
"inputType": "scalar",
"mappings": [
{
"input": true,
"output": "visible"
},
{
"input": false,
"output": "hidden"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
},
"props.elements[17].visibility": {
"binding": {
"config": {
@ -294,7 +502,7 @@
"type": "property"
}
},
"props.elements[18].stroke.opacity": {
"props.elements[18].style.opacity": {
"binding": {
"config": {
"expression": "if({view.params.communicationNotFaulted}, 0, 1)"
@ -380,6 +588,32 @@
"type": "property"
}
},
"props.elements[5].style.visibility": {
"binding": {
"config": {
"path": "view.params.OutDown"
},
"transforms": [
{
"fallback": "hidden",
"inputType": "scalar",
"mappings": [
{
"input": true,
"output": "visible"
},
{
"input": false,
"output": "hidden"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
},
"props.elements[5].visibility": {
"binding": {
"config": {
@ -406,6 +640,32 @@
"type": "property"
}
},
"props.elements[6].style.visibility": {
"binding": {
"config": {
"path": "view.params.OutRight"
},
"transforms": [
{
"fallback": "hidden",
"inputType": "scalar",
"mappings": [
{
"input": true,
"output": "visible"
},
{
"input": false,
"output": "hidden"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
},
"props.elements[6].visibility": {
"binding": {
"config": {
@ -432,6 +692,32 @@
"type": "property"
}
},
"props.elements[7].style.visibility": {
"binding": {
"config": {
"path": "view.params.OutUp"
},
"transforms": [
{
"fallback": "hidden",
"inputType": "scalar",
"mappings": [
{
"input": true,
"output": "visible"
},
{
"input": false,
"output": "hidden"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
},
"props.elements[7].visibility": {
"binding": {
"config": {
@ -2319,6 +2605,9 @@
"paint": "#000000",
"width": "4.00001"
},
"style": {
"classes": ""
},
"type": "path"
},
{
@ -2334,6 +2623,9 @@
"paint": "#000000",
"width": "4.00001"
},
"style": {
"classes": ""
},
"type": "path"
},
{
@ -2349,6 +2641,9 @@
"paint": "#000000",
"width": "4.00001"
},
"style": {
"classes": ""
},
"type": "path"
},
{
@ -2394,6 +2689,9 @@
"paint": "#000000",
"width": "4.00001"
},
"style": {
"classes": ""
},
"type": "path"
},
{
@ -2409,6 +2707,9 @@
"paint": "#000000",
"width": "4.00001"
},
"style": {
"classes": ""
},
"type": "path"
},
{
@ -2424,6 +2725,9 @@
"paint": "#000000",
"width": "4.00001"
},
"style": {
"classes": ""
},
"type": "path"
},
{
@ -2439,6 +2743,9 @@
"paint": "#000000",
"width": "4.00001"
},
"style": {
"classes": ""
},
"type": "path"
},
{
@ -2453,6 +2760,9 @@
"paint": "#000000",
"width": "4"
},
"style": {
"classes": ""
},
"type": "path"
},
{
@ -2467,6 +2777,9 @@
"paint": "#000000",
"width": "4"
},
"style": {
"classes": ""
},
"type": "path"
},
{
@ -2482,6 +2795,9 @@
"paint": "#000000",
"width": "4.00001"
},
"style": {
"classes": ""
},
"type": "path"
},
{
@ -2497,6 +2813,9 @@
"paint": "#000000",
"width": "4.00001"
},
"style": {
"classes": ""
},
"type": "path"
},
{
@ -2512,6 +2831,7 @@
"width": "4"
},
"style": {
"display": "block",
"paintOrder": "markers fill stroke"
},
"type": "path"

View File

@ -10,8 +10,8 @@
"attributes": {
"lastModification": {
"actor": "admin",
"timestamp": "2025-10-17T11:59:03Z"
"timestamp": "2025-11-10T08:34:31Z"
},
"lastModificationSignature": "8d95a6afc70797fd354234483a71c934bc0eece379afa55db3d1a0900ca7408b"
"lastModificationSignature": "03810d8e555afc2b0ce2adc132ba861a53ddb91f1ebf80ea66793bc458ffa5b7"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 8.0 KiB

View File

@ -10,8 +10,8 @@
"attributes": {
"lastModification": {
"actor": "admin",
"timestamp": "2025-11-02T13:10:30Z"
"timestamp": "2025-11-10T08:35:38Z"
},
"lastModificationSignature": "550e1ac53d28660487249f61de5ac3904f5f55887ff8fab2fbb2a8231d1e0a80"
"lastModificationSignature": "ae1e18d2f29c6a855a3f1b1eb5ce186979f7383b0100e2075a857c768e5314c8"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 51 KiB

View File

@ -616,3 +616,5 @@ Starting conversion: 20251108:15.11.58
Conversion finished. Elapsed time: 18 ms
Starting conversion: 20251108:15.35.26
Conversion finished. Elapsed time: 10 ms
Starting conversion: 20251110:12.55.07
Conversion finished. Elapsed time: 10 ms