- Posts: 3981
- Thank you received: 994
Need a HELP on G-Code
- BigJohnT
- Offline
- Administrator
-
Less
More
10 years 5 months ago #74875
by BigJohnT
Replied by BigJohnT on topic Need a HELP on G-Code
From the first few lines of train.py
JT
train.py does not take any arguments."""Usage:
python train.py
JT
Please Log in or Create an account to join the conversation.
- jstoquica
- Offline
- Premium Member
-
Less
More
- Posts: 117
- Thank you received: 8
10 years 5 months ago #74883
by jstoquica
Replied by jstoquica on topic Need a HELP on G-Code
Hi John,
Thanks for the reply.
Then, How can I see or generate the output file of that script?
Thanks.
Thanks for the reply.
Then, How can I see or generate the output file of that script?
Code:
h = hal.component("train")
h.newpin ("record", hal.HAL_BIT, hal.HAL_IN)
outfile = "train.ngc"
h.ready()
try:
while 1:
if h["record"] == 1:
f = open(outfile, 'a')
pos = get_cart()
f.write(pos)
f.close()
Thanks.
Please Log in or Create an account to join the conversation.
- thefabricator03
- Visitor
-
7 years 1 month ago #145311
by thefabricator03
Replied by thefabricator03 on topic Need a HELP on G-Code
SKH,
This might be a long shot since this thread is thee years old but do you have any more pictures of you robotic arm? It is a very interesting design.
This might be a long shot since this thread is thee years old but do you have any more pictures of you robotic arm? It is a very interesting design.
Please Log in or Create an account to join the conversation.
Time to create page: 0.584 seconds