update
This commit is contained in:
1 parent
59320571a7
commit
c69358c317
1 file changed
+5
-1
+5
-1
@@ -35,7 +35,7 @@ STATION_SIZE = 24
|
||||
|
||||
def parse_args():
|
||||
p = argparse.ArgumentParser(description='PLC 读写测试工具')
|
||||
p.add_argument('--ip', default='192.168.2.125', help='PLC IP')
|
||||
p.add_argument('--ip', default='192.168.200.10', help='PLC IP')
|
||||
p.add_argument('--rack', type=int, default=0, help='机架号')
|
||||
p.add_argument('--slot', type=int, default=2, help='槽号')
|
||||
p.add_argument('--db', type=int, default=1, help='DB 块号')
|
||||
@@ -155,3 +155,7 @@ def main():
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
|
||||
# python test_snap7.py --station 0 --product-id 10087 --upper 100.0 --lower 80.0 --measured 95.5 --dataready --qualified
|
||||
# python test_snap7.py --station 1 --product-id 10087 --prev-req
|
||||
Reference in new issue
Block a user