Guidance for remapping of a M-command

More
12 Dec 2012 05:29 #27604 by lugr
Hello everybody,
I would like to ask, whether anybody can provide me with a small step-by-step guide to remap a M-command?
I had already a look on the document "extending EMC", but I'm missing some sort of a "red line" in this document.
Can anybody tell me how to start with the remap of an M-command?

Thank you for your help!

Please Log in or Create an account to join the conversation.

More
12 Dec 2012 18:25 #27616 by ArcEye
Hi

Everything is in www.linuxcnc.org/docs/devel/html/remap/structure.html and referenced in various posts on this forum

Don't know what you mean by red line

The place to start is to download the master (2.6~prexxxxx), build it as a RIP system and read and follow the examples in there.

Of course you don't need to remap M codes if all you want to do is implement something new, rather than change the way an existing M code works

All you have to do is write one www.linuxcnc.org/docs/html/gcode/m-code....d_sec_m100_to_m199_a

regards
The following user(s) said Thank You: lugr

Please Log in or Create an account to join the conversation.

More
12 Dec 2012 19:35 #27618 by mhaberler
lugr,

a complete remapping example with ini configuration and the matching NGC procedure can be found here:

3.3.1. Example for named parameter passing to NGC procedures

which is in this section: www.linuxcnc.org/docs/devel/html/remap/s..._argspec_parameter_a

- Michael
The following user(s) said Thank You: lugr

Please Log in or Create an account to join the conversation.

More
12 Dec 2012 21:59 #27624 by andypugh

The place to start is to download the master (2.6~prexxxxx), build it as a RIP system and read and follow the examples in there.


I _think_ you can remap in a pre-packaged and installed "Master" version from the buildbot, and that's rather easier.
The following user(s) said Thank You: lugr

Please Log in or Create an account to join the conversation.

More
12 Dec 2012 23:07 #27631 by lugr
Hi all,
Thank you for your quick responses. I've access to the GIT-server and I've already downloaded the files from there.
Do I just have to make some changes in the [PYTHON]-section in the xxx.ini-file according to the example from mhaberler or do I have to install something else?
regards

Please Log in or Create an account to join the conversation.

More
12 Dec 2012 23:11 #27632 by mhaberler

Hi all,
Thank you for your quick responses. I've access to the GIT-server and I've already downloaded the files from there.
Do I just have to make some changes in the [PYTHON]-section in the xxx.ini-file according to the example from mhaberler or do I have to install something else?
regards


Hi lugr

If you are just starting I'd really recommend you install the buildbot master package instead of building yourself, see buildbot.linuxcnc.org/

Just try the example exactly as it is in the manual - it doesnt say anything about [PYTHON] and that is because that example does not need it.

Also explore the canned examples under configs/sim/remap .


- Michael

Please Log in or Create an account to join the conversation.

More
13 Dec 2012 01:22 #27637 by major
mhaberler wrote:
If you are just starting I'd really recommend you install the buildbot master package instead of building yourself, see buildbot.linuxcnc.org/


hello michael,

I'm a collegue from lugr and try to install the buildbot master package.
in the description it is reffered to a path
/etc/apt/sources.list.d/linuxcnc-buildbot.list.
But the last argument "linuxcnc-buildbot.list" is not existing on my machine. how do I get the two lines
(deb buildbot.linuxcnc.org/ lucid v2.5_branch-sim
deb-src buildbot.linuxcnc.org/ lucid v2.5_branch-sim)
to that list?
Is linuxcnc-buildbot.list just a textfile which contains the two lines or what exactly do I have to do?

Thanks,
Thomas

Please Log in or Create an account to join the conversation.

More
13 Dec 2012 01:53 #27638 by mhaberler

mhaberler wrote:
If you are just starting I'd really recommend you install the buildbot master package instead of building yourself, see buildbot.linuxcnc.org/


hello michael,

I'm a collegue from lugr and try to install the buildbot master package.
in the description it is reffered to a path
/etc/apt/sources.list.d/linuxcnc-buildbot.list.
But the last argument "linuxcnc-buildbot.list" is not existing on my machine. how do I get the two lines
(deb buildbot.linuxcnc.org/ lucid v2.5_branch-sim
deb-src buildbot.linuxcnc.org/ lucid v2.5_branch-sim)
to that list?
Is linuxcnc-buildbot.list just a textfile which contains the two lines or what exactly do I have to do?

Thanks,
Thomas


Thomas,

this is a generic linux question and you will get better support on say ubuntu forums

that said: please read 'man sources.list' - yes it is a text file, and yes you have to add it

- Michael

Please Log in or Create an account to join the conversation.

More
13 Dec 2012 01:55 #27639 by mhaberler
you do NOT want these lines, you are trying to install master, not 2.5:

(deb buildbot.linuxcnc.org/ lucid v2.5_branch-sim
deb-src buildbot.linuxcnc.org/ lucid v2.5_branch-sim)

you want these, assuming you want a simulator build:

deb buildbot.linuxcnc.org/ lucid master-sim
deb-src buildbot.linuxcnc.org/ lucid master-sim

- Michael

Please Log in or Create an account to join the conversation.

More
13 Dec 2012 02:16 #27640 by major
mhaberler wrote:
you do NOT want these lines, you are trying to install master, not 2.5:

(deb buildbot.linuxcnc.org/ lucid v2.5_branch-sim
deb-src buildbot.linuxcnc.org/ lucid v2.5_branch-sim)

you want these, assuming you want a simulator build:

deb buildbot.linuxcnc.org/ lucid master-sim
deb-src buildbot.linuxcnc.org/ lucid master-sim
______________________________________________________________________________________________________________

I could manage it to get the master-sim data. But when I start one of the sample configurations under the remap section, linuxcnc aborts with the following error message

Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
LINUXCNC - 2.6.0-pre0-3568-gc20e22f
Machine configuration directory is '/home/major/linuxcnc/configs/sim/remap/getting-started'
Machine configuration file is 'demo.ini'
INIFILE=/home/major/linuxcnc/configs/sim/remap/getting-started/demo.ini
PARAMETER_FILE=sim.var
TASK=milltask
HALUI=halui
DISPLAY=axis
DISABLE_SERVER=
SERVER_PATH=
SERVER_ARGS=
SERVER_LOG=
Starting LinuxCNC...
Starting redis server program:
redis server started as: 'redis-server ', logging to: /dev/null
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
io started
halcmd loadusr io started
Starting HAL User Interface program: halui
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=4877
Killing task redis-server, PID=4876
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done

Debug file information:
Can not find -sec MOT -var MOT -num 1
Can not find -sec IO -var IO -num 1
Can not find -sec LINUXCNC -var NML_FILE -num 1
Can not find -sec EMC -var NML_FILE -num 1
Can not find -sec REDIS -var DISABLE_SERVER -num 1
Can not find -sec REDIS -var SERVER_PATH -num 1
Can not find -sec REDIS -var SERVER_ARGS -num 1
Can not find -sec REDIS -var SERVER_LOG -num 1
Could not open command file '../../core_sim.hal'
4877
PID TTY STAT TIME COMMAND
4876
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

Please Log in or Create an account to join the conversation.

Time to create page: 0.413 seconds
Powered by Kunena Forum