You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
client.change_ascii_input_delimiter Diagnostic sub command, Change message delimiter for future requests.
101
-
client.clear_counters Diagnostic sub command, Clear all counters and diag registers.
102
-
client.clear_overrun_count Diagnostic sub command, Clear over run counter.
103
-
client.close Closes the underlying socket connection
104
-
client.connect Connect to the modbus tcp server
105
-
client.debug_enabled Returns a boolean indicating if debug is enabled.
106
-
client.force_listen_only_mode Diagnostic sub command, Forces the addressed remote device to its Listen Only Mode.
107
-
client.get_clear_modbus_plus Diagnostic sub command, Get or clear stats of remote modbus plus device.
108
-
client.get_com_event_counter Read status word and an event count from the remote device's communication event counter.
109
-
client.get_com_event_log Read status word, event count, message count, and a field of event bytes from the remote device.
110
-
client.host Read Only!
111
-
client.idle_time Bus Idle Time to initiate next transaction
112
-
client.is_socket_open Check whether the underlying socket/serial is open or not.
113
-
client.last_frame_end Read Only!
114
-
client.mask_write_register Mask content of holding register at `address` with `and_mask` and `or_mask`.
115
-
client.port Read Only!
116
-
client.read_coils Reads `count` coils from a given slave starting at `address`.
117
-
client.read_device_information Read the identification and additional information of remote slave.
118
-
client.read_discrete_inputs Reads `count` number of discrete inputs starting at offset `address`.
119
-
client.read_exception_status Read the contents of eight Exception Status outputs in a remote device.
120
-
client.read_holding_registers Read `count` number of holding registers starting at `address`.
121
-
client.read_input_registers Read `count` number of input registers starting at `address`.
122
-
client.readwrite_registers Read `read_count` number of holding registers starting at `read_address` and write `write_registers` starting at `write_address`.
123
-
client.report_slave_id Report information about remote slave ID.
124
-
client.restart_comm_option Diagnostic sub command, initialize and restart remote devices serial interface and clear all of its communications event counters .
125
-
client.return_bus_com_error_count Diagnostic sub command, Return count of CRC errors received by remote slave.
126
-
client.return_bus_exception_error_count Diagnostic sub command, Return count of Modbus exceptions returned by remote slave.
127
-
client.return_bus_message_count Diagnostic sub command, Return count of message detected on bus by remote slave.
128
-
client.return_diagnostic_register Diagnostic sub command, Read 16-bit diagnostic register.
129
-
client.return_iop_overrun_count Diagnostic sub command, Return count of iop overrun errors by remote slave.
130
-
client.return_query_data Diagnostic sub command , Loop back data sent in response.
131
-
client.return_slave_bus_char_overrun_count Diagnostic sub command, Return count of messages not handled by remote slave due to character overrun condition.
132
-
client.return_slave_busy_count Diagnostic sub command, Return count of server busy exceptions sent by remote slave.
133
-
client.return_slave_message_count Diagnostic sub command, Return count of messages addressed to remote slave.
134
-
client.return_slave_no_ack_count Diagnostic sub command, Return count of NO ACK exceptions sent by remote slave.
135
-
client.return_slave_no_response_count Diagnostic sub command, Return count of No responses by remote slave.
136
-
client.silent_interval Read Only!
137
-
client.state Read Only!
138
-
client.timeout Read Only!
139
-
client.write_coil Write `value` to coil at `address`.
140
-
client.write_coils Write `value` to coil at `address`.
141
-
client.write_register Write `value` to register at `address`.
142
-
client.write_registers Write list of `values` to registers starting at `address`.
143
-
144
-
SERIAL
145
-
146
-
::
147
-
148
-
$ pymodbus.console serial --port /dev/ttyUSB0 --baudrate 19200 --timeout 2
149
-
> help
150
-
Available commands:
151
-
client.baudrate Read Only!
152
-
client.bytesize Read Only!
153
-
client.change_ascii_input_delimiter Diagnostic sub command, Change message delimiter for future requests.
154
-
client.clear_counters Diagnostic sub command, Clear all counters and diag registers.
155
-
client.clear_overrun_count Diagnostic sub command, Clear over run counter.
156
-
client.close Closes the underlying socket connection
157
-
client.connect Connect to the modbus serial server
158
-
client.debug_enabled Returns a boolean indicating if debug is enabled.
159
-
client.force_listen_only_mode Diagnostic sub command, Forces the addressed remote device to its Listen Only Mode.
160
-
client.get_baudrate Serial Port baudrate.
161
-
client.get_bytesize Number of data bits.
162
-
client.get_clear_modbus_plus Diagnostic sub command, Get or clear stats of remote modbus plus device.
163
-
client.get_com_event_counter Read status word and an event count from the remote device's communication event counter.
164
-
client.get_com_event_log Read status word, event count, message count, and a field of event bytes from the remote device.
165
-
client.get_parity Enable Parity Checking.
166
-
client.get_port Serial Port.
167
-
client.get_serial_settings Gets Current Serial port settings.
168
-
client.get_stopbits Number of stop bits.
169
-
client.get_timeout Serial Port Read timeout.
170
-
client.idle_time Bus Idle Time to initiate next transaction
171
-
client.inter_byte_timeout Read Only!
172
-
client.is_socket_open c l i e n t . i s s o c k e t o p e n
173
-
client.mask_write_register Mask content of holding register at `address` with `and_mask` and `or_mask`.
174
-
client.method Read Only!
175
-
client.parity Read Only!
176
-
client.port Read Only!
177
-
client.read_coils Reads `count` coils from a given slave starting at `address`.
178
-
client.read_device_information Read the identification and additional information of remote slave.
179
-
client.read_discrete_inputs Reads `count` number of discrete inputs starting at offset `address`.
180
-
client.read_exception_status Read the contents of eight Exception Status outputs in a remote device.
181
-
client.read_holding_registers Read `count` number of holding registers starting at `address`.
182
-
client.read_input_registers Read `count` number of input registers starting at `address`.
183
-
client.readwrite_registers Read `read_count` number of holding registers starting at `read_address` and write `write_registers` starting at `write_address`.
184
-
client.report_slave_id Report information about remote slave ID.
185
-
client.restart_comm_option Diagnostic sub command, initialize and restart remote devices serial interface and clear all of its communications event counters .
186
-
client.return_bus_com_error_count Diagnostic sub command, Return count of CRC errors received by remote slave.
187
-
client.return_bus_exception_error_count Diagnostic sub command, Return count of Modbus exceptions returned by remote slave.
188
-
client.return_bus_message_count Diagnostic sub command, Return count of message detected on bus by remote slave.
189
-
client.return_diagnostic_register Diagnostic sub command, Read 16-bit diagnostic register.
190
-
client.return_iop_overrun_count Diagnostic sub command, Return count of iop overrun errors by remote slave.
191
-
client.return_query_data Diagnostic sub command , Loop back data sent in response.
192
-
client.return_slave_bus_char_overrun_count Diagnostic sub command, Return count of messages not handled by remote slave due to character overrun condition.
193
-
client.return_slave_busy_count Diagnostic sub command, Return count of server busy exceptions sent by remote slave.
194
-
client.return_slave_message_count Diagnostic sub command, Return count of messages addressed to remote slave.
195
-
client.return_slave_no_ack_count Diagnostic sub command, Return count of NO ACK exceptions sent by remote slave.
196
-
client.return_slave_no_response_count Diagnostic sub command, Return count of No responses by remote slave.
197
-
client.set_baudrate Baudrate setter.
198
-
client.set_bytesize Byte size setter.
199
-
client.set_parity Parity Setter.
200
-
client.set_port Serial Port setter.
201
-
client.set_stopbits Stop bit setter.
202
-
client.set_timeout Read timeout setter.
203
-
client.silent_interval Read Only!
204
-
client.state Read Only!
205
-
client.stopbits Read Only!
206
-
client.timeout Read Only!
207
-
client.write_coil Write `value` to coil at `address`.
208
-
client.write_coils Write `value` to coil at `address`.
209
-
client.write_register Write `value` to register at `address`.
210
-
client.write_registers Write list of `values` to registers starting at `address`.
211
-
result.decode Decode the register response to known formatters.
212
-
result.raw Return raw result dict.
213
-
214
-
Every command has auto suggestion on the arguments supported, arg and
Pymodbus also comes with a REPL server to quickly run an asynchronous server with additional capabilities out of the box like simulating errors, delay, mangled messages etc.
319
-
320
-
For more info on REPL Server refer `pymodbus repl server <https://github.com/pymodbus-dev/repl/blob/main/pymodbus/repl/server/README.rst>`__
0 commit comments