Lines Matching +full:read +full:- +full:command
1 .. zephyr:code-sample:: modbus-tcp-server
3 :relevant-api: modbus bsd_sockets
16 This sample has been tested with FRDM-K64F board,
34 .. zephyr-app-commands::
35 :zephyr-app: samples/subsys/modbus/tcp_server
40 On the client side, PC or laptop, the following command connects PyModbus
43 .. code-block:: console
45 # pymodbus.console tcp --host 192.0.2.1 --port 502
48 For example, to set LED0 on use FC01 command (write_coil).
50 .. code-block:: console
57 .. code-block:: console
64 To set LED0 off but LED1 and LED2 on use FC15 command (write_coils).
66 .. code-block:: console
70 To read LED0, LED1, LED2 state FC05 command (read_coils) can be used.
72 .. code-block:: console
88 It is also possible to write and read the holding registers.
92 To write single holding registers use FC06 command (write_register),
94 .. code-block:: console
98 or FC16 command (write_registers).
100 .. code-block:: console
104 To read holding registers use FC03 command (read_holding_registers).
106 .. code-block:: console
117 .. _`PyModbus`: https://github.com/pymodbus-dev/pymodbus