Рефактор

This commit is contained in:
sasha80
2024-10-15 08:49:41 +03:00
parent cfd1454921
commit e2f0bb4a88
2 changed files with 4 additions and 3 deletions

View File

@@ -34,6 +34,7 @@ def on_timer(*args):
sock.sendto(bytes(tx_data, 'utf-8'), (udp_addr, udp_port_tx))
Timer(1, on_timer, args).start()
def main():
parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('--modbus-unit', default=1, type=int, help='Номер устройства Modbus')

View File

@@ -49,7 +49,7 @@ rname = "A22"
layout_mode = 0
offset_left = 8.0
offset_top = 862.0
offset_right = 175.0
offset_right = 168.0
offset_bottom = 907.0
fname = "ДОУ-6"
rname = "A7"
@@ -58,7 +58,7 @@ rname = "A7"
layout_mode = 0
offset_left = 8.0
offset_top = 907.0
offset_right = 175.0
offset_right = 168.0
offset_bottom = 949.0
fname = "MAA2000"
rname = "A23"
@@ -67,7 +67,7 @@ rname = "A23"
layout_mode = 0
offset_left = 8.0
offset_top = 812.0
offset_right = 175.0
offset_right = 168.0
offset_bottom = 860.0
fname = "ДОУ-7"
rname = "A8"