Skip to content

twinspindlekins: a mill-turn whose two spindles are two primary types - #4942

Open
grandixximo wants to merge 3 commits into
LinuxCNC:masterfrom
grandixximo:twinspindle
Open

grandixximo wants to merge 3 commits into
LinuxCNC:masterfrom
grandixximo:twinspindle

Conversation

@grandixximo

Copy link
Copy Markdown
Contributor

Split out of #4889 as Bertho asked; it needs the orienting axes that went in there.

twinspindlekins is a mill-turn: a head on X Y Z tilts the tool on B between a main spindle turning its part on C and a sub spindle facing it along Z, turning its part on W. Type 0 works in the main spindle's part frame and orients with C and B, type 1 in the sub spindle's part frame and orients with W and B. Both are primary, so G12.1 picks the spindle and the same program runs on either part. Type 2 is the identity and the machine frame.

The vismach sim configs/sim/axis/vismach/twinspindle drills a ring of tilted holes into the part in each spindle through one subroutine that names no rotary: G53.3 turns whichever pair the type in force orients with. The INI sets MACHINE_MOVES_IN_MACHINE_FRAME, as the five axis sims do.

Tests:

  • tests/kins-params checks both working types against realtime.
  • tests/twinspindle (new, for the new module) checks the orienting axes of each type, that the same tilted hole solves and is reached on either spindle with the tip on the hole and the tool along its axis, and that the demo program runs.

A head on X Y Z tilts the tool on B between a main spindle turning its
part on C and a sub spindle facing it along Z and turning its own part on
W, an ANGULAR axis.  Type 0 works in the frame of the main spindle's part
and orients the tool with C and B, type 1 in the frame of the sub
spindle's part, the main one turned half a turn about X so its Z too
points at the tool, and orients it with W and B; both are primary, so
G12.1 picks the spindle and a program reads the same on either part.
Type 2 is the identity and the machine frame.

Written as pure functions of the parameter block, with work and tool
frames and the orienting letters declared, so the interpreter solves the
tilted work plane on either spindle.  The joints read the gauge line with
B at 0 and the tool length goes along the tool, as on 5axiskins.

tests/kins-params checks both working types against realtime.
A vismach sim of twinspindlekins, the spindle line across the screen,
with a demo program that drills a ring of tilted holes into the part in
the main spindle and then into the part in the sub spindle through one
subroutine.  It names no rotary: G53.3 turns the ones the type in force
orients with, and the report reads them as #<_kins_orient_1> and
#<_kins_orient_2>, C and B on one spindle, W and B on the other, with
their angles as #<_orient_rot1> and #<_orient_rot2>.

tests/twinspindle checks the orienting axes of each type, that the same
tilted hole solves and is reached on either spindle, the tip on the hole
and the tool along its axis, and that the demo program runs.
Like the five axis sims: the INI sets MACHINE_MOVES_IN_MACHINE_FRAME with a comment, and the README says so, so G53 puts the slides in the same place on either spindle's type whatever the tool and the head angle. The demo program and tests/twinspindle (its own test.ini) use no G53, G28 or G30 off the machine frame type.
Comment on lines +3 to +4
net :jx joint.0.pos-fb twinspindlegui.jx
net :jy joint.1.pos-fb twinspindlegui.jy

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why nets with a :?

Comment thread tests/kins-params/test.sh
Comment on lines +107 to +110
# a table and a head, two primaries: one rotary turns the tool, so no
# pair, and that one names the pose
run "twinspindlekins coordinates=XYZBCW" \
"setp twinspindlekins.pivot-length 120

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding these to the same test will make it slower to run. The old version is already almost 9 seconds and adding to it will just make it slower.

Wouldn't it be better to split these tests so that they can run in parallel?

Comment on lines +16 to +17
PROGRAM = os.path.abspath("../../configs/sim/axis/vismach/twinspindle/twin-spindle-holes.ngc")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This cannot run on an installed system? How are you sure that you have access to this file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants