Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

G28 unexpected behavior

#1
I'm working on some machining projects and we are using G28 to safe move from one operation to another, but generated project works not as expected.

My home position configured in the application to X 0, Y 0, Z 200

And with the following g-code I expected that robot moves to home position, after that goes to Z 0 and draw part of a square, then on the line 
Quote:G28 G91 Z200.

it should relatively go up from the current position by Z200. but instead robot moves to X 0, Y 0, Z 400.

Code:
G90
G28 G91 Z0
G90
G0 X0. Y0. Z0.
G0 Y100.
X100.
Y0.
G28 G91 Z200.


So in my opinion generator ignores intermediate point X 100, Y 0, Z 200 and instead adds 200 to the Z of the home position and moves there.

Here is the example of expected behavior
[Image: g28-gcode.jpg]

Am I doing something wrong or it's expected behavior?
#2
The G28 command is the go home command in G-code. This could have different meanings depending on context and I would recommend you to not use this command as this command. This command is usually ignored by default in RoboDK. 

If you prefer to use the G28 command in RoboDK you can customize the behavior by following these steps:
  1. Select Tools-Options
  2. Select the CAM tab
  3. Locate the Go home command (G28) and select the option to Auto detect or the option Set value.
#3
Hi Albert, thanks for reply!

Ok, I'll try to change postprocessor in the CAM to avoid using G28 command.
  




Users browsing this thread:
1 Guest(s)