G38.2 example
- Abdulkareem
- Offline
- Senior Member
Less
More
- Posts: 62
- Thank you received: 1
25 Apr 2024 11:12 - 25 Apr 2024 11:13 #299062
by Abdulkareem
G38.2 example was created by Abdulkareem
in the linuxcnc documentation this example of gcode is provided
G49
G38.2 Z-100 F100
#<zworkoffset> = [#[5203 + #5220 * 20] + #5213 * #5210]
G10 L1 P#5400 Z#<zworkoffset> (set new tool offset)
G43
i want to understand this equation #<zworkoffset> = [#[5203 + #5220 * 20] + #5213 * #5210].
any help is appreciated
G49
G38.2 Z-100 F100
#<zworkoffset> = [#[5203 + #5220 * 20] + #5213 * #5210]
G10 L1 P#5400 Z#<zworkoffset> (set new tool offset)
G43
i want to understand this equation #<zworkoffset> = [#[5203 + #5220 * 20] + #5213 * #5210].
any help is appreciated
Last edit: 25 Apr 2024 11:13 by Abdulkareem.
Please Log in or Create an account to join the conversation.
- Aciera
- Online
- Administrator
Less
More
- Posts: 3996
- Thank you received: 1727
25 Apr 2024 12:02 #299064
by Aciera
Replied by Aciera on topic G38.2 example
#[5203 + #5220 * 20] This is the value of the z offset of the currently active work offset system
Note: the offset value registers of all the work offset systems [1..9] are 20 registers apart.
+ #5213 * #5210] This adds the z offset of 52/G92 if it is applied, if it is not applied the product is equal to zero
See numbered parameters:
linuxcnc.org/docs/html/gcode/overview.ht...:numbered-parameters
Note: the offset value registers of all the work offset systems [1..9] are 20 registers apart.
+ #5213 * #5210] This adds the z offset of 52/G92 if it is applied, if it is not applied the product is equal to zero
See numbered parameters:
linuxcnc.org/docs/html/gcode/overview.ht...:numbered-parameters
Please Log in or Create an account to join the conversation.
Time to create page: 0.049 seconds