Skip to content

Commit 50cf1ae

Browse files
authored
Merge branch 'LinuxCNC:master' into master
2 parents 507c66f + 7fe861d commit 50cf1ae

4 files changed

Lines changed: 55 additions & 5 deletions

File tree

docs/src/gui/gstat.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ General message should be used a sparsely as reasonable because all object conne
483483
It uses a python dict for communication. +
484484
The dict should include and be checked for a unique id keyname pair: +
485485
* ID: 'UNIQUE_ID_CODE' +
486-
The dict usually has more keyname pair - it depends on implementation. +
486+
The dict usually has more keyname pair - it depends on implementation. +
487487

488488
*forced-update* :: '(returns None)' -
489489
intended to be sent when one wishes to initialize or arbitrarily update an object. +

src/Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,14 @@ else
122122
endif
123123
endif
124124

125+
VERSION=$(shell cat ../VERSION)
126+
dist:
127+
mkdir ../linuxcnc-$(VERSION)
128+
(cd ../ && git archive master) | (cd ../linuxcnc-$(VERSION) && tar xf -)
129+
(cd ../linuxcnc-$(VERSION) && ./debian/configure)
130+
(cd ../linuxcnc-$(VERSION)/src && ./autogen.sh)
131+
(cd .. && tar zcf linuxcnc-$(VERSION).tar.gz linuxcnc-$(VERSION))
132+
rm -rf ../linuxcnc-$(VERSION)
125133

126134
# Print 'entering' all the time
127135
MAKEFLAGS += w

src/hal/components/logic.comp

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,26 @@
1-
component logic "LinuxCNC HAL component providing configurable logic functions";
1+
component logic """LinuxCNC HAL component providing configurable logic functions
2+
3+
.B loadrt logic
4+
.B [count=N|names=name1[,name2...]]
5+
.B personality=0xXXXX[,0xXXXX...]
6+
7+
.TP
8+
\\fBcount\\fR The number of logical gates.
9+
.TP
10+
\\fBnames\\fR The named logical gates to create.
11+
.TP
12+
\\fBpersonality\\fR Comma separated list of hexadecimal number.
13+
Each number defines the behaviour of the individual logic gate. The
14+
list must have the same number of personalities as the N count.
15+
16+
""";
217
pin in bit in-##[16 : personality & 0xff];
318
pin out bit and if personality & 0x100;
419
pin out bit or if personality & 0x200;
520
pin out bit xor if personality & 0x400;
621
pin out bit nand if personality & 0x800;
722
pin out bit nor if personality & 0x1000;
8-
function _ nofp;
23+
function _ nofp "Read the inputs and toggle the output bit.";
924
description """
1025
General `logic function' component. Can perform `and', `or',
1126
`nand', `nor' and `xor' of up to 16 inputs.
@@ -27,6 +42,33 @@ The number of input pins, usually from 2 to 16
2742
.LP
2843
Outputs can be combined, for example 2 + 256 + 1024 = 1282 converted to hex
2944
would be 0x502 and would have two inputs and have both `xor' and `and' outputs.
45+
""";
46+
examples """
47+
.PP
48+
This is an OR circuit connected to three different signals, two inputs
49+
named sig-in-0 and sig-in-1, and one output named sig-out. First the
50+
circuit is defined, then its function is connected to the servo real
51+
time thread, last, its pins are connected to the wanted signals.
52+
.IP
53+
.nf
54+
loadrt logic count=1 personality=0x202
55+
addf logic.0 servo-thread
56+
net sig-in-0 => logic.0.in-00
57+
net sig-in-1 => logic.0.in-01
58+
net sig-out <= logic.0.or
59+
.fi
60+
61+
.PP
62+
This is a named AND circuit with two inputs and one output.
63+
.IP
64+
.nf
65+
loadrt logic names=both personality=0x102
66+
addf both servo-thread
67+
net sig-in-0 => both.in-00
68+
net sig-in-1 => both.in-01
69+
net sig-out <= both.and
70+
.fi
71+
3072
""";
3173
see_also """
3274
\\fBand2\\fR(9),

src/hal/utils/halcompile.g

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -889,8 +889,8 @@ def document(filename, outfilename):
889889
print("""
890890
.\\"*******************************************************************
891891
.\\"
892-
.\\" This file was generated with halcompile.g.
893-
.\\" Modify the source file %s.
892+
.\\" This file was extracted from %s using halcompile.g.
893+
.\\" Modify the source file.
894894
.\\"
895895
.\\"*******************************************************************
896896
""" % filename, file=f)

0 commit comments

Comments
 (0)