- Posts: 566
- Thank you received: 0
REMAP function doesn't work
6 years 9 months ago #155946
by aleksamc
REMAP function doesn't work was created by aleksamc
I try to study REMAP function and I read main
Doc
(Example for named parameter passing to NGC procedures)
but I get such error:
"NGC file not found: ngc=m400 - 45:REMAP = M400 modalgroup=10 argspec=Pg ngc=m400"
I make standart example:
1) I add to .ini file in [RS274NGC]
REMAP=M400 modalgroup=10 argspec=Pq ngc=400
2) Creat file <m400.ngc> in main linux configuration folder (also change it to standart nc-files
2.1) The code of it is from example:
3) linux doesn't starts.
but I get such error:
"NGC file not found: ngc=m400 - 45:REMAP = M400 modalgroup=10 argspec=Pg ngc=m400"
I make standart example:
1) I add to .ini file in [RS274NGC]
REMAP=M400 modalgroup=10 argspec=Pq ngc=400
2) Creat file <m400.ngc> in main linux configuration folder (also change it to standart nc-files
2.1) The code of it is from example:
Code:
o<m400> sub
(P is required since it's uppercase in the argspec)
(debug, P word=#<P>)
(the q argspec is optional since its lowercase in the argspec. Use as follows:)
o100 if [EXISTS[#<q>]]
(debug, Q word set: #<q>)
o100 endif
o<m400> endsub
M2
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22009
- Thank you received: 3
6 years 9 months ago #155953
by tommylight
You need to have actual files named m400.ngc in the same folder as the config, if i remember correctly as it was some years ago i used remap.
Replied by tommylight on topic REMAP function doesn't work
aleksamc wrote: "NGC file not found: ngc=m400 - 45:REMAP = M400 modalgroup=10 argspec=Pg ngc=m400"
You need to have actual files named m400.ngc in the same folder as the config, if i remember correctly as it was some years ago i used remap.
Please Log in to join the conversation.
6 years 9 months ago #155977
by aleksamc
Replied by aleksamc on topic REMAP function doesn't work
Yes, I have them in the same folder as .ini file, but it doesn't found it.
What I do wrong I don't know?
What I do wrong I don't know?
Please Log in to join the conversation.
6 years 9 months ago #155984
by curtisa
Replied by curtisa on topic REMAP function doesn't work
Pretty sure your 400.ngc file needs to be saved in the location specified under the SUBROUTINE_PATH parameter in the [RS274NGC] section of your INI file.
Please Log in to join the conversation.
6 years 9 months ago #155998
by aleksamc
Replied by aleksamc on topic REMAP function doesn't work
Yes, it's helped. Thanks a lot.
Please Log in to join the conversation.
6 years 9 months ago #156037
by aleksamc
Replied by aleksamc on topic REMAP function doesn't work
-
Please Log in to join the conversation.
6 years 9 months ago #156041
by aleksamc
Replied by aleksamc on topic REMAP function doesn't work
I try to continue my study of remap.
Now I stuck at python runnig program (first example)
1) In .ini file I write
REMAP=G88.6 modalgroup=1 argspec=XYZp python=g886
2) Then I created file g886.py in the same directory as ngc remapping files.
3) In file I write my program from standart example
4) I've got an error:
I get such error if I complitly delete file from the folder also.
What problem could be?
I've read "4. Upgrading an existing configuration for remapping"
but still have problem
Now I stuck at python runnig program (first example)
1) In .ini file I write
REMAP=G88.6 modalgroup=1 argspec=XYZp python=g886
2) Then I created file g886.py in the same directory as ngc remapping files.
3) In file I write my program from standart example
4) I've got an error:
Code:
'g886' is not a Python callable function - 48:REMAP=G88.6 modalgroup=1 argspec=XYZp python=g886
What problem could be?
I've read "4. Upgrading an existing configuration for remapping"
but still have problem
Please Log in to join the conversation.
- satiowadahc
- Offline
- Senior Member
-
Less
More
- Posts: 59
- Thank you received: 0
6 years 9 months ago #156064
by satiowadahc
Replied by satiowadahc on topic REMAP function doesn't work
Can you post your python code?
Please Log in to join the conversation.
6 years 9 months ago #156080
by aleksamc
Replied by aleksamc on topic REMAP function doesn't work
I added all necessary files. Now I'm very bad in python but I hope to study it using examples in technical docs.
What editor Can I use to write program for python? Using it in gedit is very inconvenient.
Attachment not found
Attachment not found
Attachment not found
Attachment not found
Attachment not found
What editor Can I use to write program for python? Using it in gedit is very inconvenient.
Please Log in to join the conversation.
- satiowadahc
- Offline
- Senior Member
-
Less
More
- Posts: 59
- Thank you received: 0
6 years 9 months ago #156140
by satiowadahc
Replied by satiowadahc on topic REMAP function doesn't work
I may be mistaken but I believe your return needs to be indented on line 10.
Editor personal preference for general python is atom for generic writing, and pycharm for extreme debugging, but it doesn't work as nice when using linuxcnc
Editor personal preference for general python is atom for generic writing, and pycharm for extreme debugging, but it doesn't work as nice when using linuxcnc
Please Log in to join the conversation.
Time to create page: 0.164 seconds
