Merge remote-tracking branch 'origin/master'

This commit is contained in:
gg 2025-01-24 09:35:34 +01:00
commit 10c9284d00
3 changed files with 4 additions and 3 deletions

View File

@ -90,7 +90,7 @@ enabled: false
[pipe_cutter]
method: rtu
port: /dev/ttyUSB0
port: COM4
baudrate: 38400
stopbits: stopbits_one
parity: parity_none

View File

@ -51,7 +51,7 @@ def main():
# Modbus client configuration
client = ModbusClient(
method="rtu",
port="/dev/ttyUSB0", # Ensure the correct port for your setup
port="COM4", # Ensure the correct port for your setup
stopbits=serial.STOPBITS_ONE,
bytesize=serial.EIGHTBITS,
parity=serial.PARITY_NONE,

View File

@ -12,7 +12,7 @@ class Test_Pipe_Cutter(Test_Test):
A class to manage and operate a pipe cutter machine in a test environment.
"""
def __init__(self, config, components, recipe=None, run_once=False,reset_on_start=False, enable_override=False, bench_name="generic", step=None,):
def __init__(self, config, components, recipe=None, run_once=False,reset_on_start=True, enable_override=False, bench_name="generic", step=None,):
super().__init__(components=components, recipe=recipe, step=step, run_once=run_once,reset_on_start=reset_on_start, enable_override=enable_override,)
self.end_cut = None
self.config = config
@ -81,6 +81,7 @@ class Test_Pipe_Cutter(Test_Test):
def stop(self):
self.components["pipe_cutter"].pause()
self.disconnect(self.get_connection)
super().stop()