Use it by first creating a modbus_tcp_client module instance, configuring its connection settings, and then attaching modbus.read_input_registers tasks to that instance. Previously, the write task ...
voltage_l1 = self.base_voltage * math.sin(2 * math.pi * phase_time) voltage_l2 = self.base_voltage * math.sin(2 * math.pi * phase_time - self.phase_shift_120) voltage ...