- Posts: 22
- Thank you received: 240
Need a HELP on G-Code
- ArcEye
- Offline
- Junior Member
-
(Q3.can't we use joint values to make the g-code?)
That is the whole point of a teach program
You could have the teach-in.py script write out as GCode, but you would need to process the fields in position first, to insert modal codes and axis letters into the string.
As a starter for 10, this will write out to file in a format that can be used as gcode, with a suitable header and footer
It is 6 axis specific, edit and adapt as required.
Please Log in or Create an account to join the conversation.
- SKH
- Offline
- New Member
-
- Posts: 11
- Thank you received: 0
-4.3687 -0.5114 -7.6510 136.1938 -71.7058 25.1489 – then we converted these values to the following g-code.
G20 G90
G0 G53 X-4.3687 Y-0.5114 Z -7.6510 A136.1938 B-71.7058 C25.1489 F200
G30
M30
When try to run it with this g-code it won’t go to the position where we first jogged in to. In fact it tries to go beyond the limit switches and trigger them. That is the problem we have. We were wandering if it is because of the DH parameters or the way we edited the g-code. Is there any error in the way we used the g-code or anything we missed??
Best regards
SKH
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
- Posts: 19899
- Thank you received: 4655
SKH wrote: We were wandering if it is because of the DH parameters or the way we edited the g-code.
The G-code looks correct, but it may be trying to take a path to that point that exceeds a joint limit due to the DH parameters being wrong.
The DH need to be right. Even if that doesn't solve the current problem.
Please Log in or Create an account to join the conversation.
- ArcEye
- Offline
- Junior Member
-
- Posts: 22
- Thank you received: 240
When try to run it with this g-code it won’t go to the position where we first jogged in to. In fact it tries to go beyond the limit switches and trigger them. That is the problem we have. We were wandering if it is because of the DH parameters or the way we edited the g-code. Is there any error in the way we used the g-code or anything we missed??
What you have not said is what code you used to capture the positions you are feeding back in.
If you use code which gets the offset G54 positions and then run that code as machine positions with G53, it is bound to go wrong and exceed limits.
Please Log in or Create an account to join the conversation.
- SKH
- Offline
- New Member
-
- Posts: 11
- Thank you received: 0
Then we'll try setting the DH parameters first and get back to you soon......
Please Log in or Create an account to join the conversation.
- SKH
- Offline
- New Member
-
- Posts: 11
- Thank you received: 0
We've setup all DH Parameters.
now we want to run a "linuxcnc" G-Code.
but when we imported it to our work space,then the G-Code is located faraway from the tool tip of the robot.
so when we run the program,it will try to exceed the limits
so how can we move the G-code closer to the robot?
Please Log in or Create an account to join the conversation.