|
26 | 26 | .\" |
27 | 27 | .\" |
28 | 28 | .\" |
29 | | -.TH mb2hal "1" "January 1, 2016" "Modbus to HAL" "LinuxCNC Documentation" |
| 29 | +.TH mb2hal "1" "November 20, 2021" "Modbus to HAL" "LinuxCNC Documentation" |
30 | 30 | .SH NAME |
31 | 31 | \fBmb2hal\fR - HAL userspace component for Modbus |
32 | 32 | .SH SYNOPSIS |
33 | | -.B mb2hal |
34 | | -.RI [OPTIONS] |
| 33 | +.TP |
| 34 | +Default component name: |
| 35 | +loadusr -W mb2hal config=config_file.ini |
| 36 | +.TP |
| 37 | +Custom component name: |
| 38 | +loadusr -Wn mymodule mb2hal config=config_file.ini |
| 39 | + |
| 40 | + |
35 | 41 | .br |
36 | 42 | .SH DESCRIPTION |
37 | 43 | MB2HAL is a generic userspace HAL component to communicate with one or more |
38 | | -Modbus devices. |
| 44 | +Modbus devices. It supoorts Modbus RTU and Modbus TCP. |
| 45 | + |
39 | 46 | .PP |
40 | | -See the Documents for more information on mb2hal |
| 47 | +See |
| 48 | +.UR http://linuxcnc.org/docs/html/drivers/mb2hal.html |
| 49 | +.UE |
| 50 | +for more information. |
| 51 | + |
| 52 | +.SH PINS |
| 53 | + |
| 54 | +.SS fnct_02_read_discrete_inputs: |
| 55 | +.TP |
| 56 | +.B mb2hal.m.n\fR bit out |
| 57 | +.SS fnct_03_read_holding_registers: |
| 58 | +.SS fnct_04_read_input_registers: |
| 59 | +.TP |
| 60 | +.B mb2hal.m.n.float\fR float out |
| 61 | +.TQ |
| 62 | +.B mb2hal.m.n.int\fR s32 out |
| 63 | +.SS fnct_06_write_single_register: |
| 64 | +.TP |
| 65 | +.B mb2hal.m.n\fR float in |
| 66 | +NELEMENTS needs to be 1 or PIN_NAMES must contain just one name. |
| 67 | +.SS fnct_15_write_multiple_coils: |
| 68 | +.TP |
| 69 | +.B mb2hal.m.n\fR bit in |
| 70 | +.SS fnct_16_write_multiple_registers: |
| 71 | +.TP |
| 72 | +.B mb2hal.m.n\fR float in |
| 73 | +.RE |
| 74 | + |
| 75 | +.SS Each transaction |
| 76 | +.TQ |
| 77 | +.B mb2hal.m.num_errors\fR u32 in |
| 78 | +Error counter |
| 79 | +.RE |
| 80 | + |
| 81 | +.br |
| 82 | +m = HAL_TX_NAME or transaction number if not set, n = element number (NELEMENTS) |
| 83 | +.br |
| 84 | +Example: |
| 85 | +.br |
| 86 | +mb2hal.00.01.<type> (transaction=00, second register=01 (00 is the first one)) |
| 87 | +.br |
| 88 | +mb2hal.TxName.01.<type> (HAL_TX_NAME=TxName, second register=01 (00 is the first one)) |
| 89 | + |
41 | 90 | .SH AUTHOR |
42 | 91 | Victor Rocco |
43 | 92 | .SH LICENSE |
|
0 commit comments