SandBox - rmu75/linuxcnc-wiki GitHub Wiki
EditingEmacsSource
This is a sandbox page. Try out editing here because there is nothing important or sacred on this page, except this.
The following code tests a table
Column A | Column B | Column C |
---|---|---|
Entry for row 1, Column A | Entry for row 1, Column C | |
Entry for row 2, Column A | Entry for row 2, Column B | Entry for row 2, Column C |
Spanning entry | Entry for row 3, Column C | |
More spanning |
Cell contents are always centered. Columns are not always the same width but depend upon the widest text.
The command used to insert this image is http://www.linuxcnc.org/chips2t.gif.
The down side of this is that the image must remain in place and each look at this page by a new person hammers the other server.
[LinuxCNC web site] [Linuxcnc wiki temporary home]
That's all folks!
upload:brg_thrust_diag.jpg upload:Ausfuehren.png
Here we will test the table of contents. With indented text
1.1. prova
This is some indented text This is some indented text This is some indented text
This is some more indented text This is some more indented text This is some more indented ext This is some more indented text
This is yet even more text This is yet even more text This is yet even more text This is yet even more text
another Paragraph another Paragraph another Paragraph
2.2. I am a [bracketed link].
some more crap some more crap some more crap some more crap
2.2.1. An inline image http://www.usemod.com/wiki.gif
With Text added.
Testing the new wiki. (AJ)
this is another test... does it work??
- a
- b
- c
- d
just testing to see if this works
This is a simple alternative for the balls/rod arrangement of the Renishaw touch probe.:
upload:probe.jpeg
Test:
indented text
To manually select syntax-highlighting for a file in gEdit you'll need to select the right "Highlight mode" from the view-menu.
If you want to change the color-scheme for the active highlight mode, open the preferences from the Edit-menu, then chose the syntax highlighting tab.
Highlight style files are in the /usr/share/gtksourceview-1.0/language-specs directory, you'll need root access to edit these files.
Copy ini.lang to hal.lang and modify the first couple of lines so that they read as below.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language _name="HAL" version="1.0" _section="Others" mimetypes="text/x-hal-file;application/x-hal-file">
Now when you open gEdit and pick a highlighting mode you will see hal in there.
The specific markup is listed in the file named language.dtd in the same directory. Each element corresponds to one set of highlight characteristics. For example
<line-comment _name = "HAL Comment" style= "Comment">
<start-regex>#</start-regex> </line-comment>
Will pick out the hash mark (#) and use the name = "HAL Comment" style.
While you may only use the element name, you can use an element like "line-comment" more than once with the same name if you wish to have several different highlight types displayed using the same coloration. You can also have more than one "line-comment" with different names and the color picker will allow you to colorize each differently.
To highlight .ngc files you can simply download the ngc.lang file and copy it to your /usr/share/gtksourceview-1.0/language-specs directory.
use the color picker in gEdit to give some nice colors to your ngc-files =)
The ngc.lang file is configured to automatically highlight files with the text/ngc mime-type, Ubuntu marks the .ngc-files as text/plain, if follow these instructions the .ngc-files are automatically marked as text/ngc.
from the command-line:
xudo gedit /usr/share/mime/packages/freedesktop.org.xml
add these lines to the document (not at the beginning, but between 2 other <mime-type> elements)
<mime-type type="text/ngc">
<sub-class-of type="text/plain"/> <comment>ngc document</comment> <glob pattern="*.ngc"/> </mime-type>
save the file and exit gEdit.
Rebuild the mime-database, from the command-line:
sudo su update-mime-database /usr/local/mime exit
NewPage
5FiveAxisGantry
Closed Loop Spindle Speed Control
GladeVCP is an EMC2 component which adds the ability to add a virtual control panel to an EMC user interface like Axis or Touchy. It is similar to PyVCP; whereas PyVCP panels are created by editing an XML file manually, GladeVCP uses the glade WYSIWYG user interface editor. Therefore, it's faster and easier to create visually pleasing panels with GladeVCP.
Gladevcp is now in release 2.4.6 and later. Recent fixes and enhancements are likely to show up in 'master' first. For the examples below I assume master is installed as /emc2-dev. Build and install as per instructions. You will to install need python-xlib: sudo apt-get install python-xlib
Pin Number | Pin Color | RS485 | RS422 | UART | USART | UART HD | USART HD | SPI | SPI HD | QUAD | Step Dir | Resolver | 1 Vpp | UVW |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Orange Stripe | A | RX + | RX + | MISO + | CS+ | A + | STEP + | SIN + | SIN + | U+ | |||
2 | Orange | B | RX - | RX - | MISO - | CS- | A - | STEP - | SIN - | SIN - | U- | |||
3 | Green Stripe | CLK + | CLK + | CLK + | CLK + | B + | DIR + | COS + | COS + | V+ | ||||
4 | Blue | B | Z | TX - | TX - | TX/RX - | TX/RX - | MOSI - | MOSI - | Z- | FAULT- | REF - | W- | |
5 | Blue Stripe | A | Y | TX + | TX + | TX/RX + | TX/RX + | MOSI + | MOSI + | Z+ | FAULT+ | REF + | W+ | |
6 | Green | CLK - | CLK - | CLK - | CLK - | B - | DIR - | COS - | COS - | V- | ||||
7 | Brown Stripe | VCC | VCC | VCC | VCC | VCC | VCC | VCC | VCC | VCC | EN+ | AIN | VCC | VCC |
8 | Brown | GND | GND | GND | GND | GND | GND | GND | GND | GND | EN- | GND | GND | GND |
VCC = 5V