From 0ece3ba8c92df0438af52b8de6b9225d8ada4103 Mon Sep 17 00:00:00 2001
From: wu <731351411@qq.com>
Date: 星期四, 30 十一月 2023 08:46:34 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/CanadaMes

---
 CanadaMes-ui/src/views/Electrical/Positioning2.vue                                               |    2 
 CanadaMes-ui/src/views/home/index.vue                                                            |   38 
 springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter2.java                |   37 
 springboot-vue3/src/main/java/com/example/springboot/service/JdbcConnections.java                |   18 
 springboot-vue3/src/main/java/com/example/springboot/component/PlcPositioning1.java              |  224 +-
 CanadaMes-ui/src/views/Electrical/Parameter2.vue                                                 |  314 ++--
 CanadaMes-ui/src/views/Electrical/Parameter.vue                                                  |   65 
 springboot-vue3/src/main/java/com/example/springboot/component/Plcsign.java                      |   22 
 springboot-vue3/src/main/java/com/example/springboot/component/PlcServoManualone.java            |   76 
 springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java                      |   10 
 springboot-vue3/src/main/java/com/example/springboot/mapper/HomeMapper.java                      |   10 
 CanadaMes-ui/src/views/Electrical/Positioning1.vue                                               |    2 
 springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter.java                 |   23 
 springboot-vue3/src/main/java/com/example/springboot/component/PLCAutomaticParameterSetting.java |   36 
 CanadaMes-ui/src/views/Electrical/Action.vue                                                     |   89 
 CanadaMes-ui/src/configuration/parameter2.json                                                   |  570 ++++----
 springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter1.java                |   45 
 CanadaMes-ui/src/views/Electrical/ManualonePosition2.vue                                         |  242 +++
 CanadaMes-ui/src/configuration/ManualJog.json                                                    |  260 ++-
 CanadaMes-ui/src/configuration/Parameter.json                                                    |   20 
 CanadaMes-ui/src/views/Electrical/ManualonePosition.vue                                          |  319 ++++
 springboot-vue3/src/main/java/com/example/springboot/component/Plcalarm.java                     |   24 
 CanadaMes-ui/src/configuration/ServoManualone.json                                               |  595 ++++----
 springboot-vue3/src/main/java/com/example/springboot/controller/HomeController.java              |   39 
 CanadaMes-ui/src/configuration/Alarm.json                                                        |   11 
 CanadaMes-ui/src/lang/locales/zh-CN.json                                                         |    4 
 CanadaMes-ui/src/configuration/Manualoneposition2.json                                           |   24 
 /dev/null                                                                                        |  101 -
 springboot-vue3/src/main/java/com/example/springboot/config/AppRunnerConfig.java                 |   14 
 CanadaMes-ui/src/configuration/Action.json                                                       |    7 
 .vscode/launch.json                                                                              |   54 
 CanadaMes-ui/src/lang/locales/en-US.json                                                         |    6 
 CanadaMes-ui/src/views/Electrical/ManualJog.vue                                                  |  100 +
 CanadaMes-ui/src/views/Electrical/Parameter1.vue                                                 |    6 
 CanadaMes-ui/src/views/Electrical/ServoManualone.vue                                             |  333 ++--
 springboot-vue3/src/main/java/com/example/springboot/component/PlcManualonePosition.java         |  353 +++-
 CanadaMes-ui/src/configuration/Manualoneposition.json                                            |   46 
 37 files changed, 2,367 insertions(+), 1,772 deletions(-)

diff --git a/.vscode/launch.json b/.vscode/launch.json
index 8f88eb2..14252d0 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -4,32 +4,32 @@
     // 娆蹭簡瑙f洿澶氫俊鎭紝璇疯闂�: https://go.microsoft.com/fwlink/?linkid=830387
     "version": "0.2.0",
     "configurations": [
-        {
-            "type": "java",
-            "name": "AuthorityApplication",
-            "request": "launch",
-            "mainClass": "com.example.springboot.AuthorityApplication",
-            "projectName": "canadames"
-        },
-        {
-            "type": "java",
-            "name": "Current File",
-            "request": "launch",
-            "mainClass": "${file}"
-        },
-        {
-            "type": "java",
-            "name": "MyGenerator",
-            "request": "launch",
-            "mainClass": "MyGenerator",
-            "projectName": "springboot-vue3"
-        },
-        {
-            "type": "java",
-            "name": "AuthorityApplication",
-            "request": "launch",
-            "mainClass": "com.example.springboot.AuthorityApplication",
-            "projectName": "springboot-vue3"
-        }
+      {
+        "type": "java",
+        "name": "AuthorityApplication",
+        "request": "launch",
+        "mainClass": "com.example.springboot.AuthorityApplication",
+        "projectName": "canadames"
+      },
+      {
+        "type": "java",
+        "name": "Current File",
+        "request": "launch",
+        "mainClass": "${file}"
+      },
+      {
+        "type": "java",
+        "name": "MyGenerator",
+        "request": "launch",
+        "mainClass": "MyGenerator",
+        "projectName": "springboot-vue3"
+      },
+      {
+        "type": "java",
+        "name": "AuthorityApplication",
+        "request": "launch",
+        "mainClass": "com.example.springboot.AuthorityApplication",
+        "projectName": "springboot-vue3"
+      }
     ]
 }
\ No newline at end of file
diff --git a/CanadaMes-ui/src/configuration/Action.json b/CanadaMes-ui/src/configuration/Action.json
index 64ed585..fb05bb6 100644
--- a/CanadaMes-ui/src/configuration/Action.json
+++ b/CanadaMes-ui/src/configuration/Action.json
@@ -587,6 +587,13 @@
       "state": "1",
       "type": "1",
       "page": "1"
+    },
+    {
+      "name": "abort/resumeTasks",
+      "value": 1,
+      "state": "1",
+      "type": "1",
+      "page": "1"
     }
   ],
   "address": [
diff --git a/CanadaMes-ui/src/configuration/Alarm.json b/CanadaMes-ui/src/configuration/Alarm.json
index b31d1ec..89bf615 100644
--- a/CanadaMes-ui/src/configuration/Alarm.json
+++ b/CanadaMes-ui/src/configuration/Alarm.json
@@ -496,19 +496,12 @@
       "state": "1",
       "type": "3",
       "page": "1"
-    },
-    {
-      "name": "B02.SR right in pos error",
-      "value": "1",
-      "state": "1",
-      "type": "3",
-      "page": "1"
     }
   ],
   "address": [
     {
-      "name": "DB104.DBx0.0",
-      "count": 72
+      "name": "DB104.0.0",
+      "count": 71
     }
   ]
 }
\ No newline at end of file
diff --git a/CanadaMes-ui/src/configuration/ManualJog.json b/CanadaMes-ui/src/configuration/ManualJog.json
index 8ac07e3..d70708a 100644
--- a/CanadaMes-ui/src/configuration/ManualJog.json
+++ b/CanadaMes-ui/src/configuration/ManualJog.json
@@ -3,10 +3,11 @@
     {
       "button": {
         "name": "D01杈撻��",
-        "value": 1,
+        "value": 0,
         "address": "DB10.0",
         "state": 0
-      }
+      },
+      "type": "3"
     },
     {
       "button": {
@@ -14,7 +15,8 @@
         "value": 1,
         "address": "DB10.0",
         "state": 0
-      }
+      },
+      "type": "3"
     },
     {
       "button": {
@@ -22,7 +24,8 @@
         "value": 1,
         "address": "DB10.0",
         "state": 1
-      }
+      },
+      "type": "3"
     },
     {
       "button": {
@@ -30,7 +33,8 @@
         "value": 0,
         "address": "DB10.0",
         "state": 1
-      }
+      },
+      "type": "3"
     },
     {
       "button": {
@@ -38,7 +42,8 @@
         "value": 0,
         "address": "DB10.0",
         "state": 1
-      }
+      },
+      "type": "3"
     },
     {
       "button": {
@@ -46,109 +51,35 @@
         "value": 0,
         "address": "DB10.0",
         "state": 1
-      }
-    }
-  ],
-  [
-    {
-      "button": {
-        "name": "A01娉ㄦ补娉�",
-        "value": 0,
-        "address": "DB10.0",
-        "state": 0
-      }
-    },
-    {
-      "button": {
-        "name": "A01缈昏浆",
-        "value": 0,
-        "address": "DB10.0",
-        "state": 0
-      }
-    },
-    {
-      "button": {
-        "name": "A01琛岃蛋鐐瑰姩",
-        "value": 0,
-        "address": "DB10.0",
-        "state": 1
-      }
+      },
+      "type": "3"
     },
     {
       "button": {
         "name": "A01杈撻�佹鍚�",
         "value": 0,
         "address": "DB10.0",
-        "state": 1
-      }
-    },
-    {
-      "button": {
-        "name": "A01杈撻�佸弽鍚�",
-        "value": 0,
-        "address": "DB10.0",
-        "state": 1
-      }
-    }
-  ],
-  [
-    {
-      "button": {
-        "name": "A02娉ㄦ补娉�",
-        "value": 0,
-        "address": "DB10.0",
         "state": 0
-      }
-    },
-    {
-      "button": {
-        "name": "A02缈昏浆",
-        "value": 0,
-        "address": "DB10.0",
-        "state": 0
-      }
-    },
-    {
-      "button": {
-        "name": "A02琛岃蛋鐐瑰姩",
-        "value": 0,
-        "address": "DB10.0",
-        "state": 1
-      }
+      },
+      "type": "3"
     },
     {
       "button": {
         "name": "A02杈撻�佹鍚�",
         "value": 0,
         "address": "DB10.0",
-        "state": 1
-      }
+        "state": 0
+      },
+      "type": "3"
     },
-    {
-      "button": {
-        "name": "A02杈撻�佸弽鍚�",
-        "value": 0,
-        "address": "DB10.0",
-        "state": 1
-      }
-    }
-  ],
-  [
     {
       "button": {
         "name": "B01杈撻��",
         "value": 0,
         "address": "DB10.0",
-        "state": 0
-      }
-    },
-    {
-      "button": {
-        "name": "B01琛岃蛋鐐瑰姩",
-        "value": 0,
-        "address": "DB10.0",
-        "state": 0
-      }
+        "state": 1
+      },
+      "type": "3"
     },
     {
       "button": {
@@ -156,7 +87,53 @@
         "value": 0,
         "address": "DB10.0",
         "state": 1
-      }
+      },
+      "type": "3"
+    },
+    {
+      "button": {
+        "name": "A01缈昏浆",
+        "value": 0,
+        "address": "DB10.0",
+        "state": 1
+      },
+      "type": "3"
+    },
+    {
+      "button": {
+        "name": "A02缈昏浆",
+        "value": 0,
+        "address": "DB10.0",
+        "state": 1
+      },
+      "type": "3"
+    },
+    {
+      "button": {
+        "name": "A01琛岃蛋鐐瑰姩",
+        "value": 0,
+        "address": "DB10.0",
+        "state": 0
+      },
+      "type": "3"
+    },
+    {
+      "button": {
+        "name": "A02琛岃蛋鐐瑰姩",
+        "value": 0,
+        "address": "DB10.0",
+        "state": 0
+      },
+      "type": "3"
+    },
+    {
+      "button": {
+        "name": "B01琛岃蛋鐐瑰姩",
+        "value": 0,
+        "address": "DB10.0",
+        "state": 1
+      },
+      "type": "3"
     },
     {
       "button": {
@@ -164,33 +141,8 @@
         "value": 0,
         "address": "DB10.0",
         "state": 1
-      }
-    }
-  ],
-  [
-    {
-      "button": {
-        "name": "B01缈昏浆姘旂几",
-        "value": 0,
-        "address": "DB10.0",
-        "state": 0
-      }
-    },
-    {
-      "button": {
-        "name": "B01鍗囬檷姘旂几",
-        "value": 0,
-        "address": "DB10.0",
-        "state": 0
-      }
-    },
-    {
-      "button": {
-        "name": "B01鐢电闃�",
-        "value": 0,
-        "address": "DB10.0",
-        "state": 1
-      }
+      },
+      "type": "3"
     },
     {
       "button": {
@@ -198,7 +150,8 @@
         "value": 0,
         "address": "DB10.0",
         "state": 0
-      }
+      },
+      "type": "3"
     },
     {
       "button": {
@@ -206,7 +159,8 @@
         "value": 0,
         "address": "DB10.0",
         "state": 0
-      }
+      },
+      "type": "3"
     },
     {
       "button": {
@@ -214,7 +168,71 @@
         "value": 0,
         "address": "DB10.0",
         "state": 1
-      }
+      },
+      "type": "3"
+    },
+    {
+      "button": {
+        "name": "B01缈昏浆姘旂几",
+        "value": 0,
+        "address": "DB10.0",
+        "state": 0
+      },
+      "type": "3"
+    },
+    {
+      "button": {
+        "name": "B01鍗囬檷姘旂几",
+        "value": 0,
+        "address": "DB10.0",
+        "state": 0
+      },
+      "type": "3"
+    },
+    {
+      "button": {
+        "name": "B01鐢电闃�",
+        "value": 0,
+        "address": "DB10.0",
+        "state": 1
+      },
+      "type": "3"
+    },
+    {
+      "button": {
+        "name": "A01杈撻�佸弽鍚�",
+        "value": 0,
+        "address": "DB10.0",
+        "state": 1
+      },
+      "type": "3"
+    },
+    {
+      "button": {
+        "name": "A02杈撻�佸弽鍚�",
+        "value": 0,
+        "address": "DB10.0",
+        "state": 1
+      },
+      "type": "3"
+    },
+    {
+      "button": {
+        "name": "A01娉ㄧ數娉�",
+        "value": 0,
+        "address": "DB10.0",
+        "state": 0
+      },
+      "type": "3"
+    },
+    {
+      "button": {
+        "name": "A02娉ㄧ數娉�",
+        "value": 0,
+        "address": "DB10.0",
+        "state": 0
+      },
+      "type": "3"
     }
   ]
 ]
\ No newline at end of file
diff --git a/CanadaMes-ui/src/configuration/Manualoneposition.json b/CanadaMes-ui/src/configuration/Manualoneposition.json
index c5a52bf..652a959 100644
--- a/CanadaMes-ui/src/configuration/Manualoneposition.json
+++ b/CanadaMes-ui/src/configuration/Manualoneposition.json
@@ -2,7 +2,7 @@
   [
     {
       "name": "A01鎵嬪姩鏍煎瓙",
-      "read": 33,
+      "value": 33,
       "sending": 0,
       "type": "0",
       "address": "DB100.0",
@@ -11,7 +11,7 @@
     },
     {
       "name": "A01瀹氫綅閫熷害",
-      "read": 11,
+      "value": 11,
       "sending": 0,
       "address": "DB100.0",
       "type": "0",
@@ -19,7 +19,7 @@
     },
     {
       "name": "A01褰撳墠鏍煎瓙",
-      "read": 22,
+      "value": 22,
       "sending": 0,
       "address": "DB100.0",
       "type": "0",
@@ -36,7 +36,7 @@
     {
       "button": {
         "name": "鏁呴殰",
-        "value": 0,
+        "value": 1,
         "address": "DB10.0",
         "state": 1
       }
@@ -69,7 +69,7 @@
   [
     {
       "name": "A02鎵嬪姩鏍煎瓙",
-      "read": 33,
+      "value": 33,
       "sending": 0,
       "type": "0",
       "address": "DB100.0",
@@ -78,7 +78,7 @@
     },
     {
       "name": "A02瀹氫綅閫熷害",
-      "read": 11,
+      "value": 11,
       "sending": 0,
       "address": "DB100.0",
       "type": "0",
@@ -86,7 +86,7 @@
     },
     {
       "name": "A02褰撳墠鏍煎瓙",
-      "read": 22,
+      "value": 22,
       "sending": 0,
       "address": "DB100.0",
       "type": "0",
@@ -136,7 +136,7 @@
   [
     {
       "name": "B01鎵嬪姩鏍煎瓙",
-      "read": 33,
+      "value": 33,
       "sending": 0,
       "type": "0",
       "address": "DB100.0",
@@ -145,7 +145,7 @@
     },
     {
       "name": "B01瀹氫綅閫熷害",
-      "read": 11,
+      "value": 11,
       "sending": 0,
       "address": "DB100.0",
       "type": "0",
@@ -153,7 +153,7 @@
     },
     {
       "name": "B01褰撳墠鏍煎瓙",
-      "read": 22,
+      "value": 22,
       "sending": 0,
       "address": "DB100.0",
       "type": "0",
@@ -203,7 +203,7 @@
   [
     {
       "name": "B02鎵嬪姩鏍煎瓙",
-      "read": 33,
+      "value": 33,
       "sending": 0,
       "type": "0",
       "address": "DB100.0",
@@ -212,7 +212,7 @@
     },
     {
       "name": "B02瀹氫綅閫熷害",
-      "read": 11,
+      "value": 11,
       "sending": 0,
       "address": "DB100.0",
       "type": "0",
@@ -220,7 +220,7 @@
     },
     {
       "name": "B02褰撳墠鏍煎瓙",
-      "read": 22,
+      "value": 22,
       "sending": 0,
       "address": "DB100.0",
       "type": "0",
@@ -237,9 +237,9 @@
     {
       "button": {
         "name": "鏁呴殰",
-        "value": 0,
+        "value": 1,
         "address": "DB10.0",
-        "state": 0
+        "state": 1
       }
     },
     {
@@ -270,8 +270,8 @@
   [
     {
       "name": "A01瀹炴椂浣嶇疆",
-      "read": 33,
-      "sending": 0,
+      "value": 33,
+      "sending": 4,
       "type": "0",
       "address": "DB100.0",
       "count": 3,
@@ -281,8 +281,8 @@
   [
     {
       "name": "A02瀹炴椂浣嶇疆",
-      "read": 33,
-      "sending": 0,
+      "value": 33,
+      "sending": 5,
       "type": "0",
       "address": "DB100.0",
       "count": 3,
@@ -292,8 +292,8 @@
   [
     {
       "name": "B01瀹炴椂浣嶇疆",
-      "read": 33,
-      "sending": 0,
+      "value": 33,
+      "sending": 6,
       "type": "0",
       "address": "DB100.0",
       "count": 3,
@@ -303,8 +303,8 @@
   [
     {
       "name": "B02瀹炴椂浣嶇疆",
-      "read": 33,
-      "sending": 0,
+      "value": 33,
+      "sending": 7,
       "type": "0",
       "address": "DB100.0",
       "count": 3,
diff --git a/CanadaMes-ui/src/configuration/Manualoneposition2.json b/CanadaMes-ui/src/configuration/Manualoneposition2.json
index e078a5b..5939f8e 100644
--- a/CanadaMes-ui/src/configuration/Manualoneposition2.json
+++ b/CanadaMes-ui/src/configuration/Manualoneposition2.json
@@ -2,7 +2,7 @@
   [
     {
       "name": "鎵嬪姩浣嶇疆",
-      "read": 33,
+      "value": 33,
       "sending": 0,
       "type": "0",
       "address": "DB100.0",
@@ -10,14 +10,14 @@
     },
     {
       "name": "瀹氫綅閫熷害",
-      "read": 11,
+      "value": 11,
       "sending": 0,
       "address": "DB100.0",
       "type": "0"
     },
     {
       "name": "A01缈昏浆瀹炴椂浣嶇疆",
-      "read": 22,
+      "value": 22,
       "sending": 0,
       "address": "DB100.0",
       "type": "0"
@@ -27,7 +27,7 @@
         "name": "A01缈昏浆鍚姩",
         "value": 0,
         "address": "DB10.0",
-        "state": 0
+        "state": 1
       }
     },
     {
@@ -35,7 +35,7 @@
         "name": "鏁呴殰",
         "value": 0,
         "address": "DB10.0",
-        "state": 0
+        "state": 1
       }
     },
     {
@@ -43,7 +43,7 @@
         "name": "澶嶄綅",
         "value": 0,
         "address": "DB10.0",
-        "state": 0
+        "state": 1
       }
     },
     {
@@ -66,7 +66,7 @@
   [
     {
       "name": "鎵嬪姩浣嶇疆",
-      "read": 33,
+      "value": 33,
       "sending": 0,
       "type": "0",
       "address": "DB100.0",
@@ -74,14 +74,14 @@
     },
     {
       "name": "瀹氫綅閫熷害",
-      "read": 11,
+      "value": 11,
       "sending": 0,
       "address": "DB100.0",
       "type": "0"
     },
     {
       "name": "A02缈昏浆瀹炴椂浣嶇疆",
-      "read": 22,
+      "value": 22,
       "sending": 0,
       "address": "DB100.0",
       "type": "0"
@@ -91,7 +91,7 @@
         "name": "A02缈昏浆鍚姩",
         "value": 0,
         "address": "DB10.0",
-        "state": 0
+        "state": 1
       }
     },
     {
@@ -99,7 +99,7 @@
         "name": "鏁呴殰",
         "value": 0,
         "address": "DB10.0",
-        "state": 0
+        "state": 1
       }
     },
     {
@@ -107,7 +107,7 @@
         "name": "澶嶄綅",
         "value": 0,
         "address": "DB10.0",
-        "state": 0
+        "state": 1
       }
     },
     {
diff --git a/CanadaMes-ui/src/configuration/Parameter.json b/CanadaMes-ui/src/configuration/Parameter.json
index 862c4fa..193851f 100644
--- a/CanadaMes-ui/src/configuration/Parameter.json
+++ b/CanadaMes-ui/src/configuration/Parameter.json
@@ -526,7 +526,7 @@
       "name": "A01 turn Target Angle(Manual)",
       "value": 0,
       "sending": 0,
-      "unit": "°",
+      "unit": "掳",
       "state": "1",
       "type": "1",
       "page": "1"
@@ -535,7 +535,7 @@
       "name": "A02 turn Target Angle(Manual)",
       "value": 0,
       "sending": 0,
-      "unit": "°",
+      "unit": "掳",
       "state": "1",
       "type": "1",
       "page": "1"
@@ -544,7 +544,7 @@
       "name": "A01 turn Angle1",
       "value": 0,
       "sending": 0,
-      "unit": "°",
+      "unit": "掳",
       "state": "1",
       "type": "1",
       "page": "1"
@@ -553,7 +553,7 @@
       "name": "A01 turn Angle2",
       "value": 0,
       "sending": 0,
-      "unit": "°",
+      "unit": "掳",
       "state": "1",
       "type": "1",
       "page": "1"
@@ -562,7 +562,7 @@
       "name": "A01 turn Angle3",
       "value": 0,
       "sending": 0,
-      "unit": "°",
+      "unit": "掳",
       "state": "1",
       "type": "1",
       "page": "1"
@@ -571,7 +571,7 @@
       "name": "A01 turn Angle4",
       "value": 0,
       "sending": 0,
-      "unit": "°",
+      "unit": "掳",
       "state": "1",
       "type": "1",
       "page": "1"
@@ -580,7 +580,7 @@
       "name": "A02 turn Angle1",
       "value": 0,
       "sending": 0,
-      "unit": "°",
+      "unit": "掳",
       "state": "1",
       "type": "1",
       "page": "1"
@@ -589,7 +589,7 @@
       "name": "A02 turn Angle2",
       "value": 0,
       "sending": 0,
-      "unit": "°",
+      "unit": "掳",
       "state": "1",
       "type": "1",
       "page": "1"
@@ -598,7 +598,7 @@
       "name": "A02 turn Angle3",
       "value": 0,
       "sending": 0,
-      "unit": "°",
+      "unit": "掳",
       "state": "1",
       "type": "1",
       "page": "1"
@@ -607,7 +607,7 @@
       "name": "A02 turn Angle4",
       "value": 0,
       "sending": 0,
-      "unit": "°",
+      "unit": "掳",
       "state": "1",
       "type": "1",
       "page": "1"
diff --git a/CanadaMes-ui/src/configuration/ServoManualone.json b/CanadaMes-ui/src/configuration/ServoManualone.json
index 2060629..6c558bd 100644
--- a/CanadaMes-ui/src/configuration/ServoManualone.json
+++ b/CanadaMes-ui/src/configuration/ServoManualone.json
@@ -1,342 +1,319 @@
 [
-    
-    [
-      {
-        "name": "A01 鎵�鍦ㄦ牸瀛�",
-        "read": 33,
-        "sending": 0,
-        "type": "0",
-        "address":"DB100.0",
-        "value":0
-      
-      },
-      {
-        "name": "鏁伴噺",
-        "read": 33,
-        "sending": 0,
-        "type": "0",
-        "value":0
-     
-      
-      },
-      {
-        "name": "杩涚墖ID",
-        "read": 33,
-        "sending": 0,
-        "type": "0",
-        "value":0
-     
-      
-      },
-      {
-        "name": "闀垮害",
-        "read": 33,
-        "sending": 0,
-        "type": "0",
-        "value":0
-     
-      
-      },
-      {
-        "name": "楂樺害",
-        "read": 33,
-        "sending": 0,
-        "type": "0",
-        "value":0
-     
-      
-      },
-      {
-        "name": "鍙栫墖鏍煎瓙",
-        "read": 11,
-        "sending": 0,
-        "type": "0",
-        "value":0
-      },
-      {
-        "name": "瀛樼墖鏍煎瓙",
-        "read": 22,
-        "sending": 0,
-        "type": "0",
-        "value":0
-      },
-      {
-        "button": {
-          "name": "鏁呴殰",
-          "value":0,
-          "address":"DB10.0"
-        }
-      },
-      {
-        "button": {
-          "name": "澶嶄綅",
-          "value":0,
-          "address":"DB10.0"
-        }
-      },
-      {
-        "button": {
-          "name": "A01鍗婅嚜鍔�",
-          "value":0,
-          "address":"DB10.0"
-        }
-      },
-      {
-        "button": {
-          "name": "鍗婅嚜鍔ㄥ惎鍔�",
-          "value":0,
-          "address":"DB10.0"
-        }
-      }
-    ],
-    [
-        {
-            "name": "A02 鎵�鍦ㄦ牸瀛�",
-            "read": 33,
-            "sending": 0,
-            "type": "0",
-            "address":"DB100.1",
-            "count":3,
-            "value":0
-          },
-          {
-            "name": "鍙栫墖鏍煎瓙",
-            "read": 11,
-            "sending": 0,
-            "type": "0",
-            "value":0
-          },
-          {
-            "name": "瀛樼墖鏍煎瓙",
-            "read": 22,
-            "sending": 0,
-            "type": "0",
-            "value":0
-          },
-          {
-            "name": "鏁伴噺",
-            "read": 33,
-            "sending": 0,
-            "type": "0",
-            "value":0
-         
-          
-          },
-          {
-            "name": "鍙栫墖ID",
-            "read": 33,
-            "sending": 0,
-            "type": "0",
-            "value":0
-         
-          
-          },
-          {
-            "button": {
-              "name": "鏁呴殰",
-              "value":0,
-              "address":"DB10.0"
-            }
-          },
-          {
-            "button": {
-              "name": "澶嶄綅",
-              "value":0,
-              "address":"DB10.0"
-            }
-          },
-          {
-            "button": {
-              "name": "A02鍗婅嚜鍔�",
-              "value":0,
-              "address":"DB10.0"
-            }
-          },
-          {
-            "button": {
-              "name": "鍗婅嚜鍔ㄥ惎鍔�",
-              "value":0,
-              "address":"DB10.0"
-            }
-          }
-    ],
-   
-    [
-      {
-          "name": "A01缈昏浆瀹炴椂浣嶇疆",
-          "read": 33,
-          "sending": 0,
-          "type": "0",
-          "address":"DB100.2",
-          "count":3,
-          "value":0
-        },
-        
-        
-        {
-          "button": {
-            "name": "鏁呴殰",
-            "value":0,
-            "address":"DB10.0"
-          }
-        },
-        {
-          "button": {
-            "name": "澶嶄綅",
-            "value":0,
-        "address":"DB10.0"
-          }
-        },
-        {
-          "button": {
-            "name": "鏈洖闆�",
-            "value":0,
-        "address":"DB10.0"
-          }
-        },
-        {
-          "button": {
-            "name": "鍥為浂",
-            "value":0,
-        "address":"DB10.0"
-          }
-        }
-  ],[
+  [
     {
-        "name": "A02缈昏浆瀹炴椂浣嶇疆",
-        "read": 33,
-        "sending": 0,
-        "type": "0",
-        "address":"DB100.2",
-        "count":3,
-        "value":0
-      },
-      
-      
-      {
-        "button": {
-          "name": "鏁呴殰",
-          "value":0,
-          "address":"DB10.0"
-        }
-      },
-      {
-        "button": {
-          "name": "澶嶄綅",
-          "value":0,
-      "address":"DB10.0"
-        }
-      },
-      {
-        "button": {
-          "name": "鏈洖闆�",
-          "value":0,
-      "address":"DB10.0"
-        }
-      },
-      {
-        "button": {
-          "name": "鍥為浂",
-          "value":0,
-      "address":"DB10.0"
-        }
+      "name": "A01 鎵�鍦ㄦ牸瀛�",
+      "read": 33,
+      "sending": 0,
+      "type": "0",
+      "address": "DB100.0",
+      "value": 1
+    },
+    {
+      "name": "鏁伴噺",
+      "read": 33,
+      "sending": 0,
+      "type": "0",
+      "value": 1
+    },
+    {
+      "name": "杩涚墖ID",
+      "read": 33,
+      "sending": 0,
+      "type": "0",
+      "value": 1
+    },
+    {
+      "name": "闀垮害",
+      "read": 33,
+      "sending": 0,
+      "type": "0",
+      "value": 1
+    },
+    {
+      "name": "楂樺害",
+      "read": 33,
+      "sending": 0,
+      "type": "0",
+      "value": 1
+    },
+    {
+      "name": "鍙栫墖鏍煎瓙",
+      "read": 11,
+      "sending": 0,
+      "type": "0",
+      "value": 1
+    },
+    {
+      "name": "瀛樼墖鏍煎瓙",
+      "read": 22,
+      "sending": 0,
+      "type": "0",
+      "value": 1
+    },
+    {
+      "button": {
+        "name": "鏁呴殰",
+        "value": 0,
+        "address": "DB10.0"
       }
-], [
-  {
+    },
+    {
+      "button": {
+        "name": "澶嶄綅",
+        "value": 0,
+        "address": "DB10.0"
+      }
+    },
+    {
+      "button": {
+        "name": "A01鍗婅嚜鍔�",
+        "value": 0,
+        "address": "DB10.0"
+      }
+    },
+    {
+      "button": {
+        "name": "鍗婅嚜鍔ㄥ惎鍔�",
+        "value": 0,
+        "address": "DB10.0"
+      }
+    }
+  ],
+  [
+    {
+      "name": "A02 鎵�鍦ㄦ牸瀛�",
+      "read": 33,
+      "sending": 0,
+      "type": "0",
+      "address": "DB100.1",
+      "count": 3,
+      "value": 0
+    },
+    {
+      "name": "鍙栫墖鏍煎瓙",
+      "read": 11,
+      "sending": 0,
+      "type": "0",
+      "value": 0
+    },
+    {
+      "name": "瀛樼墖鏍煎瓙",
+      "read": 22,
+      "sending": 0,
+      "type": "0",
+      "value": 0
+    },
+    {
+      "name": "鏁伴噺",
+      "read": 33,
+      "sending": 0,
+      "type": "0",
+      "value": 0
+    },
+    {
+      "name": "鍙栫墖ID",
+      "read": 33,
+      "sending": 0,
+      "type": "0",
+      "value": 0
+    },
+    {
+      "button": {
+        "name": "鏁呴殰",
+        "value": 0,
+        "address": "DB10.0"
+      }
+    },
+    {
+      "button": {
+        "name": "澶嶄綅",
+        "value": 0,
+        "address": "DB10.0"
+      }
+    },
+    {
+      "button": {
+        "name": "A02鍗婅嚜鍔�",
+        "value": 0,
+        "address": "DB10.0"
+      }
+    },
+    {
+      "button": {
+        "name": "鍗婅嚜鍔ㄥ惎鍔�",
+        "value": 0,
+        "address": "DB10.0"
+      }
+    }
+  ],
+  [
+    {
+      "name": "A01缈昏浆瀹炴椂浣嶇疆",
+      "read": 33,
+      "sending": 0,
+      "type": "0",
+      "address": "DB100.2",
+      "count": 3,
+      "value": 0
+    },
+    {
+      "button": {
+        "name": "鏁呴殰",
+        "value": 0,
+        "address": "DB10.0"
+      }
+    },
+    {
+      "button": {
+        "name": "澶嶄綅",
+        "value": 0,
+        "address": "DB10.0"
+      }
+    },
+    {
+      "button": {
+        "name": "鏈洖闆�",
+        "value": 0,
+        "address": "DB10.0"
+      }
+    },
+    {
+      "button": {
+        "name": "鍥為浂",
+        "value": 0,
+        "address": "DB10.0"
+      }
+    }
+  ],
+  [
+    {
+      "name": "A02缈昏浆瀹炴椂浣嶇疆",
+      "read": 33,
+      "sending": 0,
+      "type": "0",
+      "address": "DB100.2",
+      "count": 3,
+      "value": 0
+    },
+    {
+      "button": {
+        "name": "鏁呴殰",
+        "value": 0,
+        "address": "DB10.0"
+      }
+    },
+    {
+      "button": {
+        "name": "澶嶄綅",
+        "value": 0,
+        "address": "DB10.0"
+      }
+    },
+    {
+      "button": {
+        "name": "鏈洖闆�",
+        "value": 0,
+        "address": "DB10.0"
+      }
+    },
+    {
+      "button": {
+        "name": "鍥為浂",
+        "value": 0,
+        "address": "DB10.0"
+      }
+    }
+  ],
+  [
+    {
       "name": "B01 鎵�鍦ㄦ牸瀛�",
       "read": 33,
       "sending": 0,
       "type": "0",
-      "address":"DB100.2",
-      "count":3,
-      "value":0
+      "address": "DB100.2",
+      "count": 3,
+      "value": 0
     },
     {
       "name": "鐩爣鏍煎瓙",
       "read": 11,
       "sending": 0,
       "type": "0",
-      "value":0
+      "value": 0
     },
-    
     {
       "button": {
         "name": "鏁呴殰",
-        "value":0,
-        "address":"DB10.0"
+        "value": 0,
+        "address": "DB10.0"
       }
     },
     {
       "button": {
         "name": "澶嶄綅",
-        "value":0,
-    "address":"DB10.0"
+        "value": 0,
+        "address": "DB10.0"
       }
-    } ,{
+    },
+    {
       "button": {
         "name": "鏈洖闆�",
-        "value":0,
-    "address":"DB10.0"
+        "value": 0,
+        "address": "DB10.0"
       }
     },
     {
       "button": {
         "name": "鍥為浂",
-        "value":0,
-    "address":"DB10.0"
+        "value": 0,
+        "address": "DB10.0"
       }
     }
-],
-    
-    [
-        {
-            "name": "B02 鎵�鍦ㄦ牸瀛�",
-            "read": 33,
-            "sending": 0,
-            "type": "0",
-            "address":"DB100.3",
-            "count":3,
-            "value":0
-          },
-          {
-            "name": "鐩爣鏍煎瓙",
-            "read": 11,
-            "sending": 0,
-            "type": "0",
-            "value":0
-          },
-          
-          {
-            "button": {
-              "name": "鏁呴殰",
-              "value":0,
-              "address":"DB10.0"
-            }
-          },
-          {
-            "button": {
-              "name": "澶嶄綅",
-              "value":0,
-              "address":"DB10.0"
-
-            }
-          } ,{
-            "button": {
-              "name": "鏈洖闆�",
-              "value":0,
-          "address":"DB10.0"
-            }
-          },
-          {
-            "button": {
-              "name": "鍥為浂",
-              "value":0,
-          "address":"DB10.0"
-            }
-          }
-          
-    ]
-     
-    
+  ],
+  [
+    {
+      "name": "B02 鎵�鍦ㄦ牸瀛�",
+      "read": 33,
+      "sending": 0,
+      "type": "0",
+      "address": "DB100.3",
+      "count": 3,
+      "value": 0
+    },
+    {
+      "name": "鐩爣鏍煎瓙",
+      "read": 11,
+      "sending": 0,
+      "type": "0",
+      "value": 0
+    },
+    {
+      "button": {
+        "name": "鏁呴殰",
+        "value": 0,
+        "address": "DB10.0"
+      }
+    },
+    {
+      "button": {
+        "name": "澶嶄綅",
+        "value": 0,
+        "address": "DB10.0"
+      }
+    },
+    {
+      "button": {
+        "name": "鏈洖闆�",
+        "value": 0,
+        "address": "DB10.0"
+      }
+    },
+    {
+      "button": {
+        "name": "鍥為浂",
+        "value": 0,
+        "address": "DB10.0"
+      }
+    }
   ]
-  
\ No newline at end of file
+]
\ No newline at end of file
diff --git a/CanadaMes-ui/src/configuration/parameter2.json b/CanadaMes-ui/src/configuration/parameter2.json
index e7956d1..442b36e 100644
--- a/CanadaMes-ui/src/configuration/parameter2.json
+++ b/CanadaMes-ui/src/configuration/parameter2.json
@@ -1,316 +1,298 @@
 [
-    
-    [
-      {
-        "button": {
-          "name": "D01鎵嬪姩鐘舵��",
-          "value":0,
-      "address":"DB10.0"
-      },"type": "4"
+  [
+    {
+      "button": {
+        "name": "D01鎵嬪姩鐘舵��",
+        "value": 0,
+        "address": "DB10.0"
       },
-      {
-        "button": {
-          "name": "娓呴櫎ID",
-          "value":0,
-      "address":"DB10.0"
-        },"type": "3"
+      "type": "4"
+    },
+    {
+      "button": {
+        "name": "娓呴櫎ID",
+        "value": 0,
+        "address": "DB10.0"
       },
-      {
-        "name": "ID",
-        "read": 33,
-        "sending": 0,
-        "type": "0",
-        "value":0
-   
-      }]
-      ,[
-      {
-        "button": {
-          "name": "D02鎵嬪姩鐘舵��",
-          "value":0,
-      "address":"DB10.0"
-      },"type": "4"
+      "type": "3"
+    },
+    {
+      "name": "ID",
+      "read": 33,
+      "sending": 0,
+      "type": "0",
+      "value": 0
+    }
+  ],
+  [
+    {
+      "button": {
+        "name": "D02鎵嬪姩鐘舵��",
+        "value": 0,
+        "address": "DB10.0"
       },
-      {
-        "button": {
-          "name": "娓呴櫎ID",
-          "value":0,
-      "address":"DB10.0"
-        },"type": "3"
+      "type": "4"
+    },
+    {
+      "button": {
+        "name": "娓呴櫎ID",
+        "value": 0,
+        "address": "DB10.0"
       },
-      {
-        "name": "ID",
-        "read": 33,
-        "sending": 0,
-        "type": "0",
-        "value":0
-   
-      }
-    ]
-    ,[
-      {
-        "button": {
-          "name": "D03鎵嬪姩鐘舵��",
-          "value":0,
-      "address":"DB10.0"
-      },"type": "4"
+      "type": "3"
+    },
+    {
+      "name": "ID",
+      "read": 33,
+      "sending": 0,
+      "type": "0",
+      "value": 0
+    }
+  ],
+  [
+    {
+      "button": {
+        "name": "D03鎵嬪姩鐘舵��",
+        "value": 0,
+        "address": "DB10.0"
       },
-      {
-        "button": {
-          "name": "娓呴櫎ID",
-          "value":0,
-      "address":"DB10.0"
-        },"type": "3"
+      "type": "4"
+    },
+    {
+      "button": {
+        "name": "娓呴櫎ID",
+        "value": 0,
+        "address": "DB10.0"
       },
-      {
-        "name": "ID",
-        "read": 33,
-        "sending": 0,
-        "type": "0",
-        "value":0
-   
-      }
-    ]
-    ,[
-      {
-        "button": {
-          "name": "D04鎵嬪姩鐘舵��",
-          "value":0,
-      "address":"DB10.0"
-      },"type": "4"
+      "type": "3"
+    },
+    {
+      "name": "ID",
+      "read": 33,
+      "sending": 0,
+      "type": "0",
+      "value": 0
+    }
+  ],
+  [
+    {
+      "button": {
+        "name": "D04鎵嬪姩鐘舵��",
+        "value": 0,
+        "address": "DB10.0"
       },
-      {
-        "button": {
-          "name": "娓呴櫎ID",
-          "value":0,
-      "address":"DB10.0"
-        },"type": "3"
+      "type": "4"
+    },
+    {
+      "button": {
+        "name": "娓呴櫎ID",
+        "value": 0,
+        "address": "DB10.0"
       },
-      {
-        "name": "ID",
-        "read": 33,
-        "sending": 0,
-        "type": "0",
-        "value":0
-   
-      }
-      
-     
-    ]
-
-     ,[
-      {
-        "button": {
-          "name": "D05鎵嬪姩鐘舵��",
-          "value":0,
-      "address":"DB10.0"
-      },"type": "4"
+      "type": "3"
+    },
+    {
+      "name": "ID",
+      "read": 33,
+      "sending": 0,
+      "type": "0",
+      "value": 0
+    }
+  ],
+  [
+    {
+      "button": {
+        "name": "D05鎵嬪姩鐘舵��",
+        "value": 0,
+        "address": "DB10.0"
       },
-      {
-        "button": {
-          "name": "娓呴櫎ID",
-          "value":0,
-      "address":"DB10.0"
-        },"type": "3"
+      "type": "4"
+    },
+    {
+      "button": {
+        "name": "娓呴櫎ID",
+        "value": 0,
+        "address": "DB10.0"
       },
-      {
-        "name": "ID",
-        "read": 33,
-        "sending": 0,
-        "type": "0",
-        "value":0
-   
-      }
-      
-     
-    ]
-    ,[
-      {
-        "button": {
-          "name": "D06鎵嬪姩鐘舵��",
-          "value":0,
-      "address":"DB10.0"
-      },"type": "4"
+      "type": "3"
+    },
+    {
+      "name": "ID",
+      "read": 33,
+      "sending": 0,
+      "type": "0",
+      "value": 0
+    }
+  ],
+  [
+    {
+      "button": {
+        "name": "D06鎵嬪姩鐘舵��",
+        "value": 0,
+        "address": "DB10.0"
       },
-      {
-        "button": {
-          "name": "娓呴櫎ID",
-          "value":0,
-      "address":"DB10.0"
-        },"type": "3"
+      "type": "4"
+    },
+    {
+      "button": {
+        "name": "娓呴櫎ID",
+        "value": 0,
+        "address": "DB10.0"
       },
-      {
-        "name": "ID",
-        "read": 33,
-        "sending": 0,
-        "type": "0",
-        "value":0
-   
-      }
-      
-     
-    ] ,[
-      {
-        "button": {
-          "name": "A01鎵嬪姩鐘舵��",
-          "value":0,
-      "address":"DB10.0"
-      },"type": "4"
+      "type": "3"
+    },
+    {
+      "name": "ID",
+      "read": 33,
+      "sending": 0,
+      "type": "0",
+      "value": 0
+    }
+  ],
+  [
+    {
+      "button": {
+        "name": "A01鎵嬪姩鐘舵��",
+        "value": 0,
+        "address": "DB10.0"
       },
-      {
-        "button": {
-          "name": "娓呴櫎ID",
-          "value":0,
-      "address":"DB10.0"
-        },"type": "3"
+      "type": "4"
+    },
+    {
+      "button": {
+        "name": "娓呴櫎ID",
+        "value": 0,
+        "address": "DB10.0"
       },
-      {
-        "name": "ID1",
-        "read": 33,
-        "sending": 0,
-        "type": "0",
-        "value":0
-   
-      },{
-        "name": "ID2",
-        "read": 33,
-        "sending": 0,
-        "type": "0",
-        "value":0
-   
-      }
-      
-     
-    ]
-    
-    ,[
-      {
-        "button": {
-          "name": "A02鎵嬪姩鐘舵��",
-          "value":0,
-      "address":"DB10.0"
-      },"type": "4"
+      "type": "3"
+    },
+    {
+      "name": "ID1",
+      "read": 33,
+      "sending": 0,
+      "type": "0",
+      "value": 0
+    },
+    {
+      "name": "ID2",
+      "read": 33,
+      "sending": 0,
+      "type": "0",
+      "value": 0
+    }
+  ],
+  [
+    {
+      "button": {
+        "name": "A02鎵嬪姩鐘舵��",
+        "value": 0,
+        "address": "DB10.0"
       },
-      {
-        "button": {
-          "name": "娓呴櫎ID",
-          "value":0,
-      "address":"DB10.0"
-        },"type": "3"
+      "type": "4"
+    },
+    {
+      "button": {
+        "name": "娓呴櫎ID",
+        "value": 0,
+        "address": "DB10.0"
       },
-      {
-        "name": "ID",
-        "read": 33,
-        "sending": 0,
-        "type": "0",
-        "value":0
-   
-      }
-      
-     
-    ]
-    ,[
-      {
-        "button": {
-          "name": "B01鎵嬪姩鐘舵��",
-          "value":0,
-      "address":"DB10.0"
-        },"type": "4"
+      "type": "3"
+    },
+    {
+      "name": "ID",
+      "read": 33,
+      "sending": 0,
+      "type": "0",
+      "value": 0
+    }
+  ],
+  [
+    {
+      "button": {
+        "name": "B01鎵嬪姩鐘舵��",
+        "value": 0,
+        "address": "DB10.0"
       },
-      {
-        "button": {
-          "name": "娓呴櫎ID",
-          "value":0,
-      "address":"DB10.0"
-        },"type": "3"
+      "type": "4"
+    },
+    {
+      "button": {
+        "name": "娓呴櫎ID",
+        "value": 0,
+        "address": "DB10.0"
       },
-      {
-        "name": "ID",
-        "read": 33,
-        "sending": 0,
-        "type": "0",
-        "value":0
-   
-      }
-      
-     
-    ],[
-      {
-        "button": {
-          "name": "B02鎵嬪姩鐘舵��",
-          "value":0,
-      "address":"DB10.0"
-      },"type": "4"
+      "type": "3"
+    },
+    {
+      "name": "ID",
+      "read": 33,
+      "sending": 0,
+      "type": "0",
+      "value": 0
+    }
+  ],
+  [
+    {
+      "button": {
+        "name": "B02鎵嬪姩鐘舵��",
+        "value": 0,
+        "address": "DB10.0"
       },
-      {
-        "button": {
-          "name": "娓呴櫎ID",
-          "value":0,
-      "address":"DB10.0"
-        },"type": "3"
+      "type": "4"
+    },
+    {
+      "button": {
+        "name": "娓呴櫎ID",
+        "value": 0,
+        "address": "DB10.0"
       },
-      {
-        "name": "ID",
-        "read": 33,
-        "sending": 0,
-        "type": "0",
-        "value":0
-   
-      }
-      
-      
-     
-    ]
-    
-    ,[
-      {
-        "name": "鎵弿鏋壂鐮佺殑ID",
-        "read": 66,
-        "sending": 0,
-        "type": "0",
-        "value":0
-   
-      }
-      
-     
-    ]
-    ,[
-      {
-        "name": "A01褰撳墠鏍煎瓙",
-        "read": 333,
-        "sending": 0,
-        "type": "0",
-        "value":0
-   
-      },
-      {
-        "name": "A02鎵�鍦ㄦ牸瀛�",
-        "read": 333,
-        "sending": 0,
-        "type": "0",
-        "value":0
-   
-      },
-      {
-        "name": "B01鎵�鍦ㄦ牸瀛�",
-        "read": 333,
-        "sending": 0,
-        "type": "0",
-        "value":0
-   
-      },
-      {
-        "name": "B02鎵�鍦ㄦ牸瀛�",
-        "read": 333,
-        "sending": 0,
-        "type": "0",
-        "value":0
-   
-      }
-      
-     
-    ]
-   
-    
+      "type": "3"
+    },
+    {
+      "name": "ID",
+      "read": 33,
+      "sending": 0,
+      "type": "0",
+      "value": 0
+    }
+  ],
+  [
+    {
+      "name": "鎵弿鏋壂鐮佺殑ID",
+      "read": 66,
+      "sending": 0,
+      "type": "0",
+      "value": 0
+    }
+  ],
+  [
+    {
+      "name": "A01褰撳墠鏍煎瓙",
+      "read": 333,
+      "sending": 0,
+      "type": "0",
+      "value": 0
+    },
+    {
+      "name": "A02鎵�鍦ㄦ牸瀛�",
+      "read": 333,
+      "sending": 0,
+      "type": "0",
+      "value": 0
+    },
+    {
+      "name": "B01鎵�鍦ㄦ牸瀛�",
+      "read": 333,
+      "sending": 0,
+      "type": "0",
+      "value": 0
+    },
+    {
+      "name": "B02鎵�鍦ㄦ牸瀛�",
+      "read": 333,
+      "sending": 0,
+      "type": "0",
+      "value": 0
+    }
   ]
-  
\ No newline at end of file
+]
\ No newline at end of file
diff --git a/CanadaMes-ui/src/lang/locales/en-US.json b/CanadaMes-ui/src/lang/locales/en-US.json
index f27a908..89c7d18 100644
--- a/CanadaMes-ui/src/lang/locales/en-US.json
+++ b/CanadaMes-ui/src/lang/locales/en-US.json
@@ -305,6 +305,10 @@
   "Glass information corresponding to aluminum frame":"Glass information corresponding to aluminum frame",
   "In the cage":"In the cage",
   "Flip":"Flip",
-  "In the queue":"In the queue"
+  "In the queue":"In the queue",
+  "Normal":"Normal",
+  "Entering":"Entering",
+  "Outing":"Outing",
+  "Suspend":"Suspend"
 
 }
\ No newline at end of file
diff --git a/CanadaMes-ui/src/lang/locales/zh-CN.json b/CanadaMes-ui/src/lang/locales/zh-CN.json
index 314cee4..9ea2cfd 100644
--- a/CanadaMes-ui/src/lang/locales/zh-CN.json
+++ b/CanadaMes-ui/src/lang/locales/zh-CN.json
@@ -301,6 +301,10 @@
   "In the queue":"鍦ㄩ槦鍒�",
   "Enter the Frame No":"璇疯緭鍏ラ摑妗唅d",
   "Manually Infeed Glass":"鎵嬪姩杩涚墖",
+  "Normal":"姝e父",
+  "Entering":"姝e湪杩�",
+  "Outing":"姝e湪鍑�",
+  "Suspend":"鏆傚仠",
   "langparameter": {
     "conveyor Velocity(Auto FAST)": "D01-D06 鐨甫杈撻�佽嚜鍔ㄥ揩閫�",
     "conveyor Velocity(Auto SLOW)": "D01-D06 鐨甫杈撻�佽嚜鍔ㄦ參閫�",
diff --git a/CanadaMes-ui/src/views/Electrical/Action.vue b/CanadaMes-ui/src/views/Electrical/Action.vue
index 68a1f2f..f27af2a 100644
--- a/CanadaMes-ui/src/views/Electrical/Action.vue
+++ b/CanadaMes-ui/src/views/Electrical/Action.vue
@@ -12,10 +12,11 @@
       }}</router-link>
       <router-link to="/Electrical/Sign" tag="el-button" type="text" active-class="blue-button">{{ $t('Sign')
       }}</router-link>
-       <router-link to="/Electrical/Servomanual" tag="el-button" type="text" active-class="blue-button">{{ $t('Servo Manual')
+      <router-link to="/Electrical/Servomanual" tag="el-button" type="text" active-class="blue-button">{{
+        $t('ServoManual')
       }}</router-link>
     </el-breadcrumb>
-    
+
     <div>Action</div>
     <el-form label-width="100px" style="display: flex;flex-wrap: wrap;" :model="{ messagepack }">
       <!-- <div class="kuai_div" v-for="item in record.xyData" :key="item.value">
@@ -47,62 +48,10 @@
       jsonData: data,
       activeButton: '',
       record: {
-        params: [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],
-        canshu: [
-          'D01 VFD conveyor',
-          'D02 VFD conveyor',
-          'D03 VFD conveyor',
-          'D04 VFD conveyor',
-          'D05 VFD conveyor',
-          'D06 VFD conveyor',
-          'A01 VFD conveyor',
-          'A02 VFD conveyor',
-          'B01 VFD conveyor',
-          'B02 VFD conveyor',
-          'A01 SERVE TURN JOG+',
-          'A02 SERVE TURN JOG-',
-          'A01 SERVE TRAVEL JOG+',
-          'A02 SERVE TRAVEL JOG-',
-          'B01 SERVE TRAVEL JOG+',
-          'B02 SERVE TRAVEL JOG-',
-          'A01 SERVE TURN POS',
-          'A02 SERVE TURN POS',
-          'A01 SERVE TRAVEL POS',
-          'A02 SERVE TRAVEL POS',
-          'B01 SERVE TRAVEL POS',
-          'B02 SERVE TRAVEL POS',
-          'B01 YV TURN',
-          'B01 YV UP DOWN',
-          'B02 YV TURN',
-          'B02 YV UP DOWN',
-        ],
+        params: [],
+
         xyData: [
-          { name: 'D01 VFD conveyor', value: "0" },
-          { name: 'D02 VFD conveyor', value: "0" },
-          { name: 'D03 VFD conveyor', value: "0" },
-          { name: 'D04 VFD conveyor', value: "0" },
-          { name: 'D05 VFD conveyor', value: "0" },
-          { name: 'D06 VFD conveyor', value: "0" },
-          { name: 'A01 VFD conveyor', value: "0" },
-          { name: 'A02 VFD conveyor', value: "0" },
-          { name: 'B01 VFD conveyor', value: "0" },
-          { name: 'B02 VFD conveyor', value: "0" },
-          { name: 'A01 SERVE TURN JOG+', value: "0" },
-          { name: 'A02 SERVE TURN JOG-', value: "0" },
-          { name: 'A01 SERVE TRAVEL JOG+', value: "0" },
-          { name: 'A02 SERVE TRAVEL JOG-', value: "0" },
-          { name: 'B01 SERVE TRAVEL JOG+', value: "0" },
-          { name: 'B02 SERVE TRAVEL JOG-', value: "0" },
-          { name: 'A01 SERVE TURN POS', value: "0" },
-          { name: 'A02 SERVE TURN POS', value: "0" },
-          { name: 'A01 SERVE TRAVEL POS', value: "0" },
-          { name: 'A02 SERVE TRAVEL POS', value: "0" },
-          { name: 'B01 SERVE TRAVEL POS', value: "0" },
-          { name: 'B02 SERVE TRAVEL POS', value: "0" },
-          { name: 'B01 YV TURN', value: "0" },
-          { name: 'B01 YV UP DOWN', value: "0" },
-          { name: 'B02 YV TURN', value: "0" },
-          { name: 'B02 YV UP DOWN', value: "0" },
+
         ]
         ,
       },
@@ -153,13 +102,25 @@
           }
 
           let obj = JSON.parse(msg.data);
-
+          this.record.params[0] = obj.params[0];
+          // console.log(obj.params);
           if (obj.params) {
-            this.record.params[0] = obj.params[0];
-            for (let a = 0; a <= this.record.params[0].length - 1; a++) {
-              this.record.xyData[a].name = this.jsonData.action[a].name;
-              this.record.xyData[a].value = this.record.params[0][a].toString();
+
+            this.record.xyData = this.jsonData.action;
+
+            for (let a = 0; a < this.record.xyData.length; a++) {
+              if (this.record.params[0][a]) {
+                this.record.xyData[a].value = this.record.params[0][a].toString();
+              }
+
             }
+
+            this.record.xyData = this.jsonData.action.filter(item => {
+              return item.state != 0;
+            }
+
+            );
+
             const language = this.$i18n.locale;
             if (language === 'en-US') {
               this.replaceChineseWithEnglish();
@@ -184,14 +145,14 @@
     },
     send () {
       this.messagepack.data = this.record.xyData.map(item => parseInt(item.value)); // 杞崲涓烘暣鏁版暟缁�
-      //console.log(this.messagepack);
+      console.log(this.messagepack);
       socket?.send(JSON.stringify(this.messagepack));
     },
     //璇█杞崲
     replaceChineseWithEnglish () {
       const translation = this.$t('langActions');
       this.record.xyData = this.record.xyData.map(item => { return { name: translation[item.name] || item.name, value: item.value }; });
-      console.log(translation);
+
     },
 
   }
diff --git a/CanadaMes-ui/src/views/Electrical/ManualJog.vue b/CanadaMes-ui/src/views/Electrical/ManualJog.vue
index 1e5f134..48c925a 100644
--- a/CanadaMes-ui/src/views/Electrical/ManualJog.vue
+++ b/CanadaMes-ui/src/views/Electrical/ManualJog.vue
@@ -45,12 +45,12 @@
       }}</router-link>
     </el-breadcrumb>
 
-    <el-row :gutter="20">
-      <el-col :span="18" v-for="(dataGroup, groupIndex) in jsonData" :key="groupIndex">
+    <el-row :gutter="1">
+      <el-col :span="24" v-for="(dataGroup, groupIndex) in jsonData" :key="groupIndex">
         <el-card class="json-block" style="width:100%;">
 
-          <div class="button-row" style="display: flex; justify-content: space-between;">
-            <div v-for="(item, itemIndex) in dataGroup" :key="itemIndex">
+          <div class="button-row" style="display: flex; justify-content: flex-start;flex-wrap:wrap;">
+            <div v-for="(item, itemIndex) in dataGroup" :key="itemIndex" style="margin: 10px;">
               <el-button v-if="item.button" :name="item.button.name" :class="getStatusClass(item.button.value)"
                 class="action-button" @click="updateButtonValue(dataGroup, itemIndex); submitDataToBackend();">{{
                   item.button.name
@@ -67,7 +67,7 @@
 <script>
 import LanguageMixin from '../../lang/LanguageMixin'
 import data from '../../configuration/ManualJog'
-
+let socket;
 export default {
   name: "ManualJog",
   mixins: [LanguageMixin],
@@ -76,6 +76,11 @@
       jsonData: data // 鍔犺浇鏁翠釜data.json鏂囦欢浣滀负jsonData
     }
   },
+  created () {
+    this.initWebSocket();
+    // console.log('jsonData:', this.jsonData); 
+
+  },
   methods: {
     updateButtonValue (dataGroup, itemIndex) {
       this.$set(dataGroup[itemIndex].button, 'value', 1); // 鐐瑰嚮鎸夐挳鍚庡皢鍊兼敼涓�1
@@ -83,17 +88,21 @@
     submitDataToBackend () {
       const inputData = this.jsonData.map(dataGroup => {
         return dataGroup.map(item => {
-          if (item.type === '0') {
-            return { name: item.name, value: item.value, address: item.address };
-          } else if (item.button) {
-            return { name: item.button.name, value: item.button.value, address: item.button.address };
+          if (item.type === '3') {
+            return { value: item.button.value };
           }
           return null;
         });
       });
 
-      // 妯℃嫙鎻愪氦鏁版嵁鍒板悗绔殑鎿嶄綔锛屽疄闄呮儏鍐典笅闇�瑕佹牴鎹綘鐨勫悗绔疉PI杩涜淇敼
-      console.log('鎻愪氦浠ヤ笅鏁版嵁鍒板悗绔�:', inputData);
+      const values = inputData.flat().filter(item => item !== null).map(item => item.value);
+
+      const jsonObject = { data: values };
+
+      // 鎻愪氦鏁版嵁鍒板悗绔�
+      const jsonString = JSON.stringify(jsonObject);
+      console.log('Type涓�3鐨剉alue:', jsonString);
+      socket?.send(jsonString);
 
     },
     //鏍规嵁璇诲彇PLC鐨勫�硷紝鏍规嵁鍚嶇О鏀瑰彉棰滆壊1鎵撳紑锛�0鍏抽棴
@@ -106,6 +115,75 @@
         return "dow";
       }
 
+    },
+    initWebSocket () {
+      let viewname = "ManualJog";
+
+      if (typeof WebSocket === "undefined") {
+        console.log("鎮ㄧ殑娴忚鍣ㄤ笉鏀寔WebSocket");
+      } else {
+        let socketUrl = "ws://" + "localhost:8888" + "/springboot-vue3/api/talk/" + viewname;
+
+        if (socket != null) {
+          socket.close();
+          socket = null;
+        }
+
+        // 寮�鍚竴涓獁ebsocket鏈嶅姟
+        socket = new WebSocket(socketUrl);
+
+        // 鎵撳紑浜嬩欢
+        socket.onopen = function () {
+          console.log("websocket宸叉墦寮�");
+        };
+
+        // 鏀跺埌娑堟伅
+        socket.onmessage = (msg) => {
+          if (!msg.data) {
+            return; // 濡傛灉鏀跺埌绌烘暟鎹紝鍒欑洿鎺ヨ繑鍥烇紝涓嶆墽琛屽悗缁�昏緫
+          }
+
+          let obj = JSON.parse(msg.data);
+
+          const jsonData2 = this.jsonData;
+
+          // 濡傛灉榧犳爣涓嶅湪杈撳叆妗嗗唴锛屾洿鏂拌緭鍏ユ鐨勫��
+          // this.submitDataToBackend()
+          const parms = obj.params;
+          // const xiaoche = obj.params[3];
+
+          //console.log(parms);
+
+
+          for (let i = 0; i < jsonData2.length; i++) {
+            let arr = jsonData2[i];
+            for (let j = 0; j < arr.length; j++) {
+              let obj = arr[j];
+              obj.button.value = parms[0][j];
+
+            }
+
+          }
+
+
+
+        };
+
+        // 鍏抽棴浜嬩欢
+        socket.onclose = function () {
+          console.log("websocket宸插叧闂�");
+        };
+
+        // 鍙戠敓閿欒浜嬩欢
+        socket.onerror = function () {
+          console.log("websocket鍙戠敓浜嗛敊璇�");
+        };
+
+      }
+    },
+    send () {
+
+      socket?.send(JSON.stringify(this.messagepack));
     }
   }
 }
diff --git a/CanadaMes-ui/src/views/Electrical/ManualonePosition.vue b/CanadaMes-ui/src/views/Electrical/ManualonePosition.vue
index 5cc3459..516bf6c 100644
--- a/CanadaMes-ui/src/views/Electrical/ManualonePosition.vue
+++ b/CanadaMes-ui/src/views/Electrical/ManualonePosition.vue
@@ -57,9 +57,10 @@
           </div>
           <div class="button-row" style="display: flex; justify-content: space-between;">
             <div v-for="(item, itemIndex) in dataGroup" :key="itemIndex">
-              <el-button v-if="item.button && item.button.state != 0" :name="item.button.name" class="action-button"
-                @click="updateButtonValue(dataGroup, itemIndex); submitDataToBackend();">{{ item.button.name
-                }}</el-button>
+              <el-button v-if="item.button && item.button.state != 0" :name="item.button.name" v-model="item.button.value"
+                :class="{ 'action-button': true, 'error-button': item.button.name === '鏁呴殰' && item.button.value === 1 }"
+                @click="updateButtonValue(dataGroup, itemIndex); submitDataToBackend(item.button.name);">{{
+                  item.button.name }}</el-button>
             </div>
           </div>
         </el-card>
@@ -72,35 +73,313 @@
 <script>
 import LanguageMixin from '../../lang/LanguageMixin'
 import data from '../../configuration/Manualoneposition'
+import { throttle } from 'lodash';
+let socket;
 export default {
   name: "ManualonePosition",
   mixins: [LanguageMixin],
   data () {
     return {
-      jsonData: data, // 鍔犺浇鏁翠釜data.json鏂囦欢浣滀负jsonData
-      RenderingCollections: []
+      jsonData: data,
+
+      // 鍔犺浇鏁翠釜data.json鏂囦欢浣滀负jsonData
     }
+  },
+  created () {
+    this.initWebSocket();
+    // console.log('jsonData:', this.jsonData); 
+
   },
   methods: {
     updateButtonValue (dataGroup, itemIndex) {
-      this.$set(dataGroup[itemIndex].button, 'value', 1); // 鐐瑰嚮鎸夐挳鍚庡皢鍊兼敼涓�1
+      // 灏嗗綋鍓嶆寜閽殑鍊艰涓�1
+
+      this.$set(dataGroup[itemIndex].button, 'value', 1);
+
+
+
     },
-    submitDataToBackend () {
-      const inputData = this.jsonData.map(dataGroup => {
-        return dataGroup.map(item => {
-          if (item.type === '0') {
-            return { name: item.name, value: item.value, address: item.address };
-          } else if (item.button) {
-            return { name: item.button.name, value: item.button.value, address: item.button.address };
+    submitDataToBackend (currentButtonName) {
+      if (currentButtonName === 'A01鍚姩') {
+        const data = [];
+
+        for (let i = 0; i < 1; i++) {
+          const inputData = this.jsonData[i].filter(item => item.type === '0').map(item => {
+            return { value: item.value };
+          });
+
+          const values = inputData.map(item => item.value);
+
+          data.push(values);
+        }
+
+
+
+        const jsonObject = { data };
+
+        // 鎻愪氦鏁版嵁鍒板悗绔�
+        const jsonString = JSON.stringify(jsonObject);
+        console.log('鎵�鏈塗ype涓�0鐨剉alue:', jsonString);
+        socket?.send(jsonString);
+
+      }
+
+      if (currentButtonName === 'A02鍚姩') {
+        const data = [];
+
+        for (let i = 1; i < 2; i++) {
+          const inputData = this.jsonData[i].filter(item => item.type === '0').map(item => {
+            return { value: item.value };
+          });
+
+          const values = inputData.map(item => item.value);
+          data.unshift([]);
+          data.push(values);
+        }
+
+
+
+        const jsonObject = { data };
+
+        // 鎻愪氦鏁版嵁鍒板悗绔�
+        const jsonString = JSON.stringify(jsonObject);
+        console.log('鎵�鏈塗ype涓�0鐨剉alue:', jsonString);
+        socket?.send(jsonString);
+
+      }
+
+      if (currentButtonName === 'B01鍚姩') {
+        const data = [];
+
+        for (let i = 2; i < 3; i++) {
+          const inputData = this.jsonData[i].filter(item => item.type === '0').map(item => {
+            return { value: item.value };
+          });
+
+          const values = inputData.map(item => item.value);
+          data.unshift([], []);
+          data.push(values);
+        }
+
+
+
+        const jsonObject = { data };
+
+        // 鎻愪氦鏁版嵁鍒板悗绔�
+        const jsonString = JSON.stringify(jsonObject);
+        console.log('鎵�鏈塗ype涓�0鐨剉alue:', jsonString);
+        socket?.send(jsonString);
+
+      }
+
+      if (currentButtonName === 'B02鍚姩') {
+        const data = [];
+
+        for (let i = 3; i < 4; i++) {
+          const inputData = this.jsonData[i].filter(item => item.type === '0').map(item => {
+            return { value: item.value };
+          });
+
+          const values = inputData.map(item => item.value);
+          data.unshift([], [], []);
+          data.push(values);
+        }
+
+
+
+        const jsonObject = { data };
+
+        // 鎻愪氦鏁版嵁鍒板悗绔�
+        const jsonString = JSON.stringify(jsonObject);
+        console.log('鎵�鏈塗ype涓�0鐨剉alue:', jsonString);
+        socket?.send(jsonString);
+
+      }
+
+      if (currentButtonName === '鏁呴殰') {
+
+        const data2 = [];
+        const resetButtonValues = this.jsonData.map(item => {
+          const buttonItem = item.find(subItem => subItem.button && subItem.button.name === '鏁呴殰');
+          return buttonItem ? buttonItem.button.value : null;
+        }).filter(value => value !== null);
+
+        // 灏嗗緱鍒扮殑鍊兼坊鍔犲埌 data 鏁扮粍涓�
+        data2.push(...resetButtonValues);
+        data2.unshift([], [], [], []);
+        const jsonObject2 = { data2 };
+
+        // 鎻愪氦鏁版嵁鍒板悗绔�
+        const jsonString2 = JSON.stringify(jsonObject2);
+        console.log('鎵�鏈夋晠闅滅殑value:', jsonString2);
+        socket?.send(jsonString2);
+
+
+      }
+
+      if (currentButtonName === '澶嶄綅') {
+
+        const data2 = [];
+        const resetButtonValues = this.jsonData.map(item => {
+          const buttonItem = item.find(subItem => subItem.button && subItem.button.name === '澶嶄綅');
+          return buttonItem ? buttonItem.button.value : null;
+        }).filter(value => value !== null);
+
+        // 灏嗗緱鍒扮殑鍊兼坊鍔犲埌 data 鏁扮粍涓�
+        data2.push(...resetButtonValues);
+        data2.unshift([], [], [], [], []);
+        const jsonObject2 = { data2 };
+
+        // 鎻愪氦鏁版嵁鍒板悗绔�
+        const jsonString2 = JSON.stringify(jsonObject2);
+        console.log('鎵�鏈夊浣嶇殑value:', jsonString2);
+        socket?.send(jsonString2);
+
+
+      }
+
+      if (currentButtonName === '鍥為浂') {
+
+        const data2 = [];
+        const resetButtonValues = this.jsonData.map(item => {
+          const buttonItem = item.find(subItem => subItem.button && subItem.button.name === '鍥為浂');
+          return buttonItem ? buttonItem.button.value : null;
+        }).filter(value => value !== null);
+
+        // 灏嗗緱鍒扮殑鍊兼坊鍔犲埌 data 鏁扮粍涓�
+        data2.push(...resetButtonValues);
+        data2.unshift([], [], [], [], [], []);
+        const jsonObject2 = { data2 };
+
+        // 鎻愪氦鏁版嵁鍒板悗绔�
+        const jsonString2 = JSON.stringify(jsonObject2);
+        console.log('鎵�鏈夊洖闆剁殑value:', jsonString2);
+        socket?.send(jsonString2);
+
+
+      }
+
+
+
+
+    },
+
+
+    initWebSocket () {
+
+      let viewname = "ManualonePosition";
+
+      if (typeof WebSocket === "undefined") {
+        console.log("鎮ㄧ殑娴忚鍣ㄤ笉鏀寔WebSocket");
+      } else {
+        let socketUrl = "ws://" + "localhost:8888" + "/springboot-vue3/api/talk/" + viewname;
+
+        if (socket != null) {
+          socket.close();
+          socket = null;
+        }
+
+        // 寮�鍚竴涓獁ebsocket鏈嶅姟
+        socket = new WebSocket(socketUrl);
+
+        // 鎵撳紑浜嬩欢
+        socket.onopen = function () {
+          console.log("websocket宸叉墦寮�");
+        };
+
+        // 鏀跺埌娑堟伅
+        socket.onmessage = (msg) => {
+          if (!msg.data) {
+            return; // 濡傛灉鏀跺埌绌烘暟鎹紝鍒欑洿鎺ヨ繑鍥烇紝涓嶆墽琛屽悗缁�昏緫
           }
-          return null;
-        });
-      });
 
-      // 妯℃嫙鎻愪氦鏁版嵁鍒板悗绔殑鎿嶄綔锛屽疄闄呮儏鍐典笅闇�瑕佹牴鎹綘鐨勫悗绔疉PI杩涜淇敼
-      console.log('鎻愪氦浠ヤ笅鏁版嵁鍒板悗绔�:', inputData);
+          let obj = JSON.parse(msg.data);
+          //console.log(obj)
+          const jsonData2 = this.jsonData;
 
+          const handleMouseMove = throttle(function (event) {
+            const inputBox = document.querySelectorAll('.el-card__body');
+            const target = event.target;
+            if (inputBox && Array.from(inputBox).every(box => !box.contains(target))) {
+              // 鎵ц鏇存柊閫昏緫
+              for (let i = 0; i < 4; i++) {
+                jsonData2[i].forEach((item, index) => {
+                  if (typeof item.value !== 'undefined' && typeof obj[`zuhe${i + 1}`][0][index] !== 'undefined') {
+                    item.value = obj[`zuhe${i + 1}`][0][index];
+                  }
+                });
+              }
+
+              //鏇存柊瀹炴椂浣嶇疆
+              jsonData2.forEach((item) => {
+                item.forEach((subItem) => {
+                  if (subItem.sending === 4) {
+                    subItem.value = obj.shishi1[0][0];
+                  }
+                  if (subItem.sending === 5) {
+                    subItem.value = obj.shishi1[0][1];
+                  }
+                  if (subItem.sending === 6) {
+                    subItem.value = obj.shishi1[0][2];
+                  }
+                  if (subItem.sending === 7) {
+                    subItem.value = obj.shishi1[0][3];
+                  }
+                });
+              });
+
+              // 閬嶅巻guzhang鏁扮粍
+              for (let i = 0; i < obj.guzhang[0].length; i++) {
+                const guzhangValue = obj.guzhang[0][i];
+
+                // 鏌ユ壘jsonData2涓甫鏈�"button"鐨勫璞★紝骞朵笖name绛変簬"鏁呴殰"
+                for (let j = 0; j < jsonData2.length; j++) {
+                  const section = jsonData2[j];
+
+                  for (let k = 0; k < section.length; k++) {
+                    const item = section[k];
+
+                    if (item.button && item.button.name === "鏁呴殰") {
+                      // 鏇存柊value灞炴��
+                      item.button.value = guzhangValue;
+                      break;
+                    }
+                  }
+
+
+                }
+              }
+
+
+
+
+            }
+          }, 200);
+
+          document.addEventListener('mouseover', handleMouseMove);
+        };
+
+
+
+
+        // 鍏抽棴浜嬩欢
+        socket.onclose = function () {
+          console.log("websocket宸插叧闂�");
+        };
+
+        // 鍙戠敓閿欒浜嬩欢
+        socket.onerror = function () {
+          console.log("websocket鍙戠敓浜嗛敊璇�");
+        };
+
+      }
+    },
+    send () {
+
+
+      socket?.send(JSON.stringify(this.messagepack));
     }
+
   }
 }
 </script>
@@ -126,4 +405,8 @@
 .el-card ::v-deep .el-card__body {
   padding: 13px;
 }
+
+.error-button {
+  background-color: red;
+}
 </style>
\ No newline at end of file
diff --git a/CanadaMes-ui/src/views/Electrical/ManualonePosition2.vue b/CanadaMes-ui/src/views/Electrical/ManualonePosition2.vue
index aa58bc7..8461e7e 100644
--- a/CanadaMes-ui/src/views/Electrical/ManualonePosition2.vue
+++ b/CanadaMes-ui/src/views/Electrical/ManualonePosition2.vue
@@ -51,14 +51,16 @@
           <div v-for="(item, itemIndex) in dataGroup" :key="itemIndex" class="item-container">
             <div class="item-row">
               <span class="name" style="width:100px;">{{ item.name }}</span>
-              <el-input style="width:250px;" v-if="item.type === '0'" v-model="item.value" class="input-box"></el-input>
+              <el-input style="width:250px;" v-if="item.state != 0 && item.type === '0'" v-model="item.value"
+                class="input-box"></el-input>
             </div>
           </div>
           <div class="button-row" style="display: flex; justify-content: space-between;">
             <div v-for="(item, itemIndex) in dataGroup" :key="itemIndex">
-              <el-button v-if="item.button" :name="item.button.name" class="action-button"
-                @click="updateButtonValue(dataGroup, itemIndex); submitDataToBackend();">{{ item.button.name
-                }}</el-button>
+              <el-button v-if="item.button && item.button.state != 0" :name="item.button.name" v-model="item.button.value"
+                :class="{ 'action-button': true, 'error-button': item.button.name === '鏁呴殰' && item.button.value === 1 }"
+                @click="updateButtonValue(dataGroup, itemIndex); submitDataToBackend(item.button.name);">{{
+                  item.button.name }}</el-button>
             </div>
           </div>
         </el-card>
@@ -71,7 +73,8 @@
 <script>
 import LanguageMixin from '../../lang/LanguageMixin'
 import data from '../../configuration/Manualoneposition2'
-
+import { throttle } from 'lodash';
+let socket;
 export default {
   name: "ManualonePosition2",
   mixins: [LanguageMixin],
@@ -80,26 +83,229 @@
       jsonData: data // 鍔犺浇鏁翠釜data.json鏂囦欢浣滀负jsonData
     }
   },
+  created () {
+    this.initWebSocket();
+    // console.log('jsonData:', this.jsonData); 
+
+  },
   methods: {
     updateButtonValue (dataGroup, itemIndex) {
-      this.$set(dataGroup[itemIndex].button, 'value', 1); // 鐐瑰嚮鎸夐挳鍚庡皢鍊兼敼涓�1
+      // 灏嗗綋鍓嶆寜閽殑鍊艰涓�1
+
+      this.$set(dataGroup[itemIndex].button, 'value', 1);
+
+
+
     },
-    submitDataToBackend () {
-      const inputData = this.jsonData.map(dataGroup => {
-        return dataGroup.map(item => {
-          if (item.type === '0') {
-            return { name: item.name, value: item.value, address: item.address };
-          } else if (item.button) {
-            return { name: item.button.name, value: item.button.value, address: item.button.address };
+    submitDataToBackend (currentButtonName) {
+      if (currentButtonName === 'A01缈昏浆鍚姩') {
+        const data = [];
+
+        for (let i = 0; i < 1; i++) {
+          const inputData = this.jsonData[i].filter(item => item.type === '0').map(item => {
+            return { value: item.value };
+          });
+
+          const values = inputData.map(item => item.value);
+
+          data.push(values);
+        }
+
+
+
+        const jsonObject = { data };
+
+        // 鎻愪氦鏁版嵁鍒板悗绔�
+        const jsonString = JSON.stringify(jsonObject);
+        console.log('鎵�鏈塗ype涓�0鐨剉alue:', jsonString);
+        socket?.send(jsonString);
+
+      }
+
+      if (currentButtonName === 'A02缈昏浆鍚姩') {
+        const data = [];
+
+        for (let i = 1; i < 2; i++) {
+          const inputData = this.jsonData[i].filter(item => item.type === '0').map(item => {
+            return { value: item.value };
+          });
+
+          const values = inputData.map(item => item.value);
+          data.unshift([]);
+          data.push(values);
+        }
+
+
+
+        const jsonObject = { data };
+
+        // 鎻愪氦鏁版嵁鍒板悗绔�
+        const jsonString = JSON.stringify(jsonObject);
+        console.log('鎵�鏈塗ype涓�0鐨剉alue:', jsonString);
+        socket?.send(jsonString);
+
+      }
+
+      if (currentButtonName === '鏁呴殰') {
+
+        const data2 = [];
+        const resetButtonValues = this.jsonData.map(item => {
+          const buttonItem = item.find(subItem => subItem.button && subItem.button.name === '鏁呴殰');
+          return buttonItem ? buttonItem.button.value : null;
+        }).filter(value => value !== null);
+
+        // 灏嗗緱鍒扮殑鍊兼坊鍔犲埌 data 鏁扮粍涓�
+        data2.push(...resetButtonValues);
+        data2.unshift([], []);
+        const jsonObject2 = { data2 };
+
+        // 鎻愪氦鏁版嵁鍒板悗绔�
+        const jsonString2 = JSON.stringify(jsonObject2);
+        console.log('鎵�鏈夋晠闅滅殑value:', jsonString2);
+        socket?.send(jsonString2);
+
+
+      }
+
+      if (currentButtonName === '澶嶄綅') {
+
+        const data2 = [];
+        const resetButtonValues = this.jsonData.map(item => {
+          const buttonItem = item.find(subItem => subItem.button && subItem.button.name === '澶嶄綅');
+          return buttonItem ? buttonItem.button.value : null;
+        }).filter(value => value !== null);
+
+        // 灏嗗緱鍒扮殑鍊兼坊鍔犲埌 data 鏁扮粍涓�
+        data2.push(...resetButtonValues);
+        data2.unshift([], [], []);
+        const jsonObject2 = { data2 };
+
+        // 鎻愪氦鏁版嵁鍒板悗绔�
+        const jsonString2 = JSON.stringify(jsonObject2);
+        console.log('鎵�鏈塗ype涓�0鐨剉alue:', jsonString2);
+        socket?.send(jsonString2);
+
+
+      }
+
+
+    },
+
+
+    initWebSocket () {
+
+      let viewname = "ManualonePosition2";
+
+      if (typeof WebSocket === "undefined") {
+        console.log("鎮ㄧ殑娴忚鍣ㄤ笉鏀寔WebSocket");
+      } else {
+        let socketUrl = "ws://" + "localhost:8888" + "/springboot-vue3/api/talk/" + viewname;
+
+        if (socket != null) {
+          socket.close();
+          socket = null;
+        }
+
+        // 寮�鍚竴涓獁ebsocket鏈嶅姟
+        socket = new WebSocket(socketUrl);
+
+        // 鎵撳紑浜嬩欢
+        socket.onopen = function () {
+          console.log("websocket宸叉墦寮�");
+        };
+
+        // 鏀跺埌娑堟伅
+        socket.onmessage = (msg) => {
+          if (!msg.data) {
+            return; // 濡傛灉鏀跺埌绌烘暟鎹紝鍒欑洿鎺ヨ繑鍥烇紝涓嶆墽琛屽悗缁�昏緫
           }
-          return null;
-        });
-      });
 
-      // 妯℃嫙鎻愪氦鏁版嵁鍒板悗绔殑鎿嶄綔锛屽疄闄呮儏鍐典笅闇�瑕佹牴鎹綘鐨勫悗绔疉PI杩涜淇敼
-      console.log('鎻愪氦浠ヤ笅鏁版嵁鍒板悗绔�:', inputData);
+          let obj = JSON.parse(msg.data);
+          console.log(obj)
+          const jsonData2 = this.jsonData;
 
+          const handleMouseMove = throttle(function (event) {
+            const inputBox = document.querySelectorAll('.el-card__body');
+            const target = event.target;
+            if (inputBox && Array.from(inputBox).every(box => !box.contains(target))) {
+              // 鎵ц鏇存柊閫昏緫
+              for (let i = 0; i < 2; i++) {
+                jsonData2[i].forEach((item, index) => {
+                  if (typeof item.value !== 'undefined' && typeof obj[`zuhe${i + 1}`][0][index] !== 'undefined') {
+                    item.value = obj[`zuhe${i + 1}`][0][index];
+                  }
+                });
+              }
+
+              jsonData2.forEach((item) => {
+                item.forEach((subItem) => {
+                  if (subItem.sending === 4) {
+                    subItem.value = obj.shishi1[0][0];
+                  }
+                  if (subItem.sending === 5) {
+                    subItem.value = obj.shishi1[0][1];
+                  }
+                  if (subItem.sending === 6) {
+                    subItem.value = obj.shishi1[0][2];
+                  }
+                  if (subItem.sending === 7) {
+                    subItem.value = obj.shishi1[0][3];
+                  }
+                });
+              });
+
+              // 閬嶅巻guzhang鏁扮粍
+              for (let i = 0; i < obj.guzhang[0].length; i++) {
+                const guzhangValue = obj.guzhang[0][i];
+
+                // 鏌ユ壘jsonData2涓甫鏈�"button"鐨勫璞★紝骞朵笖name绛変簬"鏁呴殰"
+                for (let j = 0; j < jsonData2.length; j++) {
+                  const section = jsonData2[j];
+
+                  for (let k = 0; k < section.length; k++) {
+                    const item = section[k];
+
+                    if (item.button && item.button.name === "鏁呴殰") {
+                      // 鏇存柊value灞炴��
+                      item.button.value = guzhangValue;
+                      break;
+                    }
+                  }
+
+
+                }
+              }
+
+
+
+
+            }
+          }, 200);
+
+          document.addEventListener('mouseover', handleMouseMove);
+        };
+
+
+
+
+        // 鍏抽棴浜嬩欢
+        socket.onclose = function () {
+          console.log("websocket宸插叧闂�");
+        };
+
+        // 鍙戠敓閿欒浜嬩欢
+        socket.onerror = function () {
+          console.log("websocket鍙戠敓浜嗛敊璇�");
+        };
+
+      }
+    },
+    send () {
+
+
+      socket?.send(JSON.stringify(this.messagepack));
     }
+
   }
 }
 </script>
diff --git a/CanadaMes-ui/src/views/Electrical/Parameter.vue b/CanadaMes-ui/src/views/Electrical/Parameter.vue
index 5fcdbab..94a34d4 100644
--- a/CanadaMes-ui/src/views/Electrical/Parameter.vue
+++ b/CanadaMes-ui/src/views/Electrical/Parameter.vue
@@ -12,8 +12,9 @@
       }}</router-link>
       <router-link to="/Electrical/Sign" tag="el-button" type="text" active-class="blue-button">{{ $t('Sign')
       }}</router-link>
-       <router-link to="/Electrical/Servomanual" tag="el-button" type="text" active-class="blue-button">{{ $t('Servo Manual')
-        }}</router-link>
+      <router-link to="/Electrical/Servomanual" tag="el-button" type="text" active-class="blue-button">{{
+        $t('ServoManual')
+      }}</router-link>
     </el-breadcrumb>
 
     <div>Parameter</div>
@@ -29,8 +30,7 @@
 
         <span style="margin-right: 5px; width: 50px;">{{ item.value }}</span>
         <span style="margin-right: 5px; font-size: 14px;color: red;">|</span>
-        <input v-model="item.value2" type="number"
-          style="width: 43px; margin-right: 5px; margin-top: 5px; font-size: 16px;">
+        <input type="number" style="width: 43px; margin-right: 5px; margin-top: 5px; font-size: 16px;">
         <span style="margin-right: 5px; width: 50px;">{{ item.unit }}</span>
 
       </div>
@@ -59,18 +59,7 @@
       record: {
         params: [100, 200, 10, 10, 10, 10],
         xyData: [
-          { name: "conveyor Velocity(Auto FAST)", value: 0, value2: 0, unit: "m/min" },
-          { name: "conveyor Velocity(Auto SLOW)", value: 0, value2: 0, unit: "m/min" },
-          { name: "conveyor Velocity(Manual)", value: 0, value2: 0, unit: "m/min" },
-          { name: "A01 A02 TURN JOG Velocity", value: 0, value2: 0, unit: "mm/S" },
-          { name: "A01 A02 TRAVEL JOG Velocity", value: 0, value2: 0, unit: "mm/S" },
-          { name: "B01 B02 TRAVEL JOG Velocity", value: 0, value2: 0, unit: "mm/S" },
-          { name: "A01 A02 TURN POS Velocity AUTO", value: 0, value2: 0, unit: "mm/S" },
-          { name: "A01 A02 TURN POS Velocity manual", value: 0, value2: 0, unit: "mm/S" },
-          { name: "A01 A02 TRAVEL POS Velocity AUTO", value: 0, value2: 0, unit: "mm/S" },
-          { name: "A01 A02 TRAVEL POS Velocity manual", value: 0, value2: 0, unit: "mm/S" },
-          { name: "B01 B02 TRAVEL POS Velocity AUTO", value: 0, value2: 0, unit: "mm/S" },
-          { name: "B01 B02 TRAVEL POS Velocity manual", value: 0, value2: 0, unit: "mm/S" }
+
         ],
         canshu: []
       },
@@ -89,14 +78,9 @@
     this.initWebSocket();
     this.isButtonDisabled = true;
 
+
   },
   methods: {
-    showdata () {
-      console.log(1111);
-      console.log(this.jsonData.para[0].name);
-      // console.log(this.record.xyData);
-
-    },
 
 
     setActiveButton (buttonName) {
@@ -135,8 +119,6 @@
           if (obj.params && obj.state) {
 
 
-
-
             this.record.params[0] = obj.params[0];
             this.record.state = obj.state[0];
             if (obj.state && obj.state.length > 0) {
@@ -144,31 +126,18 @@
               this.isButtonDisabled = isButtonDisabled;
 
 
-              // 鍒ゆ柇state涓槸鍚﹀瓨鍦�1
-              //console.log(isButtonDisabled)
-              // 灏嗗垽鏂粨鏋滀繚瀛樺埌鍙橀噺isButtonDisabled涓�
+              this.record.xyData = this.jsonData.para;
 
-              for (let a = 0; a <= this.record.params[0].length - 1; a++) {
-                // this.record.xyData[a] =
-                // {
-                //   name: this.jsonData.para[a].name,
-                //   value: this.jsonData.para[a].read,
-                //   value2: this.jsonData.para[a].sending,
-                //   unit: this.jsonData.para[a].unit
-                // };
+              for (let a = 0; a < this.record.xyData.length; a++) {
+                this.record.xyData[a].value = this.record.params[0][a];
 
-                // if (!this.xyData[a]) {
-                this.record.xyData[a] =
-                {
-                  name: this.jsonData.para[a].name,
-                  value: this.record.params[0][a],
-                  unit: this.jsonData.para[a].unit
-                };
               }
-              // else {
-              //     this.xyData[a].value = this.record.params[0][a];
-              //   }
-              // }
+
+              this.record.xyData = this.jsonData.para.filter(item => {
+                return item.state != 0;
+              }
+
+              );
               const language = this.$i18n.locale;
               if (language === 'en-US') {
                 this.replaceChineseWithEnglish();
@@ -220,10 +189,8 @@
   border: 1px solid black;
   border: none;
 }
-.special-class{
 
-
-}
+.special-class {}
 
 .in_mc {
 
diff --git a/CanadaMes-ui/src/views/Electrical/Parameter1.vue b/CanadaMes-ui/src/views/Electrical/Parameter1.vue
index e3e5032..3a3613c 100644
--- a/CanadaMes-ui/src/views/Electrical/Parameter1.vue
+++ b/CanadaMes-ui/src/views/Electrical/Parameter1.vue
@@ -156,9 +156,9 @@
               const fanzhuan = obj.fanzhuan;
               const xiaoche = obj.xiaoche;
 
-              // console.log('parms:', parms);
-              // console.log('fanzhuan:', fanzhuan);
-              // console.log('xiaoche:', xiaoche);
+              console.log('parms:', parms);
+              console.log('fanzhuan:', fanzhuan);
+              console.log('xiaoche:', xiaoche);
 
               let index = 0;
               for (let i = 0; i < jsonData2.length; i++) {
diff --git a/CanadaMes-ui/src/views/Electrical/Parameter2.vue b/CanadaMes-ui/src/views/Electrical/Parameter2.vue
index 9497c30..ada201c 100644
--- a/CanadaMes-ui/src/views/Electrical/Parameter2.vue
+++ b/CanadaMes-ui/src/views/Electrical/Parameter2.vue
@@ -1,74 +1,79 @@
 <template>
-    <div class="app">
+  <div class="app">
     <el-breadcrumb separator-class="el-icon-arrow-right" class="el-breadcrumb">
-        <router-link to="/Electrical/alarm" tag="el-button" type="text" active-class="blue-button">{{ $t('Alarm')
-        }}</router-link>
-        <router-link to="/Electrical/State" tag="el-button" type="text" active-class="blue-button">{{ $t('State')
-        }}</router-link>
-        <router-link to="/Electrical/Action" tag="el-button" type="text" active-class="blue-button">{{ $t('Action')
-        }}</router-link>
-        <router-link to="/Electrical/Parameter" tag="el-button" type="text" active-class="blue-button">{{ $t('Parameter')
-        }}</router-link>
-        <router-link to="/Electrical/Sign" tag="el-button" type="text" active-class="blue-button">{{ $t('Sign')
-        }}</router-link>
-         <router-link to="/Electrical/Servomanual" tag="el-button" type="text" active-class="blue-button">{{ $t('Servo Manual')
-        }}</router-link>
-      </el-breadcrumb>
-  
-      <el-breadcrumb separator-class="el-icon-arrow-right" class="el-breadcrumb">
-        <router-link to="/Electrical/Servomanualone" tag="el-button" type="text" active-class="blue-button">{{ $t('Servomanualone')
-        }}</router-link>
-          <router-link to="/Electrical/Parameter1" tag="el-button" type="text" active-class="blue-button">{{ $t('Parameter1')
-          }}</router-link>
-         <router-link to="/Electrical/Parameter2" tag="el-button" type="text" active-class="blue-button">{{ $t('Parameter2')
-          }}</router-link> 
-            <router-link to="/Electrical/Positioning1" tag="el-button" type="text" active-class="blue-button">{{ $t('Positioning1')
-          }}</router-link>
-            <router-link to="/Electrical/Positioning2" tag="el-button" type="text" active-class="blue-button">{{ $t('Positioning2')
-          }}</router-link>
+      <router-link to="/Electrical/alarm" tag="el-button" type="text" active-class="blue-button">{{ $t('Alarm')
+      }}</router-link>
+      <router-link to="/Electrical/State" tag="el-button" type="text" active-class="blue-button">{{ $t('State')
+      }}</router-link>
+      <router-link to="/Electrical/Action" tag="el-button" type="text" active-class="blue-button">{{ $t('Action')
+      }}</router-link>
+      <router-link to="/Electrical/Parameter" tag="el-button" type="text" active-class="blue-button">{{ $t('Parameter')
+      }}</router-link>
+      <router-link to="/Electrical/Sign" tag="el-button" type="text" active-class="blue-button">{{ $t('Sign')
+      }}</router-link>
+      <router-link to="/Electrical/Servomanual" tag="el-button" type="text" active-class="blue-button">{{
+        $t('ServoManual') }}</router-link>
     </el-breadcrumb>
-  
+
+    <el-breadcrumb separator-class="el-icon-arrow-right" class="el-breadcrumb">
+      <router-link to="/Electrical/Servomanualone" tag="el-button" type="text" active-class="blue-button">{{
+        $t('Servomanualone')
+      }}</router-link>
+      <router-link to="/Electrical/Parameter1" tag="el-button" type="text" active-class="blue-button">{{ $t('Parameter1')
+      }}</router-link>
+      <router-link to="/Electrical/Parameter2" tag="el-button" type="text" active-class="blue-button">{{ $t('Parameter2')
+      }}</router-link>
+      <router-link to="/Electrical/Positioning1" tag="el-button" type="text" active-class="blue-button">{{
+        $t('Positioning1')
+      }}</router-link>
+      <router-link to="/Electrical/Positioning2" tag="el-button" type="text" active-class="blue-button">{{
+        $t('Positioning2')
+      }}</router-link>
+    </el-breadcrumb>
+
     <el-row :gutter="40">
       <el-col :span="6" v-for="(dataGroup, groupIndex) in jsonData" :key="groupIndex">
-        <el-card class="json-block"  style="width:260px;">
+        <el-card class="json-block" style="width:260px;">
           <div class="button-row" style="display: flex; justify-content: space-between;">
             <div v-for="(item, itemIndex) in dataGroup" :key="itemIndex">
-              <span v-if="item.title" :name="item.title.name" class="action-button" >{{ item.title.name }}</span>
+              <span v-if="item.title" :name="item.title.name" class="action-button">{{ item.title.name }}</span>
             </div>
           </div>
 
           <div class="button-row" style="display: flex; justify-content: space-between;">
             <div v-for="(item, itemIndex) in dataGroup" :key="itemIndex">
               <el-button v-if="item.button" :name="item.button.name" v-model="item.button.value" class="action-button"
-  @click="updateButtonValue(dataGroup, itemIndex);submitDataToBackend(item.button.name)"
-  :class="{ 'green-button': item.button.value === 0  && item.button.name !== '娓呴櫎ID','red-button': item.button.value === 1 && item.button.name !== '娓呴櫎ID' }">{{ item.button.name }}</el-button>
+                @click="updateButtonValue(dataGroup, itemIndex); submitDataToBackend(item.button.name)"
+                :class="{ 'green-button': item.button.value === 0 && item.button.name !== '娓呴櫎ID', 'red-button': item.button.value === 1 && item.button.name !== '娓呴櫎ID' }">{{
+                  item.button.name }}</el-button>
             </div>
           </div>
           <div v-for="(item, itemIndex) in dataGroup" :key="itemIndex" class="item-container">
             <div class="item-row">
 
               <span class="name" style="width:150px;">{{ item.name }}</span>
-              <el-input v-if="item.type === '0'" v-model="item.value" readonly="readonly"    style="width:150px;" class="input-box"></el-input>
+              <el-input v-if="item.type === '0'" v-model="item.value" readonly="readonly" style="width:150px;"
+                class="input-box"></el-input>
             </div>
           </div>
-        
+
         </el-card>
       </el-col>
     </el-row>
     <!-- <el-button @click="submitDataToBackend">鎻愪氦鏁版嵁鍒板悗绔�</el-button> -->
   </div>
-  </template>
+</template>
   
-  <script>
-  import LanguageMixin from '../../lang/LanguageMixin'
-  import data from '../../configuration/parameter2'
-  let socket;
-  export default {
+<script>
+import LanguageMixin from '../../lang/LanguageMixin'
+import data from '../../configuration/parameter2'
+let socket;
+export default {
   name: "Parameter2",
   mixins: [LanguageMixin],
-  data() {
+  data () {
     return {
-      jsonData: data ,
+      jsonData: data,
 
       // 鍔犺浇鏁翠釜data.json鏂囦欢浣滀负jsonData
     }
@@ -79,38 +84,38 @@
 
   },
   methods: {
-    updateButtonValue(dataGroup, itemIndex) {
-  // 灏嗗綋鍓嶆寜閽殑鍊艰涓�1
+    updateButtonValue (dataGroup, itemIndex) {
+      // 灏嗗綋鍓嶆寜閽殑鍊艰涓�1
 
-    this.$set(dataGroup[itemIndex].button, 'value', 1);
-  
+      this.$set(dataGroup[itemIndex].button, 'value', 1);
 
-  // 灏嗗叾浠栨寜閽殑鍊煎叏閮ㄨ涓�0
 
-},
-    submitDataToBackend(currentButtonName) {
-  if (currentButtonName === '娓呴櫎ID') {
-    const inputData = this.jsonData.map(dataGroup => {
-      return dataGroup.map(item => {
-        if (item.type === '3') {
-          return { value: item.button.value };
-        } 
-        return null;
-      });
-    });
+      // 灏嗗叾浠栨寜閽殑鍊煎叏閮ㄨ涓�0
 
-    const values = inputData.flat().filter(item => item !== null).map(item => item.value);
+    },
+    submitDataToBackend (currentButtonName) {
+      if (currentButtonName === '娓呴櫎ID') {
+        const inputData = this.jsonData.map(dataGroup => {
+          return dataGroup.map(item => {
+            if (item.type === '3') {
+              return { value: item.button.value };
+            }
+            return null;
+          });
+        });
 
-    const jsonObject = { data: values };
- 
- // 鎻愪氦鏁版嵁鍒板悗绔�
- const jsonString = JSON.stringify(jsonObject);
-   console.log('Type涓�3鐨剉alue:', jsonString);
-     socket?.send(jsonString);
-  }
-},
+        const values = inputData.flat().filter(item => item !== null).map(item => item.value);
+
+        const jsonObject = { data: values };
+
+        // 鎻愪氦鏁版嵁鍒板悗绔�
+        const jsonString = JSON.stringify(jsonObject);
+        console.log('Type涓�3鐨剉alue:', jsonString);
+        socket?.send(jsonString);
+      }
+    },
     initWebSocket () {
- 
+
       let viewname = "Parameter2";
 
       if (typeof WebSocket === "undefined") {
@@ -133,90 +138,90 @@
 
         // 鏀跺埌娑堟伅
         socket.onmessage = (msg) => {
-  if (!msg.data) {
-    return; // 濡傛灉鏀跺埌绌烘暟鎹紝鍒欑洿鎺ヨ繑鍥烇紝涓嶆墽琛屽悗缁�昏緫
-  }
+          if (!msg.data) {
+            return; // 濡傛灉鏀跺埌绌烘暟鎹紝鍒欑洿鎺ヨ繑鍥烇紝涓嶆墽琛屽悗缁�昏緫
+          }
 
-  let obj = JSON.parse(msg.data);
- 
-  const jsonData2 = this.jsonData;
- 
-      // 濡傛灉榧犳爣涓嶅湪杈撳叆妗嗗唴锛屾洿鏂拌緭鍏ユ鐨勫��
-      // this.submitDataToBackend()
-      const parms = obj.params;
-      // const xiaoche = obj.params[3];
-   
-     console.log(parms);
+          let obj = JSON.parse(msg.data);
 
-      for (let i = 0; i < jsonData2.length; i++) {
-  let arr = jsonData2[i];
-  for (let j = 0; j < arr.length; j++) {
-    let obj = arr[j];
-    if (obj.type === '3') {
-      obj.button.value = parms[0][i];
-    }
-  }
+          const jsonData2 = this.jsonData;
 
-     
-}
+          // 濡傛灉榧犳爣涓嶅湪杈撳叆妗嗗唴锛屾洿鏂拌緭鍏ユ鐨勫��
+          // this.submitDataToBackend()
+          const parms = obj.params;
+          // const xiaoche = obj.params[3];
 
-      for (let i = 0; i < jsonData2.length; i++) {
-  let arr = jsonData2[i];
-  for (let j = 0; j < arr.length; j++) {
-    let obj = arr[j];
-    if (obj.type === '0') {
-      obj.value = parms[1][i];
-    }
-  }
+          console.log(parms);
 
-     
-}
-
-for (let i = 0; i < jsonData2.length; i++) {
-  let arr = jsonData2[i];
-  for (let j = 0; j < arr.length; j++) {
-    let obj = arr[j];
-    if (obj.type === '4') {
-      obj.button.value = parms[2][i];
-    }
-  }
-
-     
-}
-
-jsonData2.forEach((item) => {
-  item.forEach((subItem) => {
-    if (subItem.read === 66) {
-      subItem.value = parms[3][0]; 
-    }
-  });
-});
-
-
-let lastParmsArray = parms[parms.length - 1];
-
-let lastParmsIndex = 0;
-
-for (let i = 0; i < jsonData2.length; i++) {
-    for (let j = 0; j < jsonData2[i].length; j++) {
-        if (jsonData2[i][j].read === 333) {
-            jsonData2[i][j].value = lastParmsArray[lastParmsIndex];
-            lastParmsIndex++;
-            if (lastParmsIndex === lastParmsArray.length) {
-                lastParmsIndex = 0;
+          for (let i = 0; i < jsonData2.length; i++) {
+            let arr = jsonData2[i];
+            for (let j = 0; j < arr.length; j++) {
+              let obj = arr[j];
+              if (obj.type === '3') {
+                obj.button.value = parms[0][i];
+              }
             }
-        }
-    }
-}
+
+
+          }
+
+          for (let i = 0; i < jsonData2.length; i++) {
+            let arr = jsonData2[i];
+            for (let j = 0; j < arr.length; j++) {
+              let obj = arr[j];
+              if (obj.type === '0') {
+                obj.value = parms[1][i];
+              }
+            }
+
+
+          }
+
+          for (let i = 0; i < jsonData2.length; i++) {
+            let arr = jsonData2[i];
+            for (let j = 0; j < arr.length; j++) {
+              let obj = arr[j];
+              if (obj.type === '4') {
+                obj.button.value = parms[2][i];
+              }
+            }
+
+
+          }
+
+          jsonData2.forEach((item) => {
+            item.forEach((subItem) => {
+              if (subItem.read === 66) {
+                subItem.value = parms[3][0];
+              }
+            });
+          });
+
+
+          let lastParmsArray = parms[parms.length - 1];
+
+          let lastParmsIndex = 0;
+
+          for (let i = 0; i < jsonData2.length; i++) {
+            for (let j = 0; j < jsonData2[i].length; j++) {
+              if (jsonData2[i][j].read === 333) {
+                jsonData2[i][j].value = lastParmsArray[lastParmsIndex];
+                lastParmsIndex++;
+                if (lastParmsIndex === lastParmsArray.length) {
+                  lastParmsIndex = 0;
+                }
+              }
+            }
+          }
 
 
 
 
 
-//  console.log(jsonData2);
+          //  console.log(jsonData2);
 
-  
-};
+
+        };
 
 
 
@@ -234,28 +239,30 @@
       }
     },
     send () {
-     
-     
+
+
       socket?.send(JSON.stringify(this.messagepack));
     }
 
   }
-  }
-  </script>
+}
+</script>
   
-  <style scoped>
-  .item-row {
+<style scoped>
+.item-row {
   display: flex;
   align-items: center;
-  margin-bottom: 5px; /* 璋冩暣姣忎釜椤圭洰涔嬮棿鐨勯棿璺� */
-  }
-  
-  .action-button {
+  margin-bottom: 5px;
+  /* 璋冩暣姣忎釜椤圭洰涔嬮棿鐨勯棿璺� */
+}
+
+.action-button {
   margin-right: 30px;
   background: #66b1ff;
   color: #FFF;
-  }
-  .blue-button {
+}
+
+.blue-button {
   background-color: skyblue;
 }
 
@@ -263,8 +270,7 @@
   background-color: green;
 }
 
-.red-button{
+.red-button {
   background-color: red;
 }
-
-  </style>
\ No newline at end of file
+</style>
\ No newline at end of file
diff --git a/CanadaMes-ui/src/views/Electrical/Positioning1.vue b/CanadaMes-ui/src/views/Electrical/Positioning1.vue
index 24132fc..26dd5ec 100644
--- a/CanadaMes-ui/src/views/Electrical/Positioning1.vue
+++ b/CanadaMes-ui/src/views/Electrical/Positioning1.vue
@@ -160,7 +160,7 @@
               // 濡傛灉榧犳爣涓嶅湪杈撳叆妗嗗唴锛屾洿鏂拌緭鍏ユ鐨勫��
               // this.submitDataToBackend()
               const parms = obj.params;
-
+              console.log(parms)
 
 
               let index = 0;
diff --git a/CanadaMes-ui/src/views/Electrical/Positioning2.vue b/CanadaMes-ui/src/views/Electrical/Positioning2.vue
index 4ecd2ac..553a123 100644
--- a/CanadaMes-ui/src/views/Electrical/Positioning2.vue
+++ b/CanadaMes-ui/src/views/Electrical/Positioning2.vue
@@ -156,7 +156,7 @@
               // this.submitDataToBackend()
               const parms = obj.params;
 
-
+              console.log(parms)
               let index = 0;
               for (let i = 0; i < jsonData2.length; i++) {
                 let arr = jsonData2[i];
diff --git a/CanadaMes-ui/src/views/Electrical/ServoManualone.vue b/CanadaMes-ui/src/views/Electrical/ServoManualone.vue
index bfd5eb3..5e5c1b6 100644
--- a/CanadaMes-ui/src/views/Electrical/ServoManualone.vue
+++ b/CanadaMes-ui/src/views/Electrical/ServoManualone.vue
@@ -1,56 +1,66 @@
 <template>
-    <div class="app">
+  <div class="app">
     <el-breadcrumb separator-class="el-icon-arrow-right" class="el-breadcrumb">
-        <router-link to="/Electrical/alarm" tag="el-button" type="text" active-class="blue-button">{{ $t('Alarm')
-        }}</router-link>
-        <router-link to="/Electrical/State" tag="el-button" type="text" active-class="blue-button">{{ $t('State')
-        }}</router-link>
-        <router-link to="/Electrical/Action" tag="el-button" type="text" active-class="blue-button">{{ $t('Action')
-        }}</router-link>
-        <router-link to="/Electrical/Parameter" tag="el-button" type="text" active-class="blue-button">{{ $t('Parameter')
-        }}</router-link>
-        <router-link to="/Electrical/Sign" tag="el-button" type="text" active-class="blue-button">{{ $t('Sign')
-        }}</router-link>
-         <router-link to="/Electrical/Servomanual" tag="el-button" type="text" active-class="blue-button">{{ $t('Servo Manual')
-        }}</router-link>
-      </el-breadcrumb>
-
-      <el-breadcrumb separator-class="el-icon-arrow-right" class="el-breadcrumb">
-   
-        <router-link to="/Electrical/Servomanualone" tag="el-button" type="text" active-class="blue-button">{{ $t('Servomanualone')
+      <router-link to="/Electrical/alarm" tag="el-button" type="text" active-class="blue-button">{{ $t('Alarm')
       }}</router-link>
-        <router-link to="/Electrical/Parameter1" tag="el-button" type="text" active-class="blue-button">{{ $t('Parameter1')
-        }}</router-link>
-           <router-link to="/Electrical/Parameter2" tag="el-button" type="text" active-class="blue-button">{{ $t('Parameter2')
-        }}</router-link> 
-          <router-link to="/Electrical/Positioning1" tag="el-button" type="text" active-class="blue-button">{{ $t('Positioning1')
-          }}</router-link>
-            <router-link to="/Electrical/Positioning2" tag="el-button" type="text" active-class="blue-button">{{ $t('Positioning2')
-          }}</router-link>
+      <router-link to="/Electrical/State" tag="el-button" type="text" active-class="blue-button">{{ $t('State')
+      }}</router-link>
+      <router-link to="/Electrical/Action" tag="el-button" type="text" active-class="blue-button">{{ $t('Action')
+      }}</router-link>
+      <router-link to="/Electrical/Parameter" tag="el-button" type="text" active-class="blue-button">{{ $t('Parameter')
+      }}</router-link>
+      <router-link to="/Electrical/Sign" tag="el-button" type="text" active-class="blue-button">{{ $t('Sign')
+      }}</router-link>
+      <router-link to="/Electrical/Servomanual" tag="el-button" type="text" active-class="blue-button">{{
+        $t('ServoManual')
+      }}</router-link>
+
+    </el-breadcrumb>
+
+    <el-breadcrumb separator-class="el-icon-arrow-right" class="el-breadcrumb">
+
+      <router-link to="/Electrical/Servomanualone" tag="el-button" type="text" active-class="blue-button">{{
+        $t('Servomanualone')
+      }}</router-link>
+      <router-link to="/Electrical/Parameter1" tag="el-button" type="text" active-class="blue-button">{{ $t('Parameter1')
+      }}</router-link>
+      <router-link to="/Electrical/Parameter2" tag="el-button" type="text" active-class="blue-button">{{ $t('Parameter2')
+      }}</router-link>
+      <router-link to="/Electrical/Positioning1" tag="el-button" type="text" active-class="blue-button">{{
+        $t('Positioning1')
+      }}</router-link>
+      <router-link to="/Electrical/Positioning2" tag="el-button" type="text" active-class="blue-button">{{
+        $t('Positioning2')
+      }}</router-link>
     </el-breadcrumb>
 
     <el-row :gutter="26">
-  <el-col :span="12" v-for="(dataGroup, groupIndex) in jsonData" :key="groupIndex">
-    <el-card class="json-block"  style="width:auto;">
-      <el-row >
-        <el-col v-for="(item, itemIndex) in dataGroup" :key="itemIndex" :span="12">
-          <div class="item-container">
-            <div class="item-row">
-              <span class="name" style='width:230px;'>{{ item.name }}</span>
-              <el-input v-if="item.type === '0'" v-model="item.value"   class='input-box' :class="{ 'special-class': groupIndex === 0,'special-class2': groupIndex === 1 }" v-show="groupIndex !== 0 && groupIndex !== 1"  ></el-input>
+      <el-col :span="12" v-for="(dataGroup, groupIndex) in jsonData" :key="groupIndex">
+        <el-card class="json-block" style="width:auto;">
+          <el-row>
+            <el-col v-for="(item, itemIndex) in dataGroup" :key="itemIndex" :span="12">
+              <div class="item-container">
+                <div class="item-row">
+                  <span class="name" style='width:230px;'>{{ item.name }}</span>
+                  <el-input v-if="item.type === '0'" v-model="item.value" class='input-box'
+                    :class="{ 'special-class': groupIndex === 0, 'special-class2': groupIndex === 1 }"
+                    v-show="groupIndex !== 0 && groupIndex !== 1"></el-input>
+                </div>
+              </div>
+            </el-col>
+          </el-row>
+          <div class="button-row" style="display: flex; justify-content: space-between;">
+            <div v-for="(item, itemIndex) in dataGroup" :key="itemIndex">
+              <el-button v-if="item.button" :name="item.button.name" v-model="item.button.value"
+                :class="{ 'action-button': true, 'error-button': item.button.name === '鏁呴殰' && item.button.value === 1 }"
+                @click="updateButtonValue(dataGroup, itemIndex); submitDataToBackend(item.button.name);">{{
+                  item.button.name }}</el-button>
+
             </div>
           </div>
-        </el-col>
-      </el-row>
-      <div class="button-row" style="display: flex; justify-content: space-between;">
-        <div v-for="(item, itemIndex) in dataGroup" :key="itemIndex">
-          <el-button v-if="item.button" :name="item.button.name" v-model="item.button.value" :class="{'action-button': true, 'error-button': item.button.name === '鏁呴殰' && item.button.value === 1}" @click="updateButtonValue(dataGroup, itemIndex); submitDataToBackend(item.button.name);">{{ item.button.name }}</el-button>
-
-        </div>
-      </div>
-    </el-card>
-  </el-col>
-</el-row>
+        </el-card>
+      </el-col>
+    </el-row>
 
     <!-- <el-button @click="submitDataToBackend">鎻愪氦鏁版嵁鍒板悗绔�</el-button> -->
   </div>
@@ -61,12 +71,12 @@
 import data from '../../configuration/ServoManualone'
 import { throttle } from 'lodash';
 let socket;
-  export default {
+export default {
   name: "ServoManualone",
   mixins: [LanguageMixin],
-  data() {
+  data () {
     return {
-      jsonData: data ,
+      jsonData: data,
 
       // 鍔犺浇鏁翠釜data.json鏂囦欢浣滀负jsonData
     }
@@ -77,84 +87,84 @@
 
   },
   methods: {
-    updateButtonValue(dataGroup, itemIndex) {
-  // 灏嗗綋鍓嶆寜閽殑鍊艰涓�1
+    updateButtonValue (dataGroup, itemIndex) {
+      // 灏嗗綋鍓嶆寜閽殑鍊艰涓�1
 
-    this.$set(dataGroup[itemIndex].button, 'value', 1);
-    
-  
-
-},
-submitDataToBackend(currentButtonName) {
-  if (currentButtonName === '鍗婅嚜鍔ㄥ惎鍔�') {
-    const data = [];
-
-for (let i = 0; i < 2; i++) {
-  const inputData = this.jsonData[i].filter(item => item.type === '0').map(item => {
-    return { value: item.value };
-  });
-
-  const values = inputData.map(item => item.value);
-
-  data.push(values);
-}
+      this.$set(dataGroup[itemIndex].button, 'value', 1);
 
 
 
-const jsonObject = { data };
+    },
+    submitDataToBackend (currentButtonName) {
+      if (currentButtonName === '鍗婅嚜鍔ㄥ惎鍔�') {
+        const data = [];
 
-// 鎻愪氦鏁版嵁鍒板悗绔�
-const jsonString = JSON.stringify(jsonObject);
-console.log('鎵�鏈塗ype涓�0鐨剉alue:', jsonString);
-socket?.send(jsonString);
+        for (let i = 0; i < 2; i++) {
+          const inputData = this.jsonData[i].filter(item => item.type === '0').map(item => {
+            return { value: item.value };
+          });
 
-  }
+          const values = inputData.map(item => item.value);
 
-  if (currentButtonName === '澶嶄綅') {
-
-    const data2 = [];
-    const resetButtonValues = this.jsonData.map(item => {
-  const buttonItem = item.find(subItem => subItem.button && subItem.button.name === '澶嶄綅');
-  return buttonItem ? buttonItem.button.value : null;
-}).filter(value => value !== null);
-
-// 灏嗗緱鍒扮殑鍊兼坊鍔犲埌 data 鏁扮粍涓�
-data2.push(...resetButtonValues);
-const jsonObject2 = { data2 };
-
-// 鎻愪氦鏁版嵁鍒板悗绔�
-const jsonString2 = JSON.stringify(jsonObject2);
-console.log('鎵�鏈塗ype涓�0鐨剉alue:', jsonString2);
-socket?.send(jsonString2);
+          data.push(values);
+        }
 
 
-}
-  if (currentButtonName === 'A01鍗婅嚜鍔�') {
-    const elements = document.getElementsByClassName('special-class');
-    for (let i = 0; i < elements.length; i++) {
-      if (elements[i].style.display === 'none') {
-        elements[i].style.display = ''; // 鏄剧ず鍏冪礌
-      } 
-    }
-  }
 
-  if (currentButtonName === 'A02鍗婅嚜鍔�') {
-    const elements = document.getElementsByClassName('special-class2');
-    for (let i = 0; i < elements.length; i++) {
-      if (elements[i].style.display === 'none') {
-        elements[i].style.display = ''; // 鏄剧ず鍏冪礌
-      } 
-    }
-  }
+        const jsonObject = { data };
 
- 
+        // 鎻愪氦鏁版嵁鍒板悗绔�
+        const jsonString = JSON.stringify(jsonObject);
+        console.log('鎵�鏈塗ype涓�0鐨剉alue:', jsonString);
+        socket?.send(jsonString);
 
-  
-},
+      }
+
+      if (currentButtonName === '澶嶄綅') {
+
+        const data2 = [];
+        const resetButtonValues = this.jsonData.map(item => {
+          const buttonItem = item.find(subItem => subItem.button && subItem.button.name === '澶嶄綅');
+          return buttonItem ? buttonItem.button.value : null;
+        }).filter(value => value !== null);
+
+        // 灏嗗緱鍒扮殑鍊兼坊鍔犲埌 data 鏁扮粍涓�
+        data2.push(...resetButtonValues);
+        const jsonObject2 = { data2 };
+
+        // 鎻愪氦鏁版嵁鍒板悗绔�
+        const jsonString2 = JSON.stringify(jsonObject2);
+        console.log('鎵�鏈塗ype涓�0鐨剉alue:', jsonString2);
+        socket?.send(jsonString2);
+
+
+      }
+      if (currentButtonName === 'A01鍗婅嚜鍔�') {
+        const elements = document.getElementsByClassName('special-class');
+        for (let i = 0; i < elements.length; i++) {
+          if (elements[i].style.display === 'none') {
+            elements[i].style.display = ''; // 鏄剧ず鍏冪礌
+          }
+        }
+      }
+
+      if (currentButtonName === 'A02鍗婅嚜鍔�') {
+        const elements = document.getElementsByClassName('special-class2');
+        for (let i = 0; i < elements.length; i++) {
+          if (elements[i].style.display === 'none') {
+            elements[i].style.display = ''; // 鏄剧ず鍏冪礌
+          }
+        }
+      }
+
+
+
+
+    },
 
 
     initWebSocket () {
- 
+
       let viewname = "ServoManualone";
 
       if (typeof WebSocket === "undefined") {
@@ -177,57 +187,57 @@
 
         // 鏀跺埌娑堟伅
         socket.onmessage = (msg) => {
-  if (!msg.data) {
-    return; // 濡傛灉鏀跺埌绌烘暟鎹紝鍒欑洿鎺ヨ繑鍥烇紝涓嶆墽琛屽悗缁�昏緫
-  }
+          if (!msg.data) {
+            return; // 濡傛灉鏀跺埌绌烘暟鎹紝鍒欑洿鎺ヨ繑鍥烇紝涓嶆墽琛屽悗缁�昏緫
+          }
 
-  let obj = JSON.parse(msg.data);
-  // console.log(obj)
-  const jsonData2 = this.jsonData;
+          let obj = JSON.parse(msg.data);
+          console.log(obj)
+          const jsonData2 = this.jsonData;
 
-  const handleMouseMove = throttle(function(event) {
-  const inputBox = document.querySelectorAll('.el-card__body');
-  const target = event.target;
-  if (inputBox && Array.from(inputBox).every(box => !box.contains(target))) {
-    // 鎵ц鏇存柊閫昏緫
-    for (let i = 0; i < 6; i++) {
-  jsonData2[i].forEach((item, index) => {
-    if (typeof item.value !== 'undefined' && typeof obj[`zuhe${i+1}`][0][index] !== 'undefined') {
-      item.value = obj[`zuhe${i+1}`][0][index];
-    }
-  });
-}
+          const handleMouseMove = throttle(function (event) {
+            const inputBox = document.querySelectorAll('.el-card__body');
+            const target = event.target;
+            if (inputBox && Array.from(inputBox).every(box => !box.contains(target))) {
+              // 鎵ц鏇存柊閫昏緫
+              for (let i = 0; i < 6; i++) {
+                jsonData2[i].forEach((item, index) => {
+                  if (typeof item.value !== 'undefined' && typeof obj[`zuhe${i + 1}`][0][index] !== 'undefined') {
+                    item.value = obj[`zuhe${i + 1}`][0][index];
+                  }
+                });
+              }
 
-// 閬嶅巻guzhang鏁扮粍
-for (let i = 0; i < obj.guzhang[0].length; i++) {
-  const guzhangValue = obj.guzhang[0][i];
-  
-  // 鏌ユ壘jsonData2涓甫鏈�"button"鐨勫璞★紝骞朵笖name绛変簬"鏁呴殰"
-  for (let j = 0; j < jsonData2.length; j++) {
-    const section = jsonData2[j];
-    
-    for (let k = 0; k < section.length; k++) {
-      const item = section[k];
-      
-      if (item.button && item.button.name === "鏁呴殰") {
-        // 鏇存柊value灞炴��
-        item.button.value = guzhangValue;
-        break;
-      }
-    }
-    
-  
-  }
-}
+              // 閬嶅巻guzhang鏁扮粍
+              for (let i = 0; i < obj.guzhang[0].length; i++) {
+                const guzhangValue = obj.guzhang[0][i];
+
+                // 鏌ユ壘jsonData2涓甫鏈�"button"鐨勫璞★紝骞朵笖name绛変簬"鏁呴殰"
+                for (let j = 0; j < jsonData2.length; j++) {
+                  const section = jsonData2[j];
+
+                  for (let k = 0; k < section.length; k++) {
+                    const item = section[k];
+
+                    if (item.button && item.button.name === "鏁呴殰") {
+                      // 鏇存柊value灞炴��
+                      item.button.value = guzhangValue;
+                      break;
+                    }
+                  }
+
+
+                }
+              }
 
 
 
 
-  }
-}, 200);
+            }
+          }, 200);
 
-  document.addEventListener('mouseover', handleMouseMove);
-};
+          document.addEventListener('mouseover', handleMouseMove);
+        };
 
 
 
@@ -245,22 +255,21 @@
       }
     },
     send () {
-     
-     
+
+
       socket?.send(JSON.stringify(this.messagepack));
     }
 
   }
-  }
+}
 </script>
 
 <style scoped>
-
-
 .item-row {
   display: flex;
   align-items: center;
-  margin-bottom: 2px; /* 璋冩暣姣忎釜椤圭洰涔嬮棿鐨勯棿璺� */
+  margin-bottom: 2px;
+  /* 璋冩暣姣忎釜椤圭洰涔嬮棿鐨勯棿璺� */
 }
 
 .action-button {
@@ -268,12 +277,12 @@
   background: #66b1ff;
   color: #FFF;
 }
+
 .blue-button {
   background-color: skyblue;
 }
+
 .error-button {
   background-color: red;
 }
-
-
 </style>
\ No newline at end of file
diff --git a/CanadaMes-ui/src/views/home/index.vue b/CanadaMes-ui/src/views/home/index.vue
index b7cc24a..250e9b4 100644
--- a/CanadaMes-ui/src/views/home/index.vue
+++ b/CanadaMes-ui/src/views/home/index.vue
@@ -410,7 +410,7 @@
                 <el-table-column :width="100" prop="boxId" :label="$t('Box No')"></el-table-column>
                 <el-table-column :width="100" prop="state" :label="$t('State')">
                     <template slot-scope='scope'>
-                        {{ scope.row.state==1?"1":"2" }}
+                        {{ scope.row.state==1?$t('Normal'):scope.row.state==2?$t('Entering'):scope.row.state==3?$t('Outing'):"" }}
                     </template>
                 </el-table-column>
                 <el-table-column :width="150" prop="lengthWidth" :label="$t('Dim')">
@@ -422,7 +422,7 @@
                     <template slot-scope='scope'>
                         <el-button type="primary" style="padding: 4px 10px;font-size: 12px;"
                             @click="deleteglass(scope.row.glassId, scope.row.state)">{{ $t('Delete') }}</el-button>
-                        <el-button type="primary" style="padding: 4px 10px;font-size: 12px;"
+                        <el-button type="primary" style="padding: 4px 10px;font-size: 12px;" :disabled="scope.row.state==1?false:true"
                             @click="outglass(scope.row.glassId, scope.row.state)">{{ $t('Out') }}</el-button>
                         <el-button type="primary" style="padding: 4px 10px;font-size: 12px;"
                             @click="UpdateDisabled(scope.row.cage, scope.row.cell, scope.row.disabled == 0 ? 1 : 0)">
@@ -586,14 +586,16 @@
 
         <el-dialog :visible.sync="dialogFormVisible6" :title="$t('Production queue')" top="5vh">
             <el-button type="primary" @click="showform7()">{{ $t('Increase') }}</el-button>
+            <el-button type="primary" @click="isAllowQueueState()">{{ this.isAllowQueue==true?$t('Stop'):$t('Start') }}</el-button>
+            
             <el-table :data="this.OutSlice" :height="700" border style="width: 100%;overflow: auto;">
                 <el-table-column prop="glassId" :label="$t('Barcode')"></el-table-column>
-                <el-table-column prop="orderId" :label="$t('Order No')"></el-table-column>
-                <el-table-column prop="listId" :label="$t('List No')"></el-table-column>
-                <el-table-column prop="boxId" :label="$t('Box No')"></el-table-column>
-                <el-table-column prop="barCode" :label="$t('Frame No')"></el-table-column>
-                <el-table-column prop="glasswidthmm" :label="$t('Length')"></el-table-column>
-                <el-table-column prop="glassheightmm" :label="$t('Width')"></el-table-column>
+                <el-table-column prop="storageCage.orderId" :label="$t('Order No')"></el-table-column>
+                <el-table-column prop="storageCage.listId" :label="$t('List No')"></el-table-column>
+                <el-table-column prop="storageCage.boxId" :label="$t('Box No')"></el-table-column>
+                <el-table-column prop="barcode" :label="$t('Frame No')"></el-table-column>
+                <el-table-column prop="storageCage.glasswidthmm" :label="$t('Length')"></el-table-column>
+                <el-table-column prop="storageCage.glassheightmm" :label="$t('Width')"></el-table-column>
                 <el-table-column :width="280" :label="$t('Operate')">
                     <template slot-scope='scope'>
                         <el-button type="text" size="small" @click="getTopMove(scope.row, scope.$index)"
@@ -660,7 +662,7 @@
 import {
     home, home2, InsertOrder, Addglassid, UpdateTask, SelectAlarmmgInfo, SelectCageInfo, DeleteByGlassID, OutByGlassID, Loadcarlist,
     SelectPassword, SelectGlassByGlassID, Disabled, Inglassid, SelectGlass, InsertQueueGlassId, UpdateQueueState, DeleteQueueGlass, SelectGlassNo,
-    SelectAluminumFrameInfoById, SelectProductionqueue, DeleteProductionQueueGlass, AddOutSliceS
+    SelectAluminumFrameInfoById, SelectProductionqueue, DeleteProductionQueueGlass, AddOutSliceS, isAllowQueues
 } from "../../api/home";
 
 
@@ -731,7 +733,8 @@
             pageCount: 0,
             OutSlice: [],
             AluminumFrame: [],
-            framebarcode: ""
+            framebarcode: "",
+            isAllowQueue:true
         };
     },
     created() {
@@ -775,6 +778,8 @@
                     this.tasklist2 = obj.tasklist2[0];
                     this.alarm = obj.alarmmg[0];
 
+                    this.isAllowQueue=obj.isAllowQueue;
+                    console.log(obj);
                     //鍑虹墖闃熷垪
                     this.OutSlice = obj.listoutslice[0];
                     this.loadglassheight = obj.loadglassheight;
@@ -1150,11 +1155,8 @@
                             if (res.data.message3 == 200) {
                                 this.$message.success(this.$t('Operation successful'));
                             }
-                            else if (res.data.message2 == 300) {
-                                this.$message.error(this.$t('There is no such grid'));
-                            }
                             else if (res.data.message2 == 500) {
-                                this.$message.error(this.$t('This glass is already in the cage'));
+                                this.$message.error(this.$t('This glass is already in the Queue'));
                             }
                         });
                     } else {
@@ -1347,6 +1349,14 @@
         getDownMove(row, index) {
             let arr = this.OutSlice;
             arr.splice(index, 1, ...arr.splice(index + 1, 1, arr[index]));
+        },
+        //鍒囨崲鍑虹墖闃熷垪鐘舵��
+        isAllowQueueState(){
+            isAllowQueues(!this.isAllowQueue).then(res=>{
+                if (res.data.message == 200) {
+                    this.$message.success(this.$t('Operation successful'));
+                }
+            })
         }
     }
 }
diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/PLCAutomaticParameterSetting.java b/springboot-vue3/src/main/java/com/example/springboot/component/PLCAutomaticParameterSetting.java
index f5d262f..376c834 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/component/PLCAutomaticParameterSetting.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/component/PLCAutomaticParameterSetting.java
@@ -71,18 +71,18 @@
       // Integer Plccount = this.count;
 
       // System.out.println(stt);
-      // List<Short> arraylist = S7control.getinstance().ReadWord("DB100.120", 8);
-      // List<Short> dache1 = S7control.getinstance().ReadWord("DB100.18", 1);
-      // List<Short> xiaoche1 = S7control.getinstance().ReadWord("DB100.22", 1);
-      // List<Short> fanzhuan1 = S7control.getinstance().ReadWord("DB100.14", 1);
-      Short[] values1 = { 1, 2, 3, 4, 5, 6, 7, 8 };
-      List<Short> arraylist = new ArrayList<>(Arrays.asList(values1));
-      Short[] fanzhuan = { 4 };
-      List<Short> fanzhuan1 = new ArrayList<>(Arrays.asList(fanzhuan));
-      Short[] dache = { 5 };
-      List<Short> dache1 = new ArrayList<>(Arrays.asList(dache));
-      Short[] xiaoche = { 6 };
-      List<Short> xiaoche1 = new ArrayList<>(Arrays.asList(xiaoche));
+      List<Short> arraylist = S7control.getinstance().ReadWord("DB100.120", 8);
+      List<Short> dache1 = S7control.getinstance().ReadWord("DB100.18", 1);
+      List<Short> xiaoche1 = S7control.getinstance().ReadWord("DB100.22", 1);
+      List<Short> fanzhuan1 = S7control.getinstance().ReadWord("DB100.14", 1);
+      // Short[] values1 = { 1, 2, 3, 4, 5, 6, 7, 8 };
+      // List<Short> arraylist = new ArrayList<>(Arrays.asList(values1));
+      // Short[] fanzhuan = { 4 };
+      // List<Short> fanzhuan1 = new ArrayList<>(Arrays.asList(fanzhuan));
+      // Short[] dache = { 5 };
+      // List<Short> dache1 = new ArrayList<>(Arrays.asList(dache));
+      // Short[] xiaoche = { 6 };
+      // List<Short> xiaoche1 = new ArrayList<>(Arrays.asList(xiaoche));
 
       JSONObject jsonObject = new JSONObject();
       // new short[]{1,1, 1, 1, 1, 1, 2, 33, 2,3, 4, 5}
@@ -138,7 +138,7 @@
               try {
                 String cleanedValue = value.toString().replaceAll("[^0-9-]", "");
                 short sValue = Short.parseShort(cleanedValue.trim());
-                // S7control.getinstance().WriteWord(addressList1, Arrays.asList(sValue));
+                S7control.getinstance().WriteWord(addressList2, Arrays.asList(sValue));
                 System.out
                     .println("messageValue锛�" + Arrays.asList(sValue) + " written to PLC at address " + addressList2);
               } catch (NumberFormatException e) {
@@ -155,7 +155,7 @@
               try {
                 String cleanedValue = value.toString().replaceAll("[^0-9-]", "");
                 short sValue = Short.parseShort(cleanedValue.trim());
-                // S7control.getinstance().WriteWord(addressList2, Arrays.asList(sValue));
+                S7control.getinstance().WriteWord(addressList3, Arrays.asList(sValue));
                 System.out
                     .println("messageValue锛�" + Arrays.asList(sValue) + " written to PLC at address " + addressList3);
               } catch (NumberFormatException e) {
@@ -165,14 +165,14 @@
             }
           }
 
-          // 鍐欏叆绗簩涓湴鍧�
+          // 鍐欏叆绗笁涓湴鍧�
           if (messageArray.getJSONArray(4).size() > 0) {
             Object value = messageArray.getJSONArray(4).get(0);
             if (value != null && !value.toString().equals("null")) {
               try {
                 String cleanedValue = value.toString().replaceAll("[^0-9-]", "");
                 short sValue = Short.parseShort(cleanedValue.trim());
-                // S7control.getinstance().WriteWord(addressList2, Arrays.asList(sValue));
+                S7control.getinstance().WriteWord(addressList4, Arrays.asList(sValue));
                 System.out
                     .println("messageValue锛�" + Arrays.asList(sValue) + " written to PLC at address " + addressList4);
               } catch (NumberFormatException e) {
@@ -182,9 +182,9 @@
             }
           }
 
-          // 鍐欏叆绗笁涓湴鍧�
+          // 鍐欏叆绗洓涓湴鍧�
           if (!mergedList.isEmpty()) {
-            // S7control.getinstance().WriteWord(addressList3, mergedList);
+            S7control.getinstance().WriteWord(addressList1, mergedList);
             System.out.println("messageValue锛�" + mergedList + " written to PLC at address " + addressList1);
           }
 
diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/PlcManualonePosition.java b/springboot-vue3/src/main/java/com/example/springboot/component/PlcManualonePosition.java
index eb3adf2..d0351de 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/component/PlcManualonePosition.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/component/PlcManualonePosition.java
@@ -2,19 +2,12 @@
 
 import cn.hutool.json.JSONArray;
 import cn.hutool.json.JSONObject;
-
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Arrays;
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileNotFoundException;
-import java.io.IOException;
-import java.io.InputStreamReader;
-import java.io.UnsupportedEncodingException;
-
 import org.apache.commons.io.FileUtils;
+
+import java.io.*;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
 
 public class PlcManualonePosition extends Thread {
   String name = "";
@@ -25,8 +18,7 @@
     return FileUtils.readFileToString(file, "UTF-8");
   }
 
-  // 璇诲彇json鏂囦欢涓湴鍧�锛屽苟杩斿洖璇ュ湴鍧�闆嗗悎
-  public List<String> readValue() {
+  public void readValue() {
     String str = "";
     BufferedReader bufferedReader = null;
     FileInputStream fileInputStream;
@@ -37,7 +29,6 @@
       InputStreamReader inputStreamReader = new InputStreamReader(fileInputStream, "utf-8");
       // 鎻愰珮璇诲彇鏁堢巼锛屽湪 BufferedReader 鍐呭寘瑁� InputStreamReader
       bufferedReader = new BufferedReader(inputStreamReader);
-      // bufferedReader.close();
       String line = null;
       // 灏� bufferedReader 鍐呭涓�琛屼竴琛岃祴鍊肩粰str
       while ((line = bufferedReader.readLine()) != null) {
@@ -48,23 +39,15 @@
       JSONObject jsonObject = new JSONObject(str);
 
       // 鑾峰彇json涓殑鍊�
-      JSONArray address = jsonObject.getJSONArray("Manualoneposition");
-
-      String[] result = new String[address.size()];
-
-      List<String> arraylistss = new ArrayList<>();
-
+      JSONArray address = jsonObject.getJSONArray("ServoManualone");
       for (int i = 0; i < address.size(); i++) {
         JSONObject ress = (JSONObject) address.get(i);
 
         this.name = ress.getStr("name");
         this.count = ress.getInt("count");
-        ;
-        result[i] = name + ',' + count.toString();
-        arraylistss.add(result[i]);
 
       }
-      return arraylistss;
+
     } catch (FileNotFoundException e) {
       e.printStackTrace();
     } catch (UnsupportedEncodingException e) {
@@ -72,8 +55,6 @@
     } catch (IOException e) {
       e.printStackTrace();
     }
-    return null;
-
   }
 
   @Override
@@ -86,83 +67,291 @@
         e.printStackTrace();
       }
       // this.readValue();
-      List<String> myCollection;
-      myCollection = readValue();
-      // System.out.println(myCollection);
-      List<Short> arraylist = new ArrayList<>();
-      for (String element : myCollection) {
-        String[] parts = element.split(",");
-        String PlcAddress = parts[0];
-        String count = parts[1];
-        Integer Plccount = new Integer(count);
-        // arraylist = S7control.getinstance().ReadWord(PlcAddress, Plccount);
-        System.out.println(PlcAddress);
-      }
+      // String PlcAddress = this.name;
+      // Integer Plccount = this.count;
 
-      // List<Short> arraylist = S7control.getinstance().ReadWord("DB100.0", 12);
-      // List<Short> state = S7control.getinstance().ReadWord("DB103.0", 10);
-      // parameter
-      // Short[] values1 = { 1231, 1, 1, 1, 1, 1, 2, 33, 2, 3, 4, 5 };
-      // List<Short> arraylist = new ArrayList<>(Arrays.asList(values1));
+      List<String> addresses = new ArrayList<>();
+      addresses.add("DB100.108");
+      addresses.add("DB100.20");
+      addresses.add("DB103.52");
+      List<Short> arraylist = S7control.getinstance().readWords(addresses);
+      // System.out.println(arraylist);
 
-      // state
-      Short[] values2 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
-      List<Short> state = new ArrayList<>(Arrays.asList(values2));
+      List<String> addresses2 = new ArrayList<>();
+      addresses2.add("DB100.110");
+      addresses2.add("DB100.176");
+      addresses2.add("DB103.54");
+      List<Short> arraylist2 = S7control.getinstance().readWords(addresses2);
 
-      // action
-      Boolean[] values = { false, true, true, true, true, true, true, true, true,
-          true, true, true, true, true, true, true, true, true, true, true, true, true, true,
-          true, false, true };
-      List<Boolean> paramlist = new ArrayList<>(Arrays.asList(values));
+      List<String> addresses3 = new ArrayList<>();
+      addresses3.add("DB100.112");
+      addresses3.add("DB100.24");
+      addresses3.add("DB103.56");
+      List<Short> arraylist3 = S7control.getinstance().readWords(addresses3);
 
-      short[] sholist = new short[paramlist.size()];
+      List<String> addresses4 = new ArrayList<>();
+      addresses4.add("DB100.114");
+      addresses4.add("DB100.178");
+      addresses4.add("DB103.60");
+      List<Short> arraylist4 = S7control.getinstance().readWords(addresses4);
 
-      for (int i = 0; i < paramlist.size(); i++) {
-        boolean value = paramlist.get(i);
-        sholist[i] = value ? (short) 1 : (short) 0;
-      }
+      List<Short> arraylist5 = S7control.getinstance().ReadWord("DB103.40", 1);
+      List<Short> arraylist6 = S7control.getinstance().ReadWord("DB103.44", 1);
+      List<Short> arraylist7 = S7control.getinstance().ReadWord("DB103.48", 1);
+      List<Short> arraylist8 = S7control.getinstance().ReadWord("DB103.50", 1);
+      List<String> addresses9 = new ArrayList<>();
+      addresses9.add("DB104.24");
+      addresses9.add("DB104.26");
+      addresses9.add("DB104.20");
+      addresses9.add("DB104.22");
+      addresses9.add("DB104.28");
+      addresses9.add("DB104.30");
+      List<Short> arraylist9 = S7control.getinstance().readWords(addresses9);
+      arraylist5.addAll(arraylist6);
+      arraylist5.addAll(arraylist7);
+      arraylist5.addAll(arraylist8);
 
       JSONObject jsonObject = new JSONObject();
-      // new short[]{1,1, 1, 1, 1, 1, 2, 33, 2,3, 4, 5}
-      // new short[]{0,0, 0, 0, 0, 0, 0, 0, 0, 0}
+      // System.out.println(arraylist6);
+      jsonObject.append("zuhe1", arraylist);
+      jsonObject.append("zuhe2", arraylist2);
+      jsonObject.append("zuhe3", arraylist3);
+      jsonObject.append("zuhe4", arraylist4);
+      jsonObject.append("shishi1", arraylist5);
+      jsonObject.append("guzhang", arraylist9);
+      // jsonObject.append("weihuiling", arraylist8);
 
-      jsonObject.append("params", arraylist);
-      jsonObject.append("state", state);
-      jsonObject.append("action", sholist);
-      WebSocketServer sendwServer = WebSocketServer.sessionMap.get("Parameter");
+      WebSocketServer sendwServer = WebSocketServer.sessionMap.get("ManualonePosition");
       if (sendwServer != null) {
         sendwServer.sendMessage(jsonObject.toString());
       }
 
-      WebSocketServer webSocketServer = WebSocketServer.sessionMap.get("Parameter");
+      WebSocketServer webSocketServer = WebSocketServer.sessionMap.get("ManualonePosition");
       if (webSocketServer != null) {
         List<String> messages = webSocketServer.getMessages();
+        List<String> waddresses1 = new ArrayList<>();
+        waddresses1.add("DB100.108");
+        waddresses1.add("DB100.20");
+        waddresses1.add("DB103.52");
 
-        String addressList = "DB100.0";
+        List<String> waddresses2 = new ArrayList<>();
+        waddresses2.add("DB100.110");
+        waddresses2.add("DB100.176");
+        waddresses2.add("DB103.54");
 
+        List<String> waddresses3 = new ArrayList<>();
+        waddresses3.add("DB100.112");
+        waddresses3.add("DB100.24");
+        waddresses3.add("DB103.56");
+
+        List<String> waddresses4 = new ArrayList<>();
+        waddresses4.add("DB100.114");
+        waddresses4.add("DB100.178");
+        waddresses4.add("DB103.60");
+
+        // 鏁呴殰鍦板潃
+        List<String> waddresses5 = new ArrayList<>();
+        waddresses5.add("DB103.244");
+        waddresses5.add("DB103.250");
+        waddresses5.add("DB103.252");
+        waddresses5.add("DB103.254");
+
+        // 澶嶄綅鍦板潃
+        List<String> waddresses6 = new ArrayList<>();
+        waddresses6.add("DB101.4.0");
+        waddresses6.add("DB101.4.3");
+        waddresses6.add("DB101.4.4");
+        waddresses6.add("DB101.4.6");
+
+        // 鍥為浂鍦板潃
+        List<String> waddresses7 = new ArrayList<>();
+        waddresses7.add("DB101.4.5");
+        waddresses7.add("DB101.4.7");
+
+        System.out.println(messages.isEmpty());
         if (!messages.isEmpty()) {
           // 灏嗘渶鍚庝竴涓秷鎭浆鎹负 short 绫诲瀷鐨勫垪琛�
           String lastMessage = messages.get(messages.size() - 1);
-          System.out.println("messages锛�" + messages);
-          String[] parts = lastMessage.split(",");
-          List<Short> messageValues = new ArrayList<>();
-          for (String part : parts) {
-            try {
-              // 浣跨敤姝e垯琛ㄨ揪寮忔竻闄ら潪鏁板瓧瀛楃
-              String cleanedPart = part.replaceAll("[^0-9-]", "");
-              short value = Short.parseShort(cleanedPart.trim());
-              messageValues.add(value);
-            } catch (NumberFormatException e) {
-              // 濡傛灉鏃犳硶瑙f瀽涓� short 绫诲瀷锛屽垯蹇界暐璇ラ儴鍒�
-
-              e.printStackTrace();
+          // System.out.println("lastMessage锛�" + lastMessage);
+          JSONArray messageArray = new JSONArray(lastMessage);
+          // 鍐欏叆A01
+          if (messageArray.getJSONArray(0).size() > 0) {
+            JSONArray jsonArray = messageArray.getJSONArray(0);
+            List<Short> sValue = new ArrayList<>();
+            for (int i = 0; i < jsonArray.size(); i++) {
+              Object value = jsonArray.get(i);
+              if (value != null && !value.toString().equals("null")) {
+                try {
+                  String cleanedValue = value.toString().replaceAll("[^0-9-]", "");
+                  short val = Short.parseShort(cleanedValue.trim());
+                  sValue.add(val);
+                  System.out.println("messageValue锛�" + Arrays.asList(val) + " added to the list");
+                } catch (NumberFormatException e) {
+                  // 濡傛灉鏃犳硶瑙f瀽涓� short 绫诲瀷锛屽垯蹇界暐璇ラ儴鍒�
+                  System.err.println("Could not parse value: " + value);
+                }
+              }
+            }
+            if (!sValue.isEmpty()) {
+              S7control.getinstance().WriteWord(waddresses1, sValue);
+              System.out.println("Values " + sValue + " written to PLC at address " + waddresses1);
             }
           }
 
-          // 灏嗘秷鎭�煎啓鍏� PLC
-          S7control.getinstance().WriteWord(addressList, messageValues);
-          System.out.println("messageValues锛�" + messageValues);
-          System.out.println("addressList锛�" + addressList);
+          // 鍐欏叆A02
+          if (messageArray.getJSONArray(1).size() > 0) {
+            JSONArray jsonArray = messageArray.getJSONArray(1);
+            List<Short> sValue2 = new ArrayList<>();
+            for (int i = 0; i < jsonArray.size(); i++) {
+              Object value = jsonArray.get(i);
+              if (value != null && !value.toString().equals("null")) {
+                try {
+                  String cleanedValue = value.toString().replaceAll("[^0-9-]", "");
+                  short val = Short.parseShort(cleanedValue.trim());
+                  sValue2.add(val);
+                  System.out.println("messageValue锛�" + Arrays.asList(val) + " added to the list");
+                } catch (NumberFormatException e) {
+                  // 濡傛灉鏃犳硶瑙f瀽涓� short 绫诲瀷锛屽垯蹇界暐璇ラ儴鍒�
+                  System.err.println("Could not parse value: " + value);
+                }
+              }
+            }
+            if (!sValue2.isEmpty()) {
+              S7control.getinstance().WriteWord(waddresses2, sValue2);
+              System.out.println("Values " + sValue2 + " written to PLC at address " + waddresses2);
+            }
+          }
+
+          // 鍐欏叆B01
+          if (messageArray.getJSONArray(2).size() > 0) {
+            JSONArray jsonArray = messageArray.getJSONArray(2);
+            List<Short> sValue2 = new ArrayList<>();
+            for (int i = 0; i < jsonArray.size(); i++) {
+              Object value = jsonArray.get(i);
+              if (value != null && !value.toString().equals("null")) {
+                try {
+                  String cleanedValue = value.toString().replaceAll("[^0-9-]", "");
+                  short val = Short.parseShort(cleanedValue.trim());
+                  sValue2.add(val);
+                  System.out.println("messageValue锛�" + Arrays.asList(val) + " added to the list");
+                } catch (NumberFormatException e) {
+                  // 濡傛灉鏃犳硶瑙f瀽涓� short 绫诲瀷锛屽垯蹇界暐璇ラ儴鍒�
+                  System.err.println("Could not parse value: " + value);
+                }
+              }
+            }
+            if (!sValue2.isEmpty()) {
+              S7control.getinstance().WriteWord(waddresses2, sValue2);
+              System.out.println("Values " + sValue2 + " written to PLC at address " + waddresses3);
+            }
+          }
+
+          // 鍐欏叆B02
+          if (messageArray.getJSONArray(3).size() > 0) {
+            JSONArray jsonArray = messageArray.getJSONArray(3);
+            List<Short> sValue2 = new ArrayList<>();
+            for (int i = 0; i < jsonArray.size(); i++) {
+              Object value = jsonArray.get(i);
+              if (value != null && !value.toString().equals("null")) {
+                try {
+                  String cleanedValue = value.toString().replaceAll("[^0-9-]", "");
+                  short val = Short.parseShort(cleanedValue.trim());
+                  sValue2.add(val);
+                  System.out.println("messageValue锛�" + Arrays.asList(val) + " added to the list");
+                } catch (NumberFormatException e) {
+                  // 濡傛灉鏃犳硶瑙f瀽涓� short 绫诲瀷锛屽垯蹇界暐璇ラ儴鍒�
+                  System.err.println("Could not parse value: " + value);
+                }
+              }
+            }
+            if (!sValue2.isEmpty()) {
+              S7control.getinstance().WriteWord(waddresses2, sValue2);
+              System.out.println("Values " + sValue2 + " written to PLC at address " + waddresses4);
+            }
+          }
+
+          // 鍐欏叆鏁呴殰鍦板潃
+          if (messageArray.getJSONArray(4).size() > 0) {
+            JSONArray jsonArray = messageArray.getJSONArray(4);
+            List<Short> sValue2 = new ArrayList<>();
+            for (int i = 0; i < jsonArray.size(); i++) {
+              Object value = jsonArray.get(i);
+              if (value != null && !value.toString().equals("null")) {
+                try {
+                  String cleanedValue = value.toString().replaceAll("[^0-9-]", "");
+                  short val = Short.parseShort(cleanedValue.trim());
+                  sValue2.add(val);
+                  System.out.println("messageValue锛�" + Arrays.asList(val) + " added to the list");
+                } catch (NumberFormatException e) {
+                  // 濡傛灉鏃犳硶瑙f瀽涓� short 绫诲瀷锛屽垯蹇界暐璇ラ儴鍒�
+                  System.err.println("Could not parse value: " + value);
+                }
+              }
+            }
+            if (!sValue2.isEmpty()) {
+              S7control.getinstance().WriteWord(waddresses5, sValue2);
+              System.out.println("Values " + sValue2 + " written to PLC at address " + waddresses5);
+            }
+          }
+
+          // 鍐欏叆澶嶄綅鍦板潃
+          if (messageArray.getJSONArray(5).size() > 0) {
+            JSONArray jsonArray = messageArray.getJSONArray(5);
+            List<Short> sValue2 = new ArrayList<>();
+            List<Boolean> messageBooleans = new ArrayList<>();
+            for (int i = 0; i < jsonArray.size(); i++) {
+              Object value = jsonArray.get(i);
+              if (value != null && !value.toString().equals("null")) {
+                try {
+                  String cleanedValue = value.toString().replaceAll("[^0-9-]", "");
+                  short val = Short.parseShort(cleanedValue.trim());
+                  sValue2.add(val);
+                  // 灏嗘秷鎭�艰浆鎹负甯冨皵鍒楄〃
+                  for (short values : sValue2) {
+                    messageBooleans.add(values == 1 ? true : false);
+                  }
+                  System.out.println("messageValue锛�" + Arrays.asList(val) + " added to the list");
+                } catch (NumberFormatException e) {
+                  // 濡傛灉鏃犳硶瑙f瀽涓� short 绫诲瀷锛屽垯蹇界暐璇ラ儴鍒�
+                  System.err.println("Could not parse value: " + value);
+                }
+              }
+            }
+            if (!messageBooleans.isEmpty()) {
+              // S7control.getinstance().WriteWord(waddresses6, messageBooleans);
+              System.out.println("Values " + messageBooleans + " written to PLC at address " + waddresses6);
+            }
+          }
+
+          // 鍐欏叆鍥為浂鍦板潃
+          if (messageArray.getJSONArray(6).size() > 0) {
+            JSONArray jsonArray = messageArray.getJSONArray(6);
+            List<Short> sValue2 = new ArrayList<>();
+            List<Boolean> messageBooleans = new ArrayList<>();
+            for (int i = 0; i < jsonArray.size(); i++) {
+              Object value = jsonArray.get(i);
+              if (value != null && !value.toString().equals("null")) {
+                try {
+                  String cleanedValue = value.toString().replaceAll("[^0-9-]", "");
+                  short val = Short.parseShort(cleanedValue.trim());
+                  sValue2.add(val);
+                  // 灏嗘秷鎭�艰浆鎹负甯冨皵鍒楄〃
+                  for (short values : sValue2) {
+                    messageBooleans.add(values == 1 ? true : false);
+                  }
+                  System.out.println("messageValue锛�" + Arrays.asList(val) + " added to the list");
+                } catch (NumberFormatException e) {
+                  // 濡傛灉鏃犳硶瑙f瀽涓� short 绫诲瀷锛屽垯蹇界暐璇ラ儴鍒�
+                  System.err.println("Could not parse value: " + value);
+                }
+              }
+            }
+            if (!messageBooleans.isEmpty()) {
+              S7control.getinstance().WriteBit(waddresses7, messageBooleans);
+              System.out.println("Values " + messageBooleans + " written to PLC at address " + waddresses7);
+            }
+          }
+
           // 娓呯┖娑堟伅鍒楄〃
           webSocketServer.clearMessages();
         }
diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter.java b/springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter.java
index fc93c23..08e7f66 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter.java
@@ -86,17 +86,18 @@
       Short[] values2 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
       List<Short> state = new ArrayList<>(Arrays.asList(values2));
 
-      Boolean[] values = { false, true, true, true, true, true, true, true, true,
-          true, true, true, true, true, true, true, true, true, true, true, true, true, true,
-          true, false, true };
-      List<Boolean> paramlist = new ArrayList<>(Arrays.asList(values));
+      // Boolean[] values = { false, true, true, true, true, true, true, true, true,
+      // true, true, true, true, true, true, true, true, true, true, true, true, true,
+      // true,
+      // true, false, true };
+      // List<Boolean> paramlist = new ArrayList<>(Arrays.asList(values));
 
-      short[] sholist = new short[paramlist.size()];
+      // short[] sholist = new short[paramlist.size()];
 
-      for (int i = 0; i < paramlist.size(); i++) {
-        boolean value = paramlist.get(i);
-        sholist[i] = value ? (short) 1 : (short) 0;
-      }
+      // for (int i = 0; i < paramlist.size(); i++) {
+      // boolean value = paramlist.get(i);
+      // sholist[i] = value ? (short) 1 : (short) 0;
+      // }
 
       JSONObject jsonObject = new JSONObject();
       // new short[]{1,1, 1, 1, 1, 1, 2, 33, 2,3, 4, 5}
@@ -104,7 +105,7 @@
 
       jsonObject.append("params", arraylist);
       jsonObject.append("state", state);
-      jsonObject.append("action", sholist);
+      // jsonObject.append("action", sholist);
       WebSocketServer sendwServer = WebSocketServer.sessionMap.get("Parameter");
       if (sendwServer != null) {
         sendwServer.sendMessage(jsonObject.toString());
@@ -136,7 +137,7 @@
           }
 
           // 灏嗘秷鎭�煎啓鍏� PLC
-//          S7control.getinstance().WriteWord(addressList, messageValues);
+          // S7control.getinstance().WriteWord(addressList, messageValues);
           System.out.println("messageValues锛�" + messageValues);
           System.out.println("addressList锛�" + addressList);
           // 娓呯┖娑堟伅鍒楄〃
diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter1.java b/springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter1.java
index 5e7007a..d1518f6 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter1.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter1.java
@@ -66,22 +66,20 @@
       } catch (InterruptedException e) {
         e.printStackTrace();
       }
-//      this.readValue();
-//      String PlcAddress = this.name;
-//      Integer Plccount = this.count;
+      // this.readValue();
+      // String PlcAddress = this.name;
+      // Integer Plccount = this.count;
 
       // System.out.println(stt);
-       List<Short> arraylist = S7control.getinstance().ReadWord("DB100.0", 12);
-       List<Short> fanzhuan1 = S7control.getinstance().ReadWord("DB100.8", 1);
-       List<Short> xiaoche1 = S7control.getinstance().ReadWord("DB100.12", 1);
-//      Short[] values1 = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 };
-//      List<Short> arraylist = new ArrayList<>(Arrays.asList(values1));
-//      Short[] fanzhuan = { 4 };
-//      List<Short> fanzhuan1 = new ArrayList<>(Arrays.asList(fanzhuan));
-//      Short[] xiaoche = {5};
-//      List<Short> xiaoche1 = new ArrayList<>(Arrays.asList(xiaoche));
-
-
+      List<Short> arraylist = S7control.getinstance().ReadWord("DB100.0", 12);
+      List<Short> fanzhuan1 = S7control.getinstance().ReadWord("DB100.8", 1);
+      List<Short> xiaoche1 = S7control.getinstance().ReadWord("DB100.12", 1);
+      // Short[] values1 = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 };
+      // List<Short> arraylist = new ArrayList<>(Arrays.asList(values1));
+      // Short[] fanzhuan = { 4 };
+      // List<Short> fanzhuan1 = new ArrayList<>(Arrays.asList(fanzhuan));
+      // Short[] xiaoche = {5};
+      // List<Short> xiaoche1 = new ArrayList<>(Arrays.asList(xiaoche));
 
       JSONObject jsonObject = new JSONObject();
       // new short[]{1,1, 1, 1, 1, 1, 2, 33, 2,3, 4, 5}
@@ -106,7 +104,7 @@
         if (!messages.isEmpty()) {
           // 灏嗘渶鍚庝竴涓秷鎭浆鎹负 short 绫诲瀷鐨勫垪琛�
           String lastMessage = messages.get(messages.size() - 1);
-//        System.out.println("lastMessage锛�" + lastMessage);
+          // System.out.println("lastMessage锛�" + lastMessage);
           JSONArray messageArray = new JSONArray(lastMessage);
 
           // 鏁村悎绗� 1 鍒� 3 涓暟缁勫苟鍘绘帀 null 鍏冪礌
@@ -135,8 +133,9 @@
               try {
                 String cleanedValue = value.toString().replaceAll("[^0-9-]", "");
                 short sValue = Short.parseShort(cleanedValue.trim());
-               S7control.getinstance().WriteWord(addressList1, Arrays.asList(sValue));
-                System.out.println("messageValue锛�" + Arrays.asList(sValue) + " written to PLC at address " + addressList1);
+                S7control.getinstance().WriteWord(addressList1, Arrays.asList(sValue));
+                System.out
+                    .println("messageValue锛�" + Arrays.asList(sValue) + " written to PLC at address " + addressList3);
               } catch (NumberFormatException e) {
                 // 濡傛灉鏃犳硶瑙f瀽涓� short 绫诲瀷锛屽垯蹇界暐璇ラ儴鍒�
                 System.err.println("Could not parse value: " + value);
@@ -151,8 +150,9 @@
               try {
                 String cleanedValue = value.toString().replaceAll("[^0-9-]", "");
                 short sValue = Short.parseShort(cleanedValue.trim());
-               S7control.getinstance().WriteWord(addressList2, Arrays.asList(sValue));
-                System.out.println("messageValue锛�" + Arrays.asList(sValue) + " written to PLC at address " + addressList2);
+                S7control.getinstance().WriteWord(addressList2, Arrays.asList(sValue));
+                System.out
+                    .println("messageValue锛�" + Arrays.asList(sValue) + " written to PLC at address " + addressList2);
               } catch (NumberFormatException e) {
                 // 濡傛灉鏃犳硶瑙f瀽涓� short 绫诲瀷锛屽垯蹇界暐璇ラ儴鍒�
                 System.err.println("Could not parse value: " + value);
@@ -162,16 +162,15 @@
 
           // 鍐欏叆绗笁涓湴鍧�
           if (!mergedList.isEmpty()) {
-          S7control.getinstance().WriteWord(addressList3, mergedList);
-            System.out.println("messageValue锛�" + mergedList + " written to PLC at address " + addressList3);
+            S7control.getinstance().WriteWord(addressList3, mergedList);
+            System.out.println("messageValue锛�" + mergedList + " written to PLC at address " + addressList1);
           }
 
           // 娓呯┖娑堟伅鍒楄〃
           webSocketServer.clearMessages();
         }
-      
 
-    }
+      }
 
     }
   }
diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter2.java b/springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter2.java
index 5c4348d..7d65157 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter2.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter2.java
@@ -67,7 +67,6 @@
         e.printStackTrace();
       }
 
-
       List<String> addressList1 = new ArrayList<>();
       addressList1.add("DB103.32~45");
       addressList1.add("DB103.46~59");
@@ -82,7 +81,6 @@
       addressList1.add("DB103.228~241");
       List<Boolean> paramlist = S7control.getinstance().readBits(addressList1);
 
-
       List<String> addresses = new ArrayList<>();
       addresses.add("DB103.0");
       addresses.add("DB103.2");
@@ -96,11 +94,9 @@
       addresses.add("DB103.6");
       List<Short> data = S7control.getinstance().readWords(addresses);
 
-
-
       List<Boolean> data2 = S7control.getinstance().ReadBits("DB101.9.2", 10);
       List<String> addressList3 = new ArrayList<>();
-      addressList3.add("DB106.64-DB106.77");
+      addressList3.add("DB103.6");
       List<Boolean> data3 = S7control.getinstance().readBits(addressList3);
 
       List<String> addresses4 = new ArrayList<>();
@@ -111,19 +107,17 @@
 
       List<Short> data4 = S7control.getinstance().readWords(addresses4);
 
-
-//     Boolean[] values = { false, true, true, true, true, true, true, true, true,
-//            true};
-//      List<Boolean> paramlist = new ArrayList<>(Arrays.asList(values));
-//      Short[] values1 = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
-//     List<Short> data = new ArrayList<>(Arrays.asList(values1));
-//      Short[] values2 = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
-//     List<Short> data2 = new ArrayList<>(Arrays.asList(values2));
-//      Short[] values3 = { 11};
-//     List<Short> data3 = new ArrayList<>(Arrays.asList(values3));
-//      Short[] values4 = { 2,2,3,4};
-//      List<Short> data4 = new ArrayList<>(Arrays.asList(values4));
-
+      // Boolean[] values = { false, true, true, true, true, true, true, true, true,
+      // true};
+      // List<Boolean> paramlist = new ArrayList<>(Arrays.asList(values));
+      // Short[] values1 = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
+      // List<Short> data = new ArrayList<>(Arrays.asList(values1));
+      // Short[] values2 = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
+      // List<Short> data2 = new ArrayList<>(Arrays.asList(values2));
+      // Short[] values3 = { 11};
+      // List<Short> data3 = new ArrayList<>(Arrays.asList(values3));
+      // Short[] values4 = { 2,2,3,4};
+      // List<Short> data4 = new ArrayList<>(Arrays.asList(values4));
 
       JSONObject jsonObject = new JSONObject();
       short[] params = new short[paramlist.size()];
@@ -133,11 +127,10 @@
       }
 
       jsonObject.append("params", params);
-      jsonObject.append("params", data2);
       jsonObject.append("params", data);
+      jsonObject.append("params", data2);
       jsonObject.append("params", data3);
       jsonObject.append("params", data4);
-
 
       WebSocketServer sendwServer = WebSocketServer.sessionMap.get("Parameter2");
       if (sendwServer != null) {
@@ -165,7 +158,7 @@
               messageValues.add(value);
             } catch (NumberFormatException e) {
               // 濡傛灉鏃犳硶瑙f瀽涓烘暣鏁扮被鍨嬶紝鍒欏拷鐣ヨ閮ㄥ垎
-//              e.printStackTrace();
+              // e.printStackTrace();
             }
           }
 
@@ -176,7 +169,7 @@
           }
 
           // 灏嗗竷灏斿垪琛ㄥ啓鍏� PLC
-         S7control.getinstance().WriteBit(addressList, messageBooleans);
+          S7control.getinstance().WriteBit(addressList, messageBooleans);
           System.out.println("messageValues锛�" + messageBooleans);
           System.out.println("addressList锛�" + addressList);
           // 娓呯┖娑堟伅鍒楄〃
diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/PlcPositioning1.java b/springboot-vue3/src/main/java/com/example/springboot/component/PlcPositioning1.java
index 17e0010..11b23a1 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/component/PlcPositioning1.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/component/PlcPositioning1.java
@@ -17,135 +17,131 @@
 import org.apache.commons.io.FileUtils;
 
 public class PlcPositioning1 extends Thread {
-    String name = "";
-    Integer count = 0;
+  String name = "";
+  Integer count = 0;
 
-    public static String readFileToString(String filePath) throws IOException {
-        File file = new File(filePath);
-        return FileUtils.readFileToString(file, "UTF-8");
+  public static String readFileToString(String filePath) throws IOException {
+    File file = new File(filePath);
+    return FileUtils.readFileToString(file, "UTF-8");
+  }
+
+  public void readValue() {
+    String str = "";
+    BufferedReader bufferedReader = null;
+    FileInputStream fileInputStream;
+    try {
+      // 浠庢枃浠朵腑璇诲彇瀛楄妭鏁版嵁瀛樺叆 fileInputStream
+      fileInputStream = new FileInputStream("CanadaMes-ui/src/configuration/address.json");
+      // 璇诲彇 fileInputStream 涓瓧鑺傚苟灏嗗叾瑙g爜涓哄瓧绗�
+      InputStreamReader inputStreamReader = new InputStreamReader(fileInputStream, "utf-8");
+      // 鎻愰珮璇诲彇鏁堢巼锛屽湪 BufferedReader 鍐呭寘瑁� InputStreamReader
+      bufferedReader = new BufferedReader(inputStreamReader);
+      String line = null;
+      // 灏� bufferedReader 鍐呭涓�琛屼竴琛岃祴鍊肩粰str
+      while ((line = bufferedReader.readLine()) != null) {
+        str += line;
+      }
+
+      // 灏唖tr瀛楃涓叉牸寮忚浆涓簀son
+      JSONObject jsonObject = new JSONObject(str);
+
+      // 鑾峰彇json涓殑鍊�
+      JSONArray address = jsonObject.getJSONArray("Positioning1");
+      for (int i = 0; i < address.size(); i++) {
+        JSONObject ress = (JSONObject) address.get(i);
+
+        this.name = ress.getStr("name");
+        this.count = ress.getInt("count");
+        System.out.println("messageValues锛�" + this.name);
+        System.out.println("messageValues锛�" + this.count);
+      }
+
+    } catch (FileNotFoundException e) {
+      e.printStackTrace();
+    } catch (UnsupportedEncodingException e) {
+      e.printStackTrace();
+    } catch (IOException e) {
+      e.printStackTrace();
     }
+  }
 
-    public void readValue() {
-        String str = "";
-        BufferedReader bufferedReader = null;
-        FileInputStream fileInputStream;
-        try {
-            // 浠庢枃浠朵腑璇诲彇瀛楄妭鏁版嵁瀛樺叆 fileInputStream
-            fileInputStream = new FileInputStream("CanadaMes-ui/src/configuration/address.json");
-            // 璇诲彇 fileInputStream 涓瓧鑺傚苟灏嗗叾瑙g爜涓哄瓧绗�
-            InputStreamReader inputStreamReader = new InputStreamReader(fileInputStream, "utf-8");
-            // 鎻愰珮璇诲彇鏁堢巼锛屽湪 BufferedReader 鍐呭寘瑁� InputStreamReader
-            bufferedReader = new BufferedReader(inputStreamReader);
-            String line = null;
-            // 灏� bufferedReader 鍐呭涓�琛屼竴琛岃祴鍊肩粰str
-            while ((line = bufferedReader.readLine()) != null) {
-                str += line;
-            }
+  @Override
+  public void run() {
+    while (this != null) {
+      try {
+        Thread.sleep(1000);
 
-            // 灏唖tr瀛楃涓叉牸寮忚浆涓簀son
-            JSONObject jsonObject = new JSONObject(str);
+      } catch (InterruptedException e) {
+        e.printStackTrace();
+      }
+      // this.readValue();
+      // String PlcAddress = this.name;
+      // Integer Plccount = this.count;
 
-            // 鑾峰彇json涓殑鍊�
-            JSONArray address = jsonObject.getJSONArray("Positioning1");
-            for (int i = 0; i < address.size(); i++) {
-                JSONObject ress = (JSONObject) address.get(i);
+      // System.out.println(stt);
+      List<Short> arraylist = S7control.getinstance().ReadWord("DB100.42", 23);
 
-                this.name = ress.getStr("name");
-                this.count = ress.getInt("count");
-                System.out.println("messageValues锛�" + this.name);
-                System.out.println("messageValues锛�" + this.count);
-            }
+      // Short[] 瀛樼墖 = { 1 };
+      // List<Short> 瀛樼墖1 = new ArrayList<>(Arrays.asList(瀛樼墖));
+      // Short[] 鎺ョ墖 = { 1 };
+      // List<Short> 鎺ョ墖1 = new ArrayList<>(Arrays.asList(鎺ョ墖));
+      // Short[] 闂磋窛 = { 1 };
+      // List<Short> 闂磋窛1 = new ArrayList<>(Arrays.asList(闂磋窛));
+      // Short[] values1 = {1,1,1, 1,2, 3, 4, 5, 6, 7, 8, 9, 10,11,
+      // 12,13,14,15,16,17,18,19,20 };
+      // List<Short> arraylist = new ArrayList<>(Arrays.asList(values1));
 
-        } catch (FileNotFoundException e) {
-            e.printStackTrace();
-        } catch (UnsupportedEncodingException e) {
-            e.printStackTrace();
-        } catch (IOException e) {
-            e.printStackTrace();
-        }
-    }
+      JSONObject jsonObject = new JSONObject();
 
-    @Override
-    public void run() {
-        while (this != null) {
-            try {
-                Thread.sleep(1000);
+      jsonObject.append("params", arraylist);
 
-            } catch (InterruptedException e) {
-                e.printStackTrace();
-            }
-//        this.readValue();
-//            String PlcAddress = this.name;
-//            Integer Plccount = this.count;
+      WebSocketServer sendwServer = WebSocketServer.sessionMap.get("Positioning1");
+      if (sendwServer != null) {
+        sendwServer.sendMessage(jsonObject.toString());
+      }
 
-            // System.out.println(stt);
-  List<Short> arraylist = S7control.getinstance().ReadWord("DB100.42", 20);
+      WebSocketServer webSocketServer = WebSocketServer.sessionMap.get("Positioning1");
+      if (webSocketServer != null) {
+        List<String> messages = webSocketServer.getMessages();
 
-//            Short[] 瀛樼墖 = { 1 };
-//            List<Short> 瀛樼墖1 = new ArrayList<>(Arrays.asList(瀛樼墖));
-//            Short[] 鎺ョ墖 = { 1 };
-//            List<Short> 鎺ョ墖1 = new ArrayList<>(Arrays.asList(鎺ョ墖));
-//            Short[] 闂磋窛 = { 1 };
-//            List<Short> 闂磋窛1 = new ArrayList<>(Arrays.asList(闂磋窛));
-//            Short[] values1 = {1,1,1, 1,2, 3, 4, 5, 6, 7, 8, 9, 10,11, 12,13,14,15,16,17,18,19,20 };
-//            List<Short> arraylist = new ArrayList<>(Arrays.asList(values1));
+        String addressList3 = "DB100.12";
 
+        if (!messages.isEmpty()) {
+          // 灏嗘渶鍚庝竴涓秷鎭浆鎹负 short 绫诲瀷鐨勫垪琛�
+          String lastMessage = messages.get(messages.size() - 1);
+          // System.out.println("lastMessage锛�" + lastMessage);
+          JSONArray messageArray = new JSONArray(lastMessage);
 
-            JSONObject jsonObject = new JSONObject();
-
-
-            jsonObject.append("params", arraylist);
-
-
-            WebSocketServer sendwServer = WebSocketServer.sessionMap.get("Positioning1");
-            if (sendwServer != null) {
-                sendwServer.sendMessage(jsonObject.toString());
-            }
-
-            WebSocketServer webSocketServer = WebSocketServer.sessionMap.get("Positioning1");
-            if (webSocketServer != null) {
-                List<String> messages = webSocketServer.getMessages();
-
-                String addressList3 = "DB100.12";
-
-                if (!messages.isEmpty()) {
-                    // 灏嗘渶鍚庝竴涓秷鎭浆鎹负 short 绫诲瀷鐨勫垪琛�
-                    String lastMessage = messages.get(messages.size() - 1);
-//        System.out.println("lastMessage锛�" + lastMessage);
-                    JSONArray messageArray = new JSONArray(lastMessage);
-
-                    // 鏁村悎绗� 1 鍒� 3 涓暟缁勫苟鍘绘帀 null 鍏冪礌
-                    List<Short> mergedList = new ArrayList<>();
-                    for (int i = 0; i < 5; i++) {
-                        JSONArray sublist = messageArray.getJSONArray(i);
-                        for (int j = 0; j < sublist.size(); j++) {
-                            Object value = sublist.get(j);
-                            if (value != null && !value.toString().equals("null")) {
-                                try {
-                                    String cleanedValue = value.toString().replaceAll("[^0-9-]", "");
-                                    short sValue = Short.parseShort(cleanedValue.trim());
-                                    mergedList.add(sValue);
-                                } catch (NumberFormatException e) {
-                                    // 濡傛灉鏃犳硶瑙f瀽涓� short 绫诲瀷锛屽垯蹇界暐璇ラ儴鍒�
-                                    System.err.println("Could not parse value: " + value);
-                                }
-                            }
-                        }
-                    }
-
-
-                    // 鍐欏叆绗瑈i涓湴鍧�
-                    if (!mergedList.isEmpty()) {
-//            S7control.getinstance().WriteWord(addressList3, mergedList);
-                        System.out.println("messageValue锛�" + mergedList + " written to PLC at address " + addressList3);
-                    }
-
-                    // 娓呯┖娑堟伅鍒楄〃
-                    webSocketServer.clearMessages();
+          // 鏁村悎绗� 1 鍒� 3 涓暟缁勫苟鍘绘帀 null 鍏冪礌
+          List<Short> mergedList = new ArrayList<>();
+          for (int i = 0; i < 5; i++) {
+            JSONArray sublist = messageArray.getJSONArray(i);
+            for (int j = 0; j < sublist.size(); j++) {
+              Object value = sublist.get(j);
+              if (value != null && !value.toString().equals("null")) {
+                try {
+                  String cleanedValue = value.toString().replaceAll("[^0-9-]", "");
+                  short sValue = Short.parseShort(cleanedValue.trim());
+                  mergedList.add(sValue);
+                } catch (NumberFormatException e) {
+                  // 濡傛灉鏃犳硶瑙f瀽涓� short 绫诲瀷锛屽垯蹇界暐璇ラ儴鍒�
+                  System.err.println("Could not parse value: " + value);
                 }
-
-
+              }
             }
+          }
+
+          // 鍐欏叆绗瑈i涓湴鍧�
+          if (!mergedList.isEmpty()) {
+            // S7control.getinstance().WriteWord(addressList3, mergedList);
+            System.out.println("messageValue锛�" + mergedList + " written to PLC at address " + addressList3);
+          }
+
+          // 娓呯┖娑堟伅鍒楄〃
+          webSocketServer.clearMessages();
         }
+
+      }
     }
+  }
 }
diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/PlcServoManualone.java b/springboot-vue3/src/main/java/com/example/springboot/component/PlcServoManualone.java
index 70b6ea5..5b91621 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/component/PlcServoManualone.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/component/PlcServoManualone.java
@@ -66,28 +66,28 @@
       } catch (InterruptedException e) {
         e.printStackTrace();
       }
-//      this.readValue();
-//      String PlcAddress = this.name;
-//      Integer Plccount = this.count;
-
+      // this.readValue();
+      // String PlcAddress = this.name;
+      // Integer Plccount = this.count;
 
       List<String> addresses = new ArrayList<>();
       addresses.add("DB103.25");
       addresses.add("DB100.144");
-      addresses.add("DB100.148-161");
+
+      // addresses.add("DB100.148-161");
       addresses.add("DB100.184");
       addresses.add("DB100.186");
       addresses.add("DB100.180");
       addresses.add("DB100.182");
 
       List<Short> arraylist = S7control.getinstance().readWords(addresses);
-
+      // System.out.println(arraylist);
       List<String> addresses2 = new ArrayList<>();
       addresses2.add("DB103.26");
       addresses2.add("DB100.188");
       addresses2.add("DB100.190");
       addresses2.add("DB100.146");
-      addresses2.add("DB100.162-175");
+      // addresses2.add("DB100.162-175");
       List<Short> arraylist2 = S7control.getinstance().readWords(addresses2);
 
       List<String> addresses3 = new ArrayList<>();
@@ -108,32 +108,31 @@
       addresses7.add("DB104.28");
       addresses7.add("DB104.30");
       List<Short> arraylist7 = S7control.getinstance().readWords(addresses7);
-//      List<String> addresses8 = new ArrayList<>();
-//      addresses8.add("DB103.26");
-//      addresses8.add("DB103.26");
-//      addresses8.add("DB103.26");
-//      addresses8.add("DB103.26");
-//      List<Short> arraylist8 = S7control.getinstance().readWords(addresses8);
+      // List<String> addresses8 = new ArrayList<>();
+      // addresses8.add("DB103.26");
+      // addresses8.add("DB103.26");
+      // addresses8.add("DB103.26");
+      // addresses8.add("DB103.26");
+      // List<Short> arraylist8 = S7control.getinstance().readWords(addresses8);
 
-//      Short[] values1 = { 1, 2, 3, 4, 5, 6, 7};
-//      List<Short> arraylist = new ArrayList<>(Arrays.asList(values1));
-//      Short[] values2 = { 1, 2, 3, 4, 5};
-//      List<Short> arraylist2 = new ArrayList<>(Arrays.asList(values2));
+      // Short[] values1 = { 1, 2, 3, 4, 5, 6, 7};
+      // List<Short> arraylist = new ArrayList<>(Arrays.asList(values1));
+      // Short[] values2 = { 1, 2, 3, 4, 5};
+      // List<Short> arraylist2 = new ArrayList<>(Arrays.asList(values2));
 
-//      Short[] values3 = {1};
-//      List<Short> arraylist3 = new ArrayList<>(Arrays.asList(values3));
-//      Short[] values4 = {2};
-//      List<Short> arraylist4 = new ArrayList<>(Arrays.asList(values4));
-//      Short[] values5 = {3,3};
-//      List<Short> arraylist5 = new ArrayList<>(Arrays.asList(values5));
-//      Short[] values6 = { 4,4};
-//      List<Short> arraylist6 = new ArrayList<>(Arrays.asList(values6));
-//      Short[] values7 = { 1,1,1,1,1,1};
-//      List<Short> arraylist7 = new ArrayList<>(Arrays.asList(values7));
-//      Short[] values8 = { 1,1,1,1,1,1};
-//      List<Short> arraylist8 = new ArrayList<>(Arrays.asList(values8));
-
-
+      // Short[] values3 = {1};
+      // List<Short> arraylist3 = new ArrayList<>(Arrays.asList(values3));
+      // Short[] values4 = {2};
+      // List<Short> arraylist4 = new ArrayList<>(Arrays.asList(values4));
+      // Short[] values5 = {3,3};
+      // List<Short> arraylist5 = new ArrayList<>(Arrays.asList(values5));
+      // Short[] values6 = { 4,4};
+      // List<Short> arraylist6 = new ArrayList<>(Arrays.asList(values6));
+      // Short[] values7 = { 1,1,1,1,1,1};
+      // List<Short> arraylist7 = new ArrayList<>(Arrays.asList(values7));
+      // Short[] values8 = { 1,1,1,1,1,1};
+      // List<Short> arraylist8 = new ArrayList<>(Arrays.asList(values8));
+      // System.out.println(arraylist);
       JSONObject jsonObject = new JSONObject();
 
       jsonObject.append("zuhe1", arraylist);
@@ -143,9 +142,7 @@
       jsonObject.append("zuhe5", arraylist5);
       jsonObject.append("zuhe6", arraylist6);
       jsonObject.append("guzhang", arraylist7);
-//      jsonObject.append("weihuiling", arraylist8);
-
-
+      // jsonObject.append("weihuiling", arraylist8);
 
       WebSocketServer sendwServer = WebSocketServer.sessionMap.get("ServoManualone");
       if (sendwServer != null) {
@@ -158,7 +155,7 @@
         List<String> waddresses1 = new ArrayList<>();
         waddresses1.add("DB103.25");
         waddresses1.add("DB100.144");
-        waddresses1.add("DB100.148-161");
+        // waddresses1.add("DB100.148-161");
         waddresses1.add("DB100.184");
         waddresses1.add("DB100.186");
         waddresses1.add("DB100.180");
@@ -169,18 +166,13 @@
         waddresses2.add("DB100.188");
         waddresses2.add("DB100.190");
         waddresses2.add("DB100.146");
-        waddresses2.add("DB100.162-175");
-
-
+        // waddresses2.add("DB100.162-175");
 
         if (!messages.isEmpty()) {
           // 灏嗘渶鍚庝竴涓秷鎭浆鎹负 short 绫诲瀷鐨勫垪琛�
           String lastMessage = messages.get(messages.size() - 1);
-//        System.out.println("lastMessage锛�" + lastMessage);
+          // System.out.println("lastMessage锛�" + lastMessage);
           JSONArray messageArray = new JSONArray(lastMessage);
-
-
-
 
           // 鍐欏叆绗竴涓湴鍧�
           if (messageArray.getJSONArray(0).size() > 0) {
diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/Plcalarm.java b/springboot-vue3/src/main/java/com/example/springboot/component/Plcalarm.java
index 393174d..22a103a 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/component/Plcalarm.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/component/Plcalarm.java
@@ -87,15 +87,16 @@
       Integer Plccount = this.count;
 
       // 鏍规嵁鍦板潃璇诲彇PCL鏁版嵁
-      // List<Boolean> plclist = S7control.getinstance().ReadBits(PlcAddress,
-      // Plccount);
-      Boolean[] values = { false, false, true, false, true, false, true, false,
-          true, false, true, false, true, false,
-          true, false, true, false, true, false, true, false, true, false, true, false,
-          true, false, true, false, true,
-          false, true, false, true, false,
-          true, false, true, false };
-      List<Boolean> plclist = new ArrayList<>(Arrays.asList(values));
+      // List<Boolean> plclist = S7control.getinstance().ReadBits("DB104.0.0", 71);
+      List<Boolean> plclist = S7control.getinstance().ReadBits(PlcAddress, Plccount);
+      // System.out.println(plclist);
+      // Boolean[] values = { false, false, true, false, true, false, true, false,
+      // true, false, true, false, true, false,
+      // true, false, true, false, true, false, true, false, true, false, true, false,
+      // true, false, true, false, true,
+      // false, true, false, true, false,
+      // true, false, true, false };
+      // List<Boolean> plclist = new ArrayList<>(Arrays.asList(values));
       if (plclist != null) {
 
         JSONObject jsonObject = new JSONObject();
@@ -113,22 +114,23 @@
         }
 
         // 灏咺ntlist杞崲涓烘暟缁�
+        // System.out.println(Intlist);
         Integer[] shuzu1 = Intlist.toArray(new Integer[0]);
 
         // 瀹氫箟鐨勬姤璀﹀唴瀹规暟缁�,鑾峰彇json杩斿洖鐨勯泦鍚�
         List<String> myCollection;
         myCollection = readValue();
         String[] array1 = myCollection.toArray(new String[myCollection.size()]);
-        // System.out.println(myCollection);
 
         alarmMapper = WebSocketServer.applicationContext.getBean(AlarmMapper.class);
         for (short i = 0; i < array1.length; i++) {
           // 鏌ヨ瀵瑰簲鎶ヨ淇℃伅缁撴潫鏃堕棿涓簄ull鐨勬潯鏁�
           short result = alarmMapper.selectnullti(array1[i]);
           // 璇诲彇鍒癙LC鐨勫�间负1骞朵笖瀵瑰簲鎶ヨ淇℃伅缁撴潫鏃堕棿涓簄ull鐨勬潯鏁扮殑鏉℃暟涓�0
+          // System.out.println(result);
           if (shuzu1[i] == 1 && result == 0) {
             // 濉姞涓�鏉℃姤璀︿俊鎭�,鏈夊紑濮嬫椂闂�
-            alarmMapper.Insertalarm(array1[i]);
+            // alarmMapper.Insertalarm(array1[i]);
           } else if (shuzu1[i] == 0 && result > 0) {
             // 淇敼璇ユ潯鎶ヨ淇℃伅鐨勭粨鏉熸椂闂�
             alarmMapper.updatealarm(array1[i]);
diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java b/springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java
index a8e397e..64216cd 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java
@@ -2,11 +2,7 @@
 
 import cn.hutool.json.JSONObject;
 
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
 import java.util.List;
-import java.util.Map;
 
 import org.springframework.beans.factory.annotation.Autowired;
 
@@ -14,7 +10,6 @@
 import com.example.springboot.entity.Queue;
 import com.example.springboot.entity.StorageCage;
 import com.example.springboot.entity.alarmmg;
-import com.example.springboot.entity.north_glass_buffer1;
 import com.example.springboot.mapper.HomeMapper;
 import com.example.springboot.mapper.SpianMapper;
 import com.example.springboot.service.JdbcConnections;
@@ -29,7 +24,7 @@
     private JdbcConnections jdbcConnections;
 
 
-    // public static int a=1;
+    public static Boolean isAllowQueue=true;
     // public static Map b=new HashMap<>();
     // b.put()
     @Override
@@ -105,6 +100,9 @@
                 out_slice.setstorageCage(homeMapper.SelectStorageGlassById(out_slice.getGlassId()));
             }
             jsonObject.append("listoutslice", listoutslice);
+            //鑾峰彇褰撳墠鍑虹墖闃熷垪鐘舵��
+            jsonObject.append("isAllowQueue", isAllowQueue);
+            
 
             dbserve = WebSocketServer.applicationContext.getBean(JdbcConnections.class);
             boolean dbconnected = false;
diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/Plcsign.java b/springboot-vue3/src/main/java/com/example/springboot/component/Plcsign.java
index 0e503c4..ee52f66 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/component/Plcsign.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/component/Plcsign.java
@@ -70,19 +70,19 @@
       Integer Plccount = this.count;
       // System.out.println(PlcAddress);
 
-      // List<Boolean> plclist = S7control.getinstance().ReadBits("DB102.0.0", 44);
+      List<Boolean> plclist = S7control.getinstance().ReadBits(PlcAddress, Plccount);
       // List<Boolean> plclist2 = S7control.getinstance().ReadBits("DB102.5.5", 13);
 
-      Boolean[] values = { true, true, true, true, true, false, true, false,
-          true, false, true, false, true, false,
-          true, false, true, false, true, false, true, false, true, false, true, false,
-          true, false, true, false, true,
-          false, true, false, true, false,
-          true, false, true, false, true, false, true, false, null,
-          true, false,
-          true, false, true, false, true, false,
-          true, false, true, false, true, };
-      List<Boolean> plclist = new ArrayList<>(Arrays.asList(values));
+      // Boolean[] values = { true, true, true, true, true, false, true, false,
+      // true, false, true, false, true, false,
+      // true, false, true, false, true, false, true, false, true, false, true, false,
+      // true, false, true, false, true,
+      // false, true, false, true, false,
+      // true, false, true, false, true, false, true, false, null,
+      // true, false,
+      // true, false, true, false, true, false,
+      // true, false, true, false, true, };
+      // List<Boolean> plclist = new ArrayList<>(Arrays.asList(values));
 
       if (plclist != null) {
         // 灏嗚幏鍙栫殑甯冨皵绫诲瀷杞崲涓烘暣鏁扮被鍨�
diff --git a/springboot-vue3/src/main/java/com/example/springboot/config/AppRunnerConfig.java b/springboot-vue3/src/main/java/com/example/springboot/config/AppRunnerConfig.java
index 22ec077..f55ea2f 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/config/AppRunnerConfig.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/config/AppRunnerConfig.java
@@ -7,7 +7,10 @@
 import org.springframework.stereotype.Component;
 
 import com.example.springboot.component.PLCAutomaticParameterSetting;
+import com.example.springboot.component.PLCManualJog;
 import com.example.springboot.component.PlcHold;
+import com.example.springboot.component.PlcManualonePosition;
+import com.example.springboot.component.PlcManualonePosition2;
 import com.example.springboot.component.PlcParameter;
 import com.example.springboot.component.Plcaction;
 import com.example.springboot.component.Plchome;
@@ -18,7 +21,7 @@
 import com.example.springboot.component.PlcPositioning2;
 import com.example.springboot.component.PlcParameter2;
 import com.example.springboot.component.PlcParameter1;
-//import com.example.springboot.component.PlcServoManualone;
+import com.example.springboot.component.PlcServoManualone;
 
 @Component
 @Order(1)
@@ -33,15 +36,15 @@
 
      new PlcHold().start();
 
-    // new Plcaction().start();
+    new Plcaction().start();
     //
     new Plchome().start();
     //
-    // new PlcParameter().start();
+    new PlcParameter().start();
     //
     // new Plcalarm().start();
     //
-    // new Plcsign().start();
+    new Plcsign().start();
     //
     // new Plcstate().start();
     // new PlcPositioning1().start();
@@ -50,5 +53,8 @@
     // new PlcParameter1().start();
     // new PLCAutomaticParameterSetting().start();
     // new PlcServoManualone().start();
+    // new PLCManualJog().start();
+    // new PlcManualonePosition().start();
+    new PlcManualonePosition2().start();
   }
 }
\ No newline at end of file
diff --git a/springboot-vue3/src/main/java/com/example/springboot/controller/HomeController.java b/springboot-vue3/src/main/java/com/example/springboot/controller/HomeController.java
index b55acfa..7de779e 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/controller/HomeController.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/controller/HomeController.java
@@ -13,6 +13,7 @@
 import com.example.springboot.service.JdbcConnections;
 import com.example.springboot.service.SpianService;
 import com.example.springboot.common.Result;
+import com.example.springboot.component.Plchome;
 import com.example.springboot.component.S7control;
 import com.example.springboot.entity.CarPosition;
 import com.example.springboot.entity.StorageCage;
@@ -151,21 +152,17 @@
 
   // 鏍规嵁鐜荤拑id鎵嬪姩鍑虹墖
   @GetMapping("/OutByGlassID")
-  public Result OutByGlassID(String glassid) {
+  public Result OutByGlassID(String glassid) throws SQLException {
     Map<String, Object> map = new HashMap<>();
-    // 璋冪敤浼嶄笂鐗囧嚱鏁�
-    short result = homeMapper.SelectStorageByGlassId(glassid);
-    if (result > 0) {
-      Short results = spianService.selectout2(glassid);
-      if (results == 200) {
-        map.put("message2", "200");
-      } else if (results == 300) {
-        map.put("message2", "300");
-      }
+    Out_slice result = homeMapper.SelectQueueByglassid(glassid);
+    if(result==null) {
+      north_glass_buffer1 north_glass_buffer1=jdbcConnections.SelectGlassByGlassIdOrderIdFrameId(glassid, "", "");
+      String flip=jdbcConnections.SelectFlipByFrameBarcode(north_glass_buffer1.getFrameBarcode());
+      homeMapper.AddOutSliceS(glassid, flip, north_glass_buffer1.getFrameBarcode(), north_glass_buffer1.getglasslengthmm().toString(), north_glass_buffer1.getglassheightmm().toString());
+      map.put("message2", "200");
     } else {
       map.put("message2", "500");
     }
-
     return Result.success(map);
   }
 
@@ -277,10 +274,8 @@
   // 鏍规嵁閾濇id鑾峰彇瀵瑰簲鐜荤拑淇℃伅
   @PostMapping("/SelectAluminumFrameInfoById")
   public Result SelectAluminumFrameInfoById(String FrameBarcode) throws SQLException {
-
-    // List<north_glass_buffer1> listAluminumFrame = homeMapper.SelectAluminumFrameInfoById(FrameBarcode);
     List<north_glass_buffer1> listAluminumFrame = jdbcConnections.SelectGlassByGlassIdOrderIdFrameIds("","",FrameBarcode);
-    String flip=homeMapper.SelectFlipByFrameBarcode(FrameBarcode);
+    String flip=jdbcConnections.SelectFlipByFrameBarcode(FrameBarcode);
     for (north_glass_buffer1 north_glass_buffer1 : listAluminumFrame) {
       north_glass_buffer1.setstorageCage(homeMapper.SelectStorageGlassById(north_glass_buffer1.getbarcode()));
       north_glass_buffer1.setOut_slice(homeMapper.SelectQueueByglassid(north_glass_buffer1.getbarcode()));
@@ -291,8 +286,6 @@
     return Result.success(map);
   }
   
-  
-
   // 鏌ヨ鍑虹墖闃熷垪鏁版嵁
   @PostMapping("/SelectProductionqueue")
   public Result SelectProductionqueue() throws SQLException {
@@ -303,7 +296,9 @@
     }
     Map<String, Object> maps = new HashMap<>();
     maps.put("listoutslice", listoutslice);
+    // Plchome.isAllowQueue=false;
     return Result.success(maps);
+    
   }
 
   // 鏍规嵁鐜荤拑id鍒犻櫎鍑虹墖闃熷垪鐜荤拑
@@ -315,7 +310,7 @@
     return Result.success(map);
   }
 
-  // 
+  //娣诲姞鍑虹墖
   @PostMapping("/AddOutSliceS")
   public Result AddOutSliceS(@RequestBody String[][] AluminumFrames ) {
     for (String[] item : AluminumFrames) {
@@ -323,7 +318,15 @@
         homeMapper.AddOutSliceS(item[0],item[2],item[3],item[4],item[5]);
       }
     }
-    System.out.println(AluminumFrames);
+    Map<String, Object> map = new HashMap<>();
+    map.put("message", "200");
+    return Result.success(map);
+  }
+
+  //淇敼鍑虹墖闃熷垪鐘舵��
+  @PostMapping("/isAllowQueues")
+  public Result isAllowQueues(Boolean isAllowQueue) {
+    Plchome.isAllowQueue=isAllowQueue;
     Map<String, Object> map = new HashMap<>();
     map.put("message", "200");
     return Result.success(map);
diff --git a/springboot-vue3/src/main/java/com/example/springboot/entity/Out_slice.java b/springboot-vue3/src/main/java/com/example/springboot/entity/Out_slice.java
deleted file mode 100644
index 6b13c63..0000000
--- a/springboot-vue3/src/main/java/com/example/springboot/entity/Out_slice.java
+++ /dev/null
@@ -1,101 +0,0 @@
-package com.example.springboot.entity;
-
-public class Out_slice {
-    private int id;
-    private String glassId;
-    private String barcode;
-    private double glasswidth;
-    private double glassheight;
-    private int state;
-    private String time;
-
-    private north_glass_buffer1 north_glass_buffer1s;
-
-    public void setnorth_glass_buffer1s(north_glass_buffer1 north_glass_buffer1s) {
-        this.north_glass_buffer1s = north_glass_buffer1s;
-    }
-    
-    public north_glass_buffer1 getnorth_glass_buffer1s() {
-        return north_glass_buffer1s;
-    }
-
-    private StorageCage storageCage;
-
-    public void setstorageCage(StorageCage storageCage) {
-        this.storageCage = storageCage;
-    }
-    
-    public StorageCage getstorageCage() {
-        return storageCage;
-    }
-
-    public Out_slice() {
-    }
-
-    public Out_slice(int ID, String glassId, String barCode, double glasswidth, double glassheight, int state, String time) {
-        this.id = ID;
-        this.glassId = glassId;
-        this.barcode = barCode;
-        this.glasswidth = glasswidth;
-        this.glassheight = glassheight;
-        this.state = state;
-        this.time = time;
-    }
-
-    public int getID() {
-        return id;
-    }
-
-    public String getGlassId() {
-        return glassId;
-    }
-
-    public String getBarCode() {
-        return barcode;
-    }
-
-    public double getGlasswidth() {
-        return glasswidth;
-    }
-
-    public double getGlassheight() {
-        return glassheight;
-    }
-
-    public int getState() {
-        return state;
-    }
-
-    public String getTime() {
-        return time;
-    }
-
-    public void setID(int ID) {
-        this.id = ID;
-    }
-
-    public void setGlassId(String glassId) {
-        this.glassId = glassId;
-    }
-
-    public void setBarCode(String barCode) {
-        barcode = barCode;
-    }
-
-    public void setGlasswidth(double glasswidth) {
-        this.glasswidth = glasswidth;
-    }
-
-    public void setGlassheight(double glassheight) {
-        this.glassheight = glassheight;
-    }
-
-    public void setState(int state) {
-        this.state = state;
-    }
-
-    public void setTime(String time) {
-        this.time = time;
-    }
-    
-}
diff --git a/springboot-vue3/src/main/java/com/example/springboot/mapper/HomeMapper.java b/springboot-vue3/src/main/java/com/example/springboot/mapper/HomeMapper.java
index beb2a5e..8e7b10a 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/mapper/HomeMapper.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/mapper/HomeMapper.java
@@ -150,20 +150,14 @@
   @Select("select * from north_glass_buffer1 where FrameBarcode=#{FrameBarcode}")
   List<north_glass_buffer1> SelectAluminumFrameInfoById(String FrameBarcode);
 
-  //鏌ヨ鏍规嵁id鏌ヨ
-  @Select("select b.* from storage_cage a inner join out_slice b on a.glass_id=b.glassId where b.glassId=#{glassId}")
-  List<Out_slice> SelectOutSliceById(String glassId);
-
-  //鏌ヨ鐜荤拑id鏄惁
-  @Select("select Flip from north_glass_buffer1_frames where Barcode=#{frameBarcode} limit 1")
-  String SelectFlipByFrameBarcode(String frameBarcode);
 
   //鏌ヨ鐜荤拑鏄惁宸插瓨鍦ㄤ簬鍑虹墖闃熷垪
   @Select("select * from out_slice where glassid=#{getbarcode} and (state=0 or state=1)")
   Out_slice SelectQueueByglassid(String getbarcode);
 
-  //鏌ヨ鐜荤拑鏄惁宸插瓨鍦ㄤ簬鍑虹墖闃熷垪
+  //娣诲姞鍑虹墖闃熷垪
   @Select("INSERT INTO out_slice( `glassId`, `barcode`, `glasswidth`, `glassheight`, `state`, `flip`) VALUES ( #{glassid}, #{FrameNo}, #{glasslengthMm}, #{glassheightMm}, 0, #{flip});")
   void AddOutSliceS(String glassid, String flip, String FrameNo, String glasslengthMm, String glassheightMm);
 
+
 }
diff --git a/springboot-vue3/src/main/java/com/example/springboot/service/JdbcConnections.java b/springboot-vue3/src/main/java/com/example/springboot/service/JdbcConnections.java
index 204a419..ebd7eeb 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/service/JdbcConnections.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/service/JdbcConnections.java
@@ -135,6 +135,23 @@
 		//  conn.close();
          return glass;
     }
+
+	
+	public String SelectFlipByFrameBarcode(String frameBarcode) throws SQLException {
+		conn = getConn();
+        // north_glass_buffer1 glass=new north_glass_buffer1();
+		String flip="";
+        String sql1 = "select * from north_glass_buffer1_frames where Barcode=? limit 1";
+         ps = conn.prepareStatement(sql1);
+		 ps.setString(1, frameBarcode);
+         rs= ps.executeQuery();
+         while (rs.next()) {
+			flip=rs.getString("Flip");
+			
+         }
+		//  conn.close();
+         return flip;
+	}
 	
 	/**
 	 * 1. 鍔犺浇椹卞姩
@@ -168,4 +185,5 @@
 	}
 
 
+
 }

--
Gitblit v1.8.0