- Posts: 22
- Thank you received: 240
Need a HELP on G-Code
- ArcEye
- Offline
- Junior Member
-
Having found out what DH parameters are, they are nothing that Axis understands
You need to establish a Cartesian home position that Axis understands as G53 X0 Y0 Z0 A0 B0 C0.
You can just set the ini file so that all homing values are 0 and it will home without movement to wherever you are happy with as a home position with your DH parameters set as you require.
This is your base position.
Then move to a position where you are in the centre (ish) of your arm's working area and touch off to 0 under G54 in the various axes, so that you are offset from machine positioning.
(This might conceivably be the same place, but I would have expected an arm to home in a fully retracted position out of the way, but I may be completely wrong)
If your axis figures in your ini file are correct, you should now be able to reach to the extent of your arm in its various planes without exceeding the working area limits.
If the axis can move in both directions from the home position, this range needs to be in the ini file settings.
(or you could just hack it and change MAX_LIMIT and MIN_LIMIT to 9999 and -9999 respectively and be untroubled by limits :laugh: )
You still need to ensure that your collected data is from a homed and touched off arm and it matches the coordinate system you try to run it in, eg collect G54 coordinates and run them under G54, not G53.
Any coordinates you have collected so far will be completely arbitrary insofar as their origin is concerned.
regards
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
- Posts: 19899
- Thank you received: 4655
No, but they are crucial to the relationship between the joint angles and the machine cartesian position.ArcEye wrote: Having found out what DH parameters are, they are nothing that Axis understands
Are you using a Joint_axes branch of LinuxCNC? That separates the joint limits and the cartesian limits. You probably want that.
regardless of that, does the robot home accurately to a fixed point in space, and does this point in space correspond to the HOME position? You won't get anywhere unless the actual machine positions and the internal software model of the machine match.
If you jog in a straight line in the X axis, does the tool point move in a straight line along the X axis? If it doesn't then you still have configuration and homing details to get right.
Experiment with the sim/axis/vismach/puma configuration to see how a properly set-up robot jogs in cartesian space.
Please Log in or Create an account to join the conversation.
- SKH
- Offline
- New Member
-
- Posts: 11
- Thank you received: 0
but now we needed to setup acceleration and deceleration of the robot when navigating,
right now we know there is a function to setup acceleration.but
Q1)how to setup deceleration?
Q2)we are currently using 3 parallel ports in the system.is it not good to use the parallel port for this application.(we mean ,is there any data propagation issues,like delays,data misplacements,etc)
Q3)what are the advantages of the MESA card over the parallel port.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
- Posts: 4793
- Thank you received: 1480
SKH wrote: Thank you for all your support, guys.......We did manage to manipulate the robot successfully
.
but now we needed to setup acceleration and deceleration of the robot when navigating,
right now we know there is a function to setup acceleration.but
Q1)how to setup deceleration?
Q2)we are currently using 3 parallel ports in the system.is it not good to use the parallel port for this application.(we mean ,is there any data propagation issues,like delays,data misplacements,etc)
Q3)what are the advantages of the MESA card over the parallel port.
A1) Deceleration is just negative acceleration, and is handled by the same code as the acceleration. (once you set up one you have both)
A2) The limitation of a parallel port is in the rate that it can be serviced by the software, (your base thread speed)
A3) The advantages of a 5i25, are:
1-Hardware step and pulse generation at up to MHz speeds. (as opposed to software stepping at the base thread rate and its associated granularity)
2-Hardware encoder reading at up to MHz speeds .(same as above)
3-Mesa's daughter card selection offering specialized io (analog, digital, differential,...), and huge quantities of GPIO(general purpose I/O) options
Please Log in or Create an account to join the conversation.
- marq_torque
- Offline
- Elite Member
-
- Posts: 171
- Thank you received: 3
Thanks for Script first, i am stuck at how to capture code in file ? can you help modding this script ? i need axis letters which i got from your modified lines but its also throwing 0 0 1 0 at the end of each line and not sure where file is being saved !
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...54;hb=refs/heads/2.7
Please Log in or Create an account to join the conversation.
- jstoquica
- Offline
- Premium Member
-
- Posts: 117
- Thank you received: 8
How can I see the output file "train.ngc"?
or
How can I generate it?
I tried "python train.py /tmp/train.ngc", but the file doesn't exist.
Thanks.
Please Log in or Create an account to join the conversation.