This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
uphp:functions:mb_send_command [2017/05/08 14:33] jeff |
uphp:functions:mb_send_command [2018/02/20 06:24] admin |
||
---|---|---|---|
Line 3: | Line 3: | ||
< | < | ||
- | Send a sequence of characters to the rs485 bus and get a reply | + | Send a sequence of characters to the RS-485 [or TCP Channel] |
====Description==== | ====Description==== | ||
- | <well size=" | + | <well size=" |
- | < | + | |
<span style=" | <span style=" | ||
<span style=" | <span style=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
<span style=" | <span style=" | ||
<span style=" | <span style=" | ||
Line 17: | Line 20: | ||
<span style=" | <span style=" | ||
<span style=" | <span style=" | ||
- | </ | + | </ |
- | </ | + | |
====Parameters==== | ====Parameters==== | ||
- | < | + | < |
+ | < | ||
- | ====Return | + | The $bus parameter can be one of the following values: |
+ | |||
+ | 0 - Modbus RTU | ||
+ | |||
+ | 2-10 - Modbus TCP Channel 1-9 | ||
+ | |||
+ | ====Return | ||
< | < |