Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
10c9284d00
|
|
@ -90,7 +90,7 @@ enabled: false
|
||||||
|
|
||||||
[pipe_cutter]
|
[pipe_cutter]
|
||||||
method: rtu
|
method: rtu
|
||||||
port: /dev/ttyUSB0
|
port: COM4
|
||||||
baudrate: 38400
|
baudrate: 38400
|
||||||
stopbits: stopbits_one
|
stopbits: stopbits_one
|
||||||
parity: parity_none
|
parity: parity_none
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ def main():
|
||||||
# Modbus client configuration
|
# Modbus client configuration
|
||||||
client = ModbusClient(
|
client = ModbusClient(
|
||||||
method="rtu",
|
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,
|
stopbits=serial.STOPBITS_ONE,
|
||||||
bytesize=serial.EIGHTBITS,
|
bytesize=serial.EIGHTBITS,
|
||||||
parity=serial.PARITY_NONE,
|
parity=serial.PARITY_NONE,
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ class Test_Pipe_Cutter(Test_Test):
|
||||||
A class to manage and operate a pipe cutter machine in a test environment.
|
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,)
|
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.end_cut = None
|
||||||
self.config = config
|
self.config = config
|
||||||
|
|
@ -81,6 +81,7 @@ class Test_Pipe_Cutter(Test_Test):
|
||||||
def stop(self):
|
def stop(self):
|
||||||
self.components["pipe_cutter"].pause()
|
self.components["pipe_cutter"].pause()
|
||||||
self.disconnect(self.get_connection)
|
self.disconnect(self.get_connection)
|
||||||
|
super().stop()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user