All sample files using Axis 2.7.1 fail
- midlandman
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
10 Jan 2020 16:29 #154558
by midlandman
All sample files using Axis 2.7.1 fail was created by midlandman
The program loads okay, I am using Linux, Ubuntu 18.04.
However when I try and load the sample files I get one of two messages and no image appears.
First error is "bad character 'y' used"
The other error is "No semicolon or file end found:
In each case the file is loaded but doesn't show up in the right hand window.
I am just starting to learn to use this and cannot get anywhere whatsoever.
Any hints would be great.
I tried writing my own piece here:
circle.ngc
G17 G20 G90 G94 G54
G0 Z0.25
X-0.5 Y0.
Z0.1
G01 Z0. F5.
G02 X0. Y0.5 I0.5 J0. F2.5
X0.5 Y0. I0. J-0.5
X0. Y-0.5 I-0.5 J0.
X-0.5 Y0. I0. J0.5
G01 Z0.1 F5.
G00 X0. Y0. Z0.25
I get the "bad character 'y' used" near line four error and the image doesn't load.
I have searched the forums and can find nothing that is in particular making sense.
However when I try and load the sample files I get one of two messages and no image appears.
First error is "bad character 'y' used"
The other error is "No semicolon or file end found:
In each case the file is loaded but doesn't show up in the right hand window.
I am just starting to learn to use this and cannot get anywhere whatsoever.
Any hints would be great.
I tried writing my own piece here:
circle.ngc
G17 G20 G90 G94 G54
G0 Z0.25
X-0.5 Y0.
Z0.1
G01 Z0. F5.
G02 X0. Y0.5 I0.5 J0. F2.5
X0.5 Y0. I0. J-0.5
X0. Y-0.5 I-0.5 J0.
X-0.5 Y0. I0. J0.5
G01 Z0.1 F5.
G00 X0. Y0. Z0.25
I get the "bad character 'y' used" near line four error and the image doesn't load.
I have searched the forums and can find nothing that is in particular making sense.
Attachments:
Please Log in or Create an account to join the conversation.
10 Jan 2020 17:45 #154564
by Clive S
Replied by Clive S on topic All sample files using Axis 2.7.1 fail
you have a . after the Y0
You need a file end like M2
linuxcnc.org/docs/html/gcode/m-code.html#mcode:m2-m30
You need a file end like M2
linuxcnc.org/docs/html/gcode/m-code.html#mcode:m2-m30
The following user(s) said Thank You: midlandman
Please Log in or Create an account to join the conversation.
10 Jan 2020 20:55 #154579
by andypugh
Replied by andypugh on topic All sample files using Axis 2.7.1 fail
Is it possible that you have a lathe setup? A Y axis in G-code loaded by a lathe config will be an error.
Please Log in or Create an account to join the conversation.
- midlandman
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
11 Jan 2020 17:24 #154626
by midlandman
Replied by midlandman on topic All sample files using Axis 2.7.1 fail
I get numerous errors using the sample files. I think it could be that the setup I select is incompatible with the files I load. Even files I write myself have problems that I am unable to solve.
However I am doing as much reading as possible. I chose the lathe once and of course I got errors loading a program the followed a circle and also diffculties from examples in the various forums. And some errors I just don't understand. i.e
Unknown control command command in o word and there is no o word present in the code, and should be quite simple:
Here is the code:
O1000
T1 M6
(Linear / Feed - Absolute)
G0 G90 G40 G21 G17 G94 G80
G54 X-75 Y-75 S500 M3 (Position 6)
G43 Z100 H1
Z5
G1 Z-20 F100
X-40 (Position 1)
Y40 M8 (Position 2)
X40 (Position 3)
Y-40 (Position 4)
X-75 (Position 5)
Y-75 (Position 6)
G0 Z100
M30
M2
However I am doing as much reading as possible. I chose the lathe once and of course I got errors loading a program the followed a circle and also diffculties from examples in the various forums. And some errors I just don't understand. i.e
Unknown control command command in o word and there is no o word present in the code, and should be quite simple:
Here is the code:
O1000
T1 M6
(Linear / Feed - Absolute)
G0 G90 G40 G21 G17 G94 G80
G54 X-75 Y-75 S500 M3 (Position 6)
G43 Z100 H1
Z5
G1 Z-20 F100
X-40 (Position 1)
Y40 M8 (Position 2)
X40 (Position 3)
Y-40 (Position 4)
X-75 (Position 5)
Y-75 (Position 6)
G0 Z100
M30
M2
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 4965
- Thank you received: 1370
11 Jan 2020 19:58 #154635
by Todd Zuercher
Replied by Todd Zuercher on topic All sample files using Axis 2.7.1 fail
That looks like a gcode file written for a Fanuc control. Linuxcnc does not use an o number line for program id like Fanuc. So Linuxcnc sees it as an o command. If you remove the o1000 at the start,it should run ok. Read the section in the docs about O-codes for more info. linuxcnc.org/docs/html/gcode/o-code.html
The following user(s) said Thank You: midlandman
Please Log in or Create an account to join the conversation.
Time to create page: 0.075 seconds