Skip to content

Commit dbaa1ce

Browse files
authored
Merge pull request #1981 from smoe/docs_HAL_TWOPASS
Docs HAL twopass
2 parents 1276973 + b802d6f commit dbaa1ce

2 files changed

Lines changed: 27 additions & 23 deletions

File tree

docs/src/hal/twopass.adoc

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
LinuxCNC 2.5 supports TWOPASS processing of LinuxCNC configuration files
1616
that can help in the modularization and readability of LinuxCNC files.
17-
(LinuxCNC files are specified in an LinuxCNC ini file in the LinuxCNC stanza
17+
(LinuxCNC files are specified in an LinuxCNC INI file in the LinuxCNC stanza
1818
as [LinuxCNC]HALFILE=filename).
1919

2020
Normally, a set of one or more LinuxCNC configuration files must use a single,
@@ -45,7 +45,7 @@ and their names since when you add (or remove) a component, you
4545
must find and update the single loadrt directive applicable to
4646
the component.
4747

48-
TWOPASS processing is enabled by including an ini file parameter in
48+
TWOPASS processing is enabled by including an INI file parameter in
4949
the [HAL] section:
5050

5151
[source,{ini}]
@@ -67,8 +67,9 @@ loadrt and2 names=ab,ac
6767
loadrt and2 names=ad
6868
----
6969

70-
These commands can appear in different HALFILES. The HALFILES
71-
are processed in the order of their appearance in the ini file.
70+
These commands can appear in different HAL files. The HAL files
71+
are processed in the order of their appearance in the INI file,
72+
in multiple HALFILE assignments.
7273

7374
The TWOPASS option can be specified with options to add output for
7475
debugging (verbose) and to prevent deletion of temporary files (nodelete).
@@ -134,7 +135,7 @@ encoder_ratio, pid, siggen, and sim_encoder.
134135

135136
Two-step processing occurs before the GUI is loaded. When using a
136137
[HAL]POSTGUI_HALFILE, it is convenient to place all the [HAL]POSTGUI_HALFILE
137-
loadrt declarations for the necessary components in a preloaded halfile.
138+
loadrt declarations for the necessary components in a preloaded HAL file.
138139

139140
.Example of a HAL section when using a POSTGUI_HALFILE
140141
[source,{ini}]
@@ -154,10 +155,10 @@ HALUI = halui
154155

155156
== Post GUI
156157

157-
Some GUIs support halfiles that are processed after the GUI is started in order
158-
to connect LinuxCNC pins that are created by the GUI. When using a postgui halfile with
159-
TWOPASS processing, include all loadrt items for components added by postgui halfiles
160-
in a separate halfile that is processed before the GUI. The addf commands can also
158+
Some GUIs support HAL files that are processed after the GUI is started in order
159+
to connect LinuxCNC pins that are created by the GUI. When using a postgui HAL file with
160+
TWOPASS processing, include all loadrt items for components added by postgui HAL files
161+
in a separate HAL file that is processed before the GUI. The addf commands can also
161162
be included in the file.
162163

163164
.Example

docs/src/ladder/classic-ladder.adoc

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -605,20 +605,23 @@ digit number eg. %Q3, or %B123. Q coils control HAL out pins, e.g. if
605605
%Q15 is energized then HAL pin classicladder.0.out-15 will be true. B
606606
coils are internal coils used to control program flow.
607607

608-
* 'N.O. COIL' - (a relay coil.) When coil is energized it's N.O. contact
609-
will be closed (on, true, etc)
610-
* 'N.C. COIL' - (a relay coil that inverses its contacts.) When coil is
611-
energized it"s N.O. contact will be open (off, false, etc)
612-
* 'SET COIL' - (a relay coil with latching contacts) When coil is energized
613-
it's N.O. contact will be latched closed.
614-
* 'RESET COIL' - (a relay coil with latching contacts) When coil is
615-
energized It's N.0. contact will be latched open.
616-
* 'JUMP COIL' - (a 'goto' coil) when coil is energized ladder program jumps
617-
to a rung (in the CURRENT section) -jump points are designated by a
618-
rung label. (Add rung labels in the section display, top left label
619-
box)
620-
* 'CALL COIL' - (a 'gosub' coil) when coil is energized program jumps to a
621-
subroutine section designated by a subroutine number -subroutines are
608+
* 'N.O. COIL' - A relay coil: When coil is energized, then its contact
609+
that is normally open (short: N.O.) will be closed (turned on, true,
610+
etc.) and the current may pass.
611+
* 'N.C. COIL' - A relay coil that inverses its contacts: When coil is
612+
energized, then its contact that is normally closed (short: N.C.) will be opened
613+
(turned off, false, etc) and the current flow is interrupted.
614+
* 'SET COIL' - A relay coil with latching contacts: When coil is energized
615+
then its N.O. contact will be latched closed.
616+
* 'RESET COIL' - A relay coil with latching contacts: When coil is
617+
energized then its N.O. contact will be latched open.
618+
* 'JUMP COIL' - A 'goto' coil: When coil is energized then the
619+
ladder program jumps
620+
to a rung (in the CURRENT section) - jump points are designated by a
621+
rung label. (Add rung labels in the section display, top left label box.)
622+
* 'CALL COIL' - A 'gosub' coil: When coil is energized then the program
623+
jumps to a
624+
subroutine section designated by a subroutine number - subroutines are
622625
designated SR0 to SR9 (designate them in the section manager)
623626

624627
[WARNING]

0 commit comments

Comments
 (0)