Lcnc 2.8 lathe. error after G10 L2 P0 R180

More
07 Jan 2021 20:54 #194414 by joekline9
Just converted a lathe from Lcnc 2.7 to Debian 10 buster linuxcnc 2.8.1.
after G10 L2 P0 R180 (rotate around Z for rear tool) the next X move gives error:
Linear move on line n would exceed Y's positive limit. / invalid parameters in linear command.

Axis displays as it should but I cant move X.
I can get same error in MDI:
G10 L2 P0 R180
G0 X1

Please Log in or Create an account to join the conversation.

More
08 Jan 2021 11:49 #194479 by cmorley
I don't think rotating around Z on a lathe was a use case anyone thought of.
I'm sure it's not tested for.

Please Log in or Create an account to join the conversation.

More
09 Jan 2021 02:14 #194557 by joekline9
I use it a lot for gang tooling where I have both front and back tools.
Axis displays thing like it should.

I tried running the lathe ngc file in 2.8.1 mill and it works fine.

Please Log in or Create an account to join the conversation.

More
09 Jan 2021 21:01 #194646 by cmorley
It sounds pretty cool - i have a lathe with toolchanger on both sides - it's error prone to use negative positions on the back.

My guess is the lack of Y axis. 2.8 had major changes to expand joints vrs axis.
IIRC linuxcnc used to build dummy axes for axes not being used - maybe tha has changed in 2.8
The following user(s) said Thank You: joekline9

Please Log in or Create an account to join the conversation.

More
10 Jan 2021 23:37 - 10 Jan 2021 23:37 #194812 by andypugh
It really shouldn't be even mentioning the Y axis.

It used to work, and it has been recommended on the forum for back-tool. So I think this is a bug and should be added to the issue tracker
Last edit: 10 Jan 2021 23:37 by andypugh.
The following user(s) said Thank You: joekline9

Please Log in or Create an account to join the conversation.

More
11 Jan 2021 23:39 - 12 Jan 2021 00:55 #194987 by dgarrett
Try configuring with:
[TRAJ]
COORDINATES = XYZ
...

Ignore the warning:
check_config: (trivkins kinematics) WARNING:
  INCONSISTENT coordinates specifications:
               trivkins coordinates=XZ
               [TRAJ]COORDINATES=XYZ

Attached is example sim config adapted from configs/sim/axis/lathe.ini
Attachments:
Last edit: 12 Jan 2021 00:55 by dgarrett.

Please Log in or Create an account to join the conversation.

More
12 Jan 2021 01:58 #194997 by joekline9
How do I ignore the warning?
I get an error screen when I try to run it.

Please Log in or Create an account to join the conversation.

More
12 Jan 2021 02:16 - 12 Jan 2021 02:17 #194998 by dgarrett
In my test there is a Warning (not an error ) to stdout (the terminal)
which you may ignore

If you have an error screen, you should tell us what the error message says
Last edit: 12 Jan 2021 02:17 by dgarrett.

Please Log in or Create an account to join the conversation.

More
12 Jan 2021 02:22 - 12 Jan 2021 02:24 #194999 by joekline9
check_config: (trivkins kinematics) WARNING:
INCONSISTENT coordinates specifications:
trivkins coordinates=XZ
[TRAJ]COORDINATES=XYZ
.
.
.
Debug file information:
setup_kins: cmd=loadrt trivkins coordinates=xz
Note: Using POSIX non-realtime
Pin 'J2_vel.out' does not exist
while executing
"hal net J2:vel <= J2_vel.out"
("eval" body line 1)
invoked from within
"eval hal net $args"
(procedure "net" line 1)
invoked from within
"net J$::SIM_LIB(jointidx,z):vel <= J$::SIM_LIB(jointidx,z)_vel.out"
invoked from within
"if $has_xyz {
loadrt hypot names=hyp_xy,hyp_xyz ;# vector velocities
addf hyp_xy servo-thread
addf hyp_xyz servo-thread
net J$::SIM_L..."
(procedure "make_ddts" line 34)
invoked from within
"make_ddts $number_of_joints"
(file "/usr/share/linuxcnc/hallib/basic_sim.tcl" line 55)
invoked from within
"source $filename"
invoked from within
"set result [source $filename]"
(file "/usr/bin/haltcl" line 42)
21495
Stopping realtime threads
Unloading hal components
Note: Using POSIX non-realtime
Last edit: 12 Jan 2021 02:24 by joekline9.

Please Log in or Create an account to join the conversation.

More
12 Jan 2021 02:27 #195000 by dgarrett
Pin 'J2_vel.out' does not exist
ok thanks, there was a mistake when i first loaded the example sim,
i fixed it and replaced the attachment bu you probably got the version before i corrected.

the error is fixed by the load for basic_sim.tcl in the ini file:
HALFILE = LIB:basic_sim.tcl -no_make_ddts

Please Log in or Create an account to join the conversation.

Time to create page: 0.153 seconds
Powered by Kunena Forum