About Teach-in Script

More
06 May 2016 06:28 #74287 by marq_torque
Hello all Mods and Members,

I have recently setup for 9Axis Special purpose Spring machine, i came across Teach-In Python script which is used for teaching. so now i am confused how to utilize in 2.7.4 version as i am not able to find any directory or file as stated in git where its located. also blank that how it works. i am feeling totally noob at this point.

Any one throw some light please. my concept is to jog and put that axis and its value entry in program/file directly by a click of button.

Thanks in advance,
Ankit

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

More
06 May 2016 17:35 #74310 by marq_torque
Replied by marq_torque on topic About Teach-in Script
No one here ?? with help of Teach-in.py script ? :(

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

More
06 May 2016 17:47 #74312 by dgarrett
Replied by dgarrett on topic About Teach-in Script
For a rip build, the file is:

your_git_top_dir/src/emc/usr_intf/axis/scripts/teach-in.py

but it is not made available as an executable in a deb install
for 2.7.x -- probably just forgotten, you could file a bug
report

It is made available in the joints_axes13 branch at
/usr/bin/teach-in
The following user(s) said Thank You: marq_torque

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

More
06 May 2016 19:34 #74316 by marq_torque
Replied by marq_torque on topic About Teach-in Script
Thanks for your input dgarrett,

can you clear some of points... as your answer is totally bouncer to me. all i got it its not included in 2.7.x, now i am confused at what is "joints_axes13 branch" and how old script used to work with emc ? and is there any way i can compile in new version ? like kinematics ? as i am only familiar to work with .hal .ini and kinematics files only.

Thanks Again
Ankit

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

More
06 May 2016 19:54 #74317 by dgarrett
Replied by dgarrett on topic About Teach-in Script
teach-in.py is a python script so you could download the blob and just use it
make it executable (chmod 755 teach-in.py)

git.linuxcnc.org/gitweb?p=linuxcnc.git;a...47;hb=refs/heads/2.7


joints_axes13 is a developmental branch
The following user(s) said Thank You: marq_torque

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

More
07 May 2016 05:51 #74328 by marq_torque
Replied by marq_torque on topic About Teach-in Script
hello dgrrett,

i checked link, i am so noob to know how to download? i have copied all lines and put in empty file. and removed numbers. is there any straight way to download ? am i missing anything ? and how to execute ? guide me Sir,


Regards,
Ankit

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

More
07 May 2016 06:12 #74329 by marq_torque
Replied by marq_torque on topic About Teach-in Script
I was playing with script. loaded as a Gcode and it opened a dialogue box with joint and world mode, i am able to capture position but not axes name ! how to get it done ?

Any input ?


Regards,
Ankit

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

More
08 May 2016 12:57 - 08 May 2016 13:00 #74376 by BigJohnT
Replied by BigJohnT on topic About Teach-in Script
The axes are in the order of X Y Z A B C U V W so if you have a 3 axis mill for example the numbers from left to right are X Y Z. The four numbers after the axes positions are flood, mist, lube and spindle enabled. You can run teach-in.py after starting LinuxCNC. Starting teach-in without a file name the saved position just go to standard out.

JT
Last edit: 08 May 2016 13:00 by BigJohnT.
The following user(s) said Thank You: marq_torque

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

More
08 May 2016 13:04 #74377 by marq_torque
Replied by marq_torque on topic About Teach-in Script
Thanks BigJohnT,

Where the saved file is located ?? I couldn't find it. Also there is 0 0 1 0 output in each line.

I want to modify little manually after teaching.

Regards,
Ankit

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

More
08 May 2016 13:19 #74378 by marq_torque
Replied by marq_torque on topic About Teach-in Script
I have modified script to get G01 and corresponding axes letter. But not able to remove trailing 0 0 1 0 ... also Not sure where the file is saved i can see loaded program with saveral errors only !

Also need to add % before first line and after last line.

For routine use its headache to modify file everytime.

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

Time to create page: 0.079 seconds
Powered by Kunena Forum