NEWS
LinuxCNC 2.5.2 Release
There are no translations available.

LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release
There are no translations available.

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
There are no translations available.

New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 
Home Forum Configuring LinuxCNC Advanced Configuration Having another go at remaping M6

Welcome, Guest
Username: Password: Remember me

TOPIC: Having another go at remaping M6

Re:Having another go at remaping M6 07 Ago 2012 12:14 #22956

  • mhaberler
  • mhaberler's Avatar
  • OFFLINE
  • Moderator
  • Posts: 196
  • Thank you received: 8
  • Karma: 54
see www.linuxcnc.org/docs/devel/html/remap/s...ap_embedded_python_a

for instance, in the configs/sim/remap/extend-builtins example, the Python path is configured here (note it is not 'set' - you can prepend or append directories so as not to interfere with other Python path components):

git.linuxcnc.org/gitweb?p=linuxcnc.git;a...8952410e7a786578#l90

In many cases, the 'standard glue' routines in configs/sim/remap/python-stdglue/stdglue.py should be sufficient; if you need something specific, just use them as a blueprint (glueprint ;-?)

- Michael
The administrator has disabled public write access.

Re:Having another go at remaping M6 07 Ago 2012 17:16 #22960

Not making much progress on this!

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
cant resolve path to 'python/toplevel.py'
no Python plugin available
Python plugin required for prolog=, but not available: 49:REMAP = M6 modalgroup=6 prolog=change_prolog ngc=change epilog=change_epilog
Python plugin required for epilog=, but not available: 49:REMAP = M6 modalgroup=6 prolog=change_prolog ngc=change epilog=change_epilog
A configuration error is preventing LinuxCNC from starting.
More information may be available when running from a terminal.
3035

I copied the Python section from the example ini

[PYTHON]
# where to find Python code
# code specific for this configuration
PATH_PREPEND=./python
# generic support code
PATH_APPEND=../python-stdglue

# import the following Python module
TOPLEVEL=python/toplevel.py

# the higher the more verbose tracing of the Python plugin
LOG_LEVEL = 0


into my ini but that failed to work I just don't get the syntax to define a path
for the Python routines.
I have found the Python routines using locate

me@cnc2:~$ locate change_prolog
/home/me/Desktop/change_prolog.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/remap/rack-toolchange/python/change_prolog.py
The administrator has disabled public write access.

Re:Having another go at remaping M6 07 Ago 2012 17:46 #22962

  • mhaberler
  • mhaberler's Avatar
  • OFFLINE
  • Moderator
  • Posts: 196
  • Thank you received: 8
  • Karma: 54
Gary,

your issue has nothing to do with the changes to the ini file, but I cant tell because I dont know what you executed, and how, which resulted in above error message

please detail the exact commands you executed, and the configuration files

if you ran linuxcnc from a shell, post a log to pastebin.com/

-m
The administrator has disabled public write access.

Re:Having another go at remaping M6 07 Ago 2012 22:27 #22966

I used the Linuxcnc Steoconf wizard to build a generic XYZA
my-mill set up. I use the launch my-mill icon to execute EMC2

I presume the configuration files you refer to are the files built
buy the Steoconf wizard

The Log file viewer tool shows me 36 different log files which
file would contain the desired information?
The administrator has disabled public write access.

Re:Having another go at remaping M6 08 Ago 2012 01:37 #22969

  • mhaberler
  • mhaberler's Avatar
  • OFFLINE
  • Moderator
  • Posts: 196
  • Thank you received: 8
  • Karma: 54
Gary,

this is just a problem of Unix pathnames.

the log says:

cant resolve path to 'python/toplevel.py'
no Python plugin available

which means:
- using a REMAP module requires the Python plugin to be configured and initialized
- to initialize, the Python plugin must be able to read the toplevel Python script which is set with the [PYTHON]TOPLEVEL=<path to toplevel script>
- during startup the path 'python/toplevel.py' could not be found - it is a relative path and obviously it cant find either the 'python' directory or the 'toplevel.py' script within it

So as soon as you use a REMAP, the interpreter needs to be able to find the toplevel script

Fix: replace [PYTHON]TOPLEVEL=<absolute path to toplevel script>
like /home/gary/linuxcnc/config/yadayada/python/toplevel.py

same goes for the APPEND/PREPEND pathes

-m
The administrator has disabled public write access.

Re:Having another go at remaping M6 09 Ago 2012 13:00 #23004

Michael

OK PYTHON]TOPLEVEL= and APPEND/PREPEND appear in my ini file
I assume those are the ones that need the path corrected to one some what
like the example you provided /home/gary/linuxcnc/config/yadayada/python/toplevel.py

I searched for any Python directory's or files in the home directory
no Python directorys were found and only a few python scripts like
hole circle.py No toplevel.py found.

when going wider afield, locate did find many directorys and files like this
/usr/share/doc/linuxcnc/examples/sample-configs/sim/remap/rack-toolchange/python/toplevel.py

Could it be that I need to install an additional Python package???


G.
Last Edit: 09 Ago 2012 13:01 by garymcrobertpdx.
The administrator has disabled public write access.
Time to create page: 2.166 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.