Skip to content

Commit 945b1fd

Browse files
Improved hostmot2(9) language and made its formatting more consistent
Converted bogus contraction to genitive and expand contractions to make text easier to read. Use double quotes consistently instead of a mix of single and double quotes. Picked double over single quotes as it had most existing use. Also adjusted the roff formatting to quiet down po4a.
1 parent bf6a8b2 commit 945b1fd

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

docs/man/man9/hostmot2.9

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Each I/O pin can be configured, at board-driver load time, to serve
5555
one of two purposes: either as a particular I/O pin of a particular
5656
Module instance (encoder, pwmgen, stepgen etc), or as a general purpose
5757
digital I/O pin. By default all Module instances are enabled, and all the
58-
board's pins are used by the Module instances.
58+
boards pins are used by the Module instances.
5959

6060
The user can disable Module instances at board-driver load time, by
6161
specifying a hostmot2 config string modparam. Any pins which belong to
@@ -72,7 +72,7 @@ I/O section below.
7272

7373
All the board-driver modules (hm2_pci, hm2_eth etc) accept a load-time
7474
modparam of type string array, named "config". This array has one config
75-
string for each board the driver should use. Each board's config string
75+
string for each board the driver should use. Each boards config string
7676
is passed to and parsed by the hostmot2 driver when the board-driver
7777
registers the board.
7878

@@ -86,8 +86,8 @@ For example, if your control computer has one 5i20 and one 5i23 you
8686
might load the hm2_pci driver with a HAL command (in halcmd) something
8787
like this:
8888

89-
.B
9089
.nf
90+
.B
9191
loadrt hm2_pci config="firmware=hm2/5i20/SVST8_4.BIT num_encoders=3 num_pwmgens=3 num_stepgens=3,firmware=hm2/5i23/SVSS8_8.BIT sserial_port_0=0000 num_encoders=4"
9292
.fi
9393

@@ -132,7 +132,7 @@ Load the firmware specified by F into the FPGA on this board. If no
132132
re-programmed but may continue to run a previously downloaded firmware.
133133

134134
The requested firmware F is fetched by udev. udev searches for the
135-
firmware in the system's firmware search path, usually /lib/firmware.
135+
firmware in the systems firmware search path, usually /lib/firmware.
136136
F typically has the form "hm2/<BoardType>/file.bit"; a typical value
137137
for F might be "hm2/5i20/SVST8_4.BIT". The hostmot2 firmware files are
138138
supplied by the hostmot2\-firmware packages, available from linuxcnc.org and can
@@ -217,7 +217,7 @@ board. These are arranged in 1-4 ports of 1 to 8 channels.
217217
for example all inputs, or all outputs, or offering additional analogue input on
218218
some digital pins.
219219
To set the modes for port 0 use, for example \fBsserial_port_0=0120xxxx\fR
220-
A '0'in the string sets the corresponding port to mode 0, 1 to mode 1, and so
220+
A "0" in the string sets the corresponding port to mode 0, 1 to mode 1, and so
221221
on up to mode 9. An "x" in any position disables that channel and makes the
222222
corresponding FPGA pins available as GPIO.
223223
The string can be up to 8 characters long, and if it defines more
@@ -364,7 +364,7 @@ per minute.
364364
When this pin is True, the count and position pins are
365365
set to 0. (The value of the velocity pin is not affected by this.)
366366
The driver does not reset this pin to FALSE after resetting the count
367-
to 0, that is the user's job.
367+
to 0, that is the users job.
368368

369369
.TP
370370
(bit in/out) index\-enable
@@ -433,7 +433,7 @@ Parameters:
433433

434434
.TP
435435
(float r/w) scale
436-
Converts from 'count' units to 'position' units.
436+
Converts from "count" units to "position" units.
437437

438438
.TP
439439
(bit r/w) index\-invert
@@ -483,7 +483,7 @@ before reporting the encoder stopped. This parameter is in seconds.
483483
Sets the hm2dpll timer instance to be used to latch encoder counts. A setting
484484
of \-1 does not latch encoder counts. A setting of 0 latches at the same time
485485
as the main hostmot2 read. A setting of 1..4 uses a time offset from the main
486-
hostmot2 read according to the dpll's timer\-us setting.
486+
hostmot2 read according to the dplls timer\-us setting.
487487

488488
Typically, timer\-us should be a negative number with a magnitude larger than
489489
the largest latency (e.g., \-100 for a system with mediocre latency, \-50 for a
@@ -718,7 +718,7 @@ counts per rev (16777216 counts).
718718
.TP
719719
(s32, out) rawcounts
720720
This is identical to the counts pin, except it is not
721-
reset by the 'index' or 'reset' pins. This is the pin which would be linked to
721+
reset by the "index" or "reset" pins. This is the pin which would be linked to
722722
the bldc HAL component if the resolver was being used to commutate a motor.
723723

724724
.TP
@@ -798,7 +798,7 @@ In conjunction with \fBjoint-pos-fb\fR (qv) emulate absolute encoders.
798798
pwmgens have names like
799799
"hm2_\fI<BoardType>\fR.\fI<BoardNum>\fR.pwmgen.\fI<Instance>\fR".
800800
"Instance" is a two-digit number that corresponds to the HostMot2 pwmgen
801-
instance number. There are 'num_pwmgens' instances, starting with 00.
801+
instance number. There are "num_pwmgens" instances, starting with 00.
802802

803803
So, for example, the HAL pin that enables output from the fourth pwmgen
804804
of the first 7i43 board is: hm2_7i43.0.pwmgen.03.enable (this assumes
@@ -819,7 +819,7 @@ Pins:
819819
.TP
820820
(bit input) enable
821821
If True, the pwmgen will set its Not\-Enable pin
822-
False and output its pulses. If 'enable' is False, pwmgen will set its
822+
False and output its pulses. If "enable" is False, pwmgen will set its
823823
Not\-Enable pin True and not output any signals.
824824

825825
.TP
@@ -830,7 +830,7 @@ Parameters:
830830

831831
.TP
832832
(float rw) scale
833-
Scaling factor to convert 'value' from arbitrary units
833+
Scaling factor to convert "value" from arbitrary units
834834
to duty cycle: dc = value / scale. Duty cycle has an effective range
835835
of \-1.0 to +1.0 inclusive, anything outside that range gets clipped.
836836
The default scale is 1.0.
@@ -867,7 +867,7 @@ a 200 MHz clock, resulting in a 386 kHz max PWM frequency. Other boards
867867
may have different clocks, resulting in different max PWM frequencies.
868868
If the user attempts to set the frequency too high, it will be clipped
869869
to the max supported frequency of the board. Frequencies below about
870-
5 Hz are not terribly accurate, but above 5 Hz they're pretty close.
870+
5 Hz are not terribly accurate, but above 5 Hz they are pretty close.
871871
The default pwm_frequency is 20,000 Hz (20 kHz).
872872

873873
.TP
@@ -1004,7 +1004,7 @@ scale in degrees for 1-2 mS servos with a full motion range of 90 degrees
10041004
stepgens have names like
10051005
"hm2_\fI<BoardType>\fR.\fI<BoardNum>\fR.stepgen.\fI<Instance>\fR".
10061006
"Instance" is a two-digit number that corresponds to the HostMot2 stepgen
1007-
instance number. There are 'num_stepgens' instances, starting with 00.
1007+
instance number. There are "num_stepgens" instances, starting with 00.
10081008

10091009
So, for example, the HAL pin that has the current position
10101010
feedback from the first stepgen of the second 5i22 board is:
@@ -1117,8 +1117,8 @@ change if the step timings or position\-scale changes. Defaults to 0.
11171117
Maximum acceleration, in position units per second
11181118
per second. Defaults to 1.0. If set to 0, the driver will not limit its
11191119
acceleration at all - this requires that the position\-cmd or velocity\-cmd
1120-
pin is driven in a way that does not exceed the machine's capabilities.
1121-
This is probably what you want if you're going to be using the LinuxCNC
1120+
pin is driven in a way that does not exceed the machines capabilities.
1121+
This is probably what you want if you are going to be using the LinuxCNC
11221122
trajectory planner to jog or run G-code.
11231123

11241124
.TP
@@ -1179,7 +1179,7 @@ stage of the step sequence.
11791179
Sets the hm2dpll timer instance to be used to latch stepgen counts. A setting
11801180
of \-1 does not latch stepgen counts. A setting of 0 latches at the same time
11811181
as the main hostmot2 read. A setting of 1..4 uses a time offset from the main
1182-
hostmot2 read according to the dpll's timer\-us setting.
1182+
hostmot2 read according to the dplls timer\-us setting.
11831183

11841184
Typically, timer\-us should be a negative number with a magnitude larger than
11851185
the largest latency (e.g., \-100 for a system with mediocre latency, \-50 for a
@@ -1244,7 +1244,7 @@ and have a restricted HAL interface.
12441244
GPIOs have names like "hm2_\fI<BoardType>\fR.\fI<BoardNum>\fR.gpio.\fI<IONum>\fR".
12451245
IONum is a three-digit number. The mapping from IONum to connector and
12461246
pin-on-that-connector is written to the syslog when the driver loads,
1247-
and it's documented in Mesa's manual for the Anything I/O boards.
1247+
and it is documented in Mesas manual for the Anything I/O boards.
12481248

12491249
So, for example, the HAL pin that has the current inverted input value
12501250
read from GPIO 012 of the second 7i43 board is: hm2_7i43.1.gpio.012.in\-not
@@ -1311,7 +1311,7 @@ have this parameter.
13111311
When a physical I/O pin is used by a special function, the related
13121312
.BR is_output ", and " is_opendrain
13131313
HAL parameters are aliased to the special function. For instance, if gpio 1
1314-
is taken over by pwmgen 0's first output, then aliases like
1314+
is taken over by pwmgen 0s first output, then aliases like
13151315
.B hm2_7i92.0.pwmgen.00.out0.invert_output
13161316
(referring to
13171317
.BR hm2_7i92.0.gpio.001.invert_output )
@@ -1338,7 +1338,7 @@ inms have names like
13381338
"hm2_\fI<BoardType>\fR.\fI<BoardNum>\fR.inm.\fI<Instance>\fR".
13391339
inmuxes have names like "hm2_\fI<BoardType>\fR.\fI<BoardNum>\fR.inmux.\fI<Instance>\fR".
13401340
"Instance" is a two-digit number that corresponds to the HostMot2 inm or inmux
1341-
instance number. There are 'num_inms' or numx_inmuxs" instances, starting
1341+
instance number. There are "num_inms" or "numx_inmuxs" instances, starting
13421342
with 00.
13431343

13441344
Each instance reads between 8 and 32 input pins. inm and inmux are identical except
@@ -1416,7 +1416,7 @@ the LED.
14161416
SSRs have names like
14171417
"hm2_\fI<BoardType>\fR.\fI<BoardNum>\fR.ssr.\fI<Instance>\fR".
14181418
"Instance" is a two-digit number that corresponds to the HostMot2 SSR
1419-
instance number. There are 'num_ssrs' instances, starting
1419+
instance number. There are "num_ssrs" instances, starting
14201420
with 00.
14211421

14221422
Each instance has a rate control pin and between 1 and 32 output pins.
@@ -1433,13 +1433,13 @@ Set to 0 to disable this SSR instance.
14331433

14341434
.TP
14351435
(bit in) out-NN
1436-
The state of this SSR instance's NNth output. Set to 0 to make
1436+
The state of this SSR instances NNth output. Set to 0 to make
14371437
the output pins act like an open switch (no connection), set to 1 to
14381438
make them act like a closed switch.
14391439

14401440
.TP
14411441
(bit in) invert-NN
1442-
Inverts the state of this SSR instance's NNth output, defaults to 0.
1442+
Inverts the state of this SSR instances NNth output, defaults to 0.
14431443
When invert-NN is set to 1, SSR output NN is closed when the out-NN
14441444
pin is 0 and open when the out-NN pin is 1
14451445

@@ -1448,7 +1448,7 @@ pin is 0 and open when the out-NN pin is 1
14481448
OutMs have names like
14491449
"hm2_\fI<BoardType>\fR.\fI<BoardNum>\fR.OutM.\fI<Instance>\fR".
14501450
"Instance" is a two-digit number that corresponds to the HostMot2 OutM
1451-
instance number. There are 'num_outms' instances, starting
1451+
instance number. There are "num_outms" instances, starting
14521452
with 00.
14531453

14541454
Each instance has between 1 and 32 output pins.
@@ -1458,12 +1458,12 @@ Pins:
14581458

14591459
.TP
14601460
(bit in) out-NN
1461-
The sets the state of this OutM instance's NNth output. Normally the output
1461+
The sets the state of this OutM instances NNth output. Normally the output
14621462
pin follows the state of this pin but may be inverted by the invert-nn hal pin
14631463

14641464
.TP
14651465
(bit in) invert-NN
1466-
Inverts the state of the this OutM instance's NNth output, defaults to 0.
1466+
Inverts the state of the this OutM instances NNth output, defaults to 0.
14671467
When invert-NN is set to 1, OutM output NN is high when the out-NN
14681468
pin is 0 and low when the out-NN pin is 1
14691469

@@ -1563,7 +1563,7 @@ the first time by running the hm2 write() HAL function (see below), the
15631563
watchdog wakes up. From them on it must be petted periodically or it will
15641564
bite. Pet the watchdog by running the hm2 write() HAL function.
15651565

1566-
When the watchdog bites, all the board's I/O pins are disconnected from
1566+
When the watchdog bites, all the boards I/O pins are disconnected from
15671567
their Module instances and become high-impedance inputs (pulled high),
15681568
and all communication with the board stops. The state of the HostMot2
15691569
firmware modules is not disturbed (except for the configuration of the
@@ -1633,7 +1633,7 @@ to the address in .write_address, and .write_strobe is set back to False.
16331633
.TP
16341634
(bit in/out) dump_state
16351635
This pin is normally False. If it gets set to
1636-
True the hostmot2 driver will write its representation of the board's
1636+
True the hostmot2 driver will write its representation of the boards
16371637
internal state to the syslog, and set the pin back to False.
16381638

16391639
.SS Setting up Smart Serial devices
@@ -1707,7 +1707,7 @@ hm2_7i43(9)
17071707
hm2_7i90(9)
17081708
.br
17091709

1710-
Mesa's documentation for the Anything I/O boards, at
1710+
Mesas documentation for the Anything I/O boards, at
17111711
.UR
17121712
http://www.mesanet.com
17131713
.UE

0 commit comments

Comments
 (0)