Lcnc 2.8 lathe. error after G10 L2 P0 R180

  • joekline9
  • joekline9's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
12 Jan 2021 02:39 #195001 by joekline9
Replied by joekline9 on topic Lcnc 2.8 lathe. error after G10 L2 P0 R180
Run from a terminal after adding [TRAJ]COORDINATES=XYZ:
joe@joes-desk:~$ linuxcnc ~/linuxcnc/configs/sim.axis/lathe.ini
LINUXCNC - 2.8.0
Machine configuration directory is '/home/joe/linuxcnc/configs/sim.axis'
Machine configuration file is 'lathe.ini'

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

Starting LinuxCNC...
Found file(LIB): /usr/share/linuxcnc/hallib/basic_sim.tcl
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)
Shutting down and cleaning up LinuxCNC...
Note: Using POSIX non-realtime
LinuxCNC terminated with an error. You can find more information in the log:
/home/joe/linuxcnc_debug.txt
and
/home/joe/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
joe@joes-desk:~$

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

More
12 Jan 2021 02:47 - 12 Jan 2021 02:51 #195004 by dgarrett
Replied by dgarrett on topic Lcnc 2.8 lathe. error after G10 L2 P0 R180

$ linuxcnc ~/linuxcnc/configs/sim.axis/lathe.ini

that file is modified in the attachment for post 194987
please run the sim config attached in that post:
forum.linuxcnc.org/38-general-linuxcnc-q...10-l2-p0-r180#194987

make sure it contains the corrected line
HALFILE = LIB:basic_sim.tcl -no_make_ddts
Last edit: 12 Jan 2021 02:51 by dgarrett. Reason: post with attachment is 194987

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

  • joekline9
  • joekline9's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
12 Jan 2021 02:59 #195006 by joekline9
Replied by joekline9 on topic Lcnc 2.8 lathe. error after G10 L2 P0 R180
OK. that makes it work on sim. Will it also work on the actual machine?
Thanks

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

More
12 Jan 2021 03:04 - 12 Jan 2021 03:09 #195007 by dgarrett
Replied by dgarrett on topic Lcnc 2.8 lathe. error after G10 L2 P0 R180

Will it also work on the actual machine?


Using [TRAJ]COORDINATES=XYZ should work but you are in a much better position to answer than i

(the -no_make_ddts is applicable for the modified sim, you didn't post a config to
examine for other issues)
Last edit: 12 Jan 2021 03:09 by dgarrett.

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

  • joekline9
  • joekline9's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
12 Jan 2021 15:32 #195069 by joekline9
Replied by joekline9 on topic Lcnc 2.8 lathe. error after G10 L2 P0 R180
Yes it does work on the actual lathe.

I put "-no_make_ddts" after the main hal file.
HALFILE = Joes-Lathe-5i25.hal -no_make_ddts
and
[TRAJ]
COORDINATES=XYZ
Axis shows a Y but it is always 0.0. No problem.
Thanks

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

More
12 Jan 2021 16:26 - 12 Jan 2021 16:32 #195081 by dgarrett
Replied by dgarrett on topic Lcnc 2.8 lathe. error after G10 L2 P0 R180
the -no_make_ddts is only used by the basic_sim utility so
it is doubtful that it does anything in a hardware-based halfile

I looked into a system-wide remedy but it would be pretty invasive
as it must change overall assumptions about the initialization of
limits for unused axis letters. The behavior for lathes in 2.7 relied on
specifying an unused y axis letter so using [TRAJ]COORDINATES=XYZ
doesn't change any system-wide assumptions and has minimal
side effects (like the display of unused y as noted)

thanks for reporting and testing
Last edit: 12 Jan 2021 16:32 by dgarrett.

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

Time to create page: 0.068 seconds
Powered by Kunena Forum