- Posts: 19311
- Thank you received: 4655
G-code to engrave numbers on cylinders
- andypugh
- Topic Author
- Offline
- Moderator
-
I wrote this G-code to engrave angles on a lathe part. It might be handy for other things. It uses a sub for each digit, then computed-calls to call the right one.
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
-
- Posts: 3410
- Thank you received: 994
JT
Please Log in or Create an account to join the conversation.
- andypugh
- Topic Author
- Offline
- Moderator
-
- Posts: 19311
- Thank you received: 4655
Please Log in or Create an account to join the conversation.
- Kirk_Wallace
- Offline
- New Member
-
- Posts: 19
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- andypugh
- Topic Author
- Offline
- Moderator
-
- Posts: 19311
- Thank you received: 4655
Kirk_Wallace wrote: If it is convenient, could you let me know if you there are any configuration or other changes I should look at?
I just tried it in the stock sim/axis-9-axis config and it was as you describe.
I changed GEOMETRY to ABCXYZYVW and then on restart the display looked as-shown in the picture above.
Please Log in or Create an account to join the conversation.
- Kirk_Wallace
- Offline
- New Member
-
- Posts: 19
- Thank you received: 0
[TRAJ]
AXES = 9
COORDINATES = A B C X Y Z U V W
HOME = 0 0 0 0 0 0 0 0 0
LINEAR_UNITS = inch
ANGULAR_UNITS = degree
CYCLE_TIME = 0.010
DEFAULT_VELOCITY = 1.0
DEFAULT_ANGULAR_VELOCITY = 45.0
POSITION_FILE = position9.txt
MAX_LINEAR_VELOCITY = 1.2
MAX_ANGULAR_VELOCITY = 90.0
No joy. (using LinuxCNC 2.6.5 on Wheezy)
Please Log in or Create an account to join the conversation.
- andypugh
- Topic Author
- Offline
- Moderator
-
- Posts: 19311
- Thank you received: 4655
Kirk_Wallace wrote: Crud, I tried:
[TRAJ]
AXES = 9
COORDINATES = A B C X Y Z U V W
[DISPLAY] GEOMETRY not [TRAJ] COORDINATES
Please Log in or Create an account to join the conversation.
- Kirk_Wallace
- Offline
- New Member
-
- Posts: 19
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- Smokeys
- Offline
- New Member
-
- Posts: 3
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- andypugh
- Topic Author
- Offline
- Moderator
-
- Posts: 19311
- Thank you received: 4655
I guess it might be possible have subs for each ASCII code, but I don't know how one would pass the strings to the G-code.
Please Log in or Create an account to join the conversation.