Problem with [RS274NGC] REMAP block

More
30 Dec 2012 03:12 - 30 Dec 2012 03:15 #28164 by machete
Hello!

I'm trying to remap M6 code:

[RS274NGC]
REMAP=M6 modalgroup=6 ngc=my-tool-change

But linux CNC don't starting (even if i delete REMAP and leave only [RS274NGC] i have same error)

LinuxCNC Errors:

Warning: Spoiler!


My .ini file:

Warning: Spoiler!
Last edit: 30 Dec 2012 03:15 by machete.

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

More
30 Dec 2012 03:20 #28165 by machete
UPD: Sorry this is my fault, it's just because i typed "[RS274NGC]" twice in my .ini file.

P.S. Hmm.. error-log might be more informative for this case..

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

More
30 Dec 2012 03:21 - 30 Dec 2012 03:23 #28166 by cncbasher
glad you found it
Last edit: 30 Dec 2012 03:23 by cncbasher.

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

More
30 Dec 2012 03:56 #28167 by machete
Ok, LinuxCNC started, but i can't activate REMAP functional.

I type MDI comand T7M6 but it not execute REMAP .ngc file (only standart functional for M6 is performing).


.ini file:

[RS274NGC]
PARAMETER_FILE = emc.var
SUBROUTINE_PATH = /home/vm501/emc2/configs/VM501/ncsubroutines/
REMAP=M6 modalgroup=6 ngc=mytoolchange

/home/vm501/emc2/configs/VM501/ncsubroutines/mytoolchange.ngc
(i also put it to /home/vm501/emc2/nc_files)
o<mytoolchange> sub

M5 (stop spindle)
G0 G53 Y75.6 (go to plane of Tool Magazine's clamps)
M64 P0 (enabling DO-CHANGE bit)
M66 P0 L3 Q2678400 (waiting 1 month for PHASE2 )
G0 G53 Y205.3 (go back to left tool in the clamp)
M66 P1 L3 Q2678400 (waiting 1 month for PHASE3)
G0 G53 Y75.6 (go to plane of Tool Magazine's clamps)
M66 P2 L3 Q2678400 (waiting 1 month for CHANGED)
M65 P0 (disabling DO-CHANGE bit)
M6 (acting loopbacks)

o<mytoolchange> endsub
M2

P.S. Program betwen "sub" and "endsub" is working if i start it like main program.

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

More
30 Dec 2012 04:27 #28168 by cncbasher
which version of linuxcnc are you running 2.5.1 ?

i believe the remap functions are an addition only to the development branch and not 2.5.1

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

More
30 Dec 2012 05:49 - 30 Dec 2012 06:23 #28173 by machete

which version of linuxcnc are you running 2.5.1 ?

i believe the remap functions are an addition only to the development branch and not 2.5.1


Yes, i'm using usual 2.5.1

You mean, i have to setup "Master branch (development)"
From here: buildbot.linuxcnc.org/ ?

Maybe i just need some extra packages from Synaptic?
Last edit: 30 Dec 2012 06:23 by machete.

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

More
30 Dec 2012 06:27 - 30 Dec 2012 06:28 #28174 by BigJohnT
Or you could install a RIP (Run In Place) from a git download.

John
Last edit: 30 Dec 2012 06:28 by BigJohnT.

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

More
31 Dec 2012 07:20 #28211 by machete
I have installed "Master branch (development)" version from here: buildbot.linuxcnc.org/
And now i have remapped M6, so i can successfully change tool with my NGC subprogram executing "T3M6".

But how can i remap T? I need tool number variable in my NGC subprogram - i can't find it in manual..

Something like:

o<mytoolchange> sub
M5
T#<tool-number> (new tool number)
.....
o<mytoolchange> endsub
M2

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

More
31 Dec 2012 17:54 - 31 Dec 2012 17:55 #28219 by ArcEye
If you mean how do you pass a tool number to your sub

o <mytoolchange> call 6

o<mytoolchange> sub
#<tool-number> = #1
M5
T#<tool-number> (new tool number)
.....
o<mytoolchange> endsub
M2


will pass parameter 6 to be used as Tn

regards
Last edit: 31 Dec 2012 17:55 by ArcEye.

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

More
31 Dec 2012 19:07 #28220 by machete
No, i want completely remap Tx code:

[RS274NGC]
REMAP=T ngc=mytoolchange

So, when i execute in MDI mode "T3" or "T7"
i can have tool-number (3 or 7 or whatever else) in my subprogram:


o<mytoolchange> sub

M5 (stop spindle)
T[name of variable?]
...
... (physical process of tool changing)
...
M6

o<mytoolchange> endsub
M2

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

Time to create page: 0.156 seconds
Powered by Kunena Forum