Orient component revised

More
27 Nov 2020 08:11 #190407 by Serg452
Replied by Serg452 on topic Orient component revised

Hi you can you try with this edited version ?

with this, the hal spindle does not turn on at all

VEL_SPEED =

what is in this meaning? maximum spindle speed? or orientation speed?

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

More
27 Nov 2020 08:14 #190408 by Serg452
Replied by Serg452 on topic Orient component revised
What signal is the basis for activating the drive for index mark search? Homed?

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

More
27 Nov 2020 12:03 - 27 Nov 2020 13:19 #190427 by alkabal
Replied by alkabal on topic Orient component revised
VEL_SPEED = base speed cmd from orient

on my machine for orient i can ask 12rpm, this value is parsed to pid in and pid work from 0 to 80rpm

The spindle speed management need to be RPM

My spindle setup use limit2 from speed cmd to pid input with min max 3600rpm
Spindle pid and pwm/analog need to be configured accordingly to something like 0 to 3900rpm for scaling

So in this situation your spindle pid can work from 0 to 3900rpm, and the orient pid can only work from 0 to 80rpm but using the same scale pwm/analog (0/3900)


for other question about homing :

If you have linked this signal, the orient homing process start immediately after joint.2.homed is homed
net machinehomed <= joint.2.homed # or other one
net machinehomed => orient.orient-spindle.machine-is-homed
net machine.is-on => orient.orient-spindle.machine-is-on

Or homing is done automatically when you ask first spinlde move, or orient move

For me the first things to do is configure spindle for work in RPM with original output from spindle config
Second things to do is found value for pid allowing spindle to rotate very slowly and put this value in the orient ini
Third things make spindle working with the passthru orient process

after that i think you are more close to make it work
Last edit: 27 Nov 2020 13:19 by alkabal.

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

More
19 May 2021 00:13 #209427 by alkabal
Replied by alkabal on topic Orient component revised
Hi

I'm in the process to rewrite the code but i have some questions

What did you think ?

Is better to mix orient with the possibility to connect a C axis and in this way this is possible to use both command M19PxRxxx or G1CxxxFxxx.
This also add the possibility to jog spindle using internal pin for jog signals. (possible to use GUI or halui or MPG for jog)
I think in this way we can use internal pin for homing.
(this option add some trouble for use only 0>360>0)


Or is better to have Orient only by M19 and keep axis C free for other purpose ? (only possible to jog with external MPG, imo impossible from GUI without some pyvcp panel)
In this way the component manage all the stuff.

Br

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

More
19 May 2021 21:43 #209550 by andypugh
Replied by andypugh on topic Orient component revised
M19 is typically intended of a one-time orient (I think) whereas a C-axis would be intended to be used for continuous machining ops.

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

More
19 May 2021 22:06 - 19 May 2021 22:10 #209554 by alkabal
Replied by alkabal on topic Orient component revised
Thanks for reply

I'm not sure that help me for choose the best direction lool

extending the component for C axis add more complication than excepted
-need to study WRAPPED_ROTARY
-homing process with ini value set all to 0 does not trigger the pin joint.4.homing and with ini value add more problem.
-the C axis can be asked to move even with spindle rotating and i does not found other way than comparing actual angle vs C axis position for replacing missing enable signal
    if (axis_c_angle != angle_scaled_out){ena_from_axis_c = 1;} else {ena_from_axis_c = 0;}       // Fake C axis
-etc etc

So the best question is possibly : Did you see any application for a C axis using a standard spindle motor driven by analog/pwm that i think is always slow and torque less ?
Last edit: 19 May 2021 22:10 by alkabal.

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

More
19 May 2021 22:15 #209558 by alkabal
Replied by alkabal on topic Orient component revised
work in progress code with fake C axis management as beta state
Attachments:

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

More
19 May 2021 22:51 #209572 by andypugh
Replied by andypugh on topic Orient component revised

I'm not sure that help me for choose the best direction lool


I have been trying to help someone set up a spindle / C-axis config for weeks, and we still are not there. Partly because I tried to keep it simple. It is still simple, but I am not sure it will ever work.
The idea there was to index-reset when the mode switches, which feels like a good idea. Now it has become a C-axis rehome when the mode switches.

forum.linuxcnc.org/10-advanced-configura...mmand?start=0#205266

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

More
19 May 2021 23:20 - 19 May 2021 23:22 #209580 by alkabal
Replied by alkabal on topic Orient component revised
I think my setup is near that you try with this man.

Spindle component for ramp up and ramp down before stop and ramp down before changing direction

Orient with jog mode and homing facility

I do not need to reset index when i switch mode because i do first a homing spindle with always the same speed, so the index position stay allways the same.
Last edit: 19 May 2021 23:22 by alkabal.

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

More
20 May 2021 22:32 #209703 by andypugh
Replied by andypugh on topic Orient component revised
One problem with the existing component is that if the input angle changes after enable, then the output angle does not change. Which means that it works for a one-time orient, but not to turn a spindle into an axis.

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

Time to create page: 0.095 seconds
Powered by Kunena Forum