To simplify communication with Triton, the Triton project provides several client libraries and examples of how to use those libraries. Ask questions or report problems in the main Triton issues page.
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.