From 175cd0a66501806e17379b61b416aeb9c656a270 Mon Sep 17 00:00:00 2001 From: fengzero Date: Thu, 4 Aug 2022 08:13:03 +0000 Subject: [PATCH] modbus(schema): add tag address regular --- plugins/modbus/modbus-tcp.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/plugins/modbus/modbus-tcp.json b/plugins/modbus/modbus-tcp.json index 348afc77..1076ebbd 100644 --- a/plugins/modbus/modbus-tcp.json +++ b/plugins/modbus/modbus-tcp.json @@ -7,6 +7,32 @@ 9, 11 ], + "tag_regex": [ + { + "type": 3, + "regex": "[1-9]+![3-4][0]*[0-9]*([1-9]#B|[1-9]#L|[1-9])$" + }, + { + "type": 4, + "regex": "[1-9]+![3-4][0]*[0-9]*([1-9]#B|[1-9]#L|[1-9])$" + }, + { + "type": 5, + "regex": "[1-9]+![3-4][0]*[0-9]*([1-9]#BB|[1-9]#BL|[1-9]#LL|[1-9]#LB|[1-9])$" + }, + { + "type": 6, + "regex": "[1-9]+![3-4][0]*[0-9]*([1-9]#BB|[1-9]#BL|[1-9]#LL|[1-9]#LB|[1-9])$" + }, + { + "type": 9, + "regex": "[1-9]+![3-4][0]*[0-9]*([1-9]#BB|[1-9]#BL|[1-9]#LL|[1-9]#LB|[1-9])$" + }, + { + "type": 11, + "regex": "[1-9]+!([0-1][0]*[0-9]*[1-9]|[3-4][0]*[0-9]*[1-9].([0-9]|[0-1][0-5])$)" + } + ], "host": { "name": "host", "description": "local ip in server mode, remote device ip in client mode",