Orient component revised

More
5 years 5 months ago - 5 years 5 months ago #209705 by alkabal
Replied by alkabal on topic Orient component revised
with my revised one if you call other angle from M19 before position reached the new angle is immediately applied, same for jog.
we can't ask multiple angle excepted if you wait the first angle is reached before ask other one.


Using C axis each time i stop spindle or after other move : the spindle try to return to the last C angle (i like to found a way for prevent this)
I have not tested what append if i call multiple C angle but imo that need more work in the orientv2.comp
Last edit: 5 years 5 months ago by alkabal.

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

More
5 years 5 months ago - 5 years 5 months ago #209706 by alkabal
Replied by alkabal on topic Orient component revised
I like the idea to create a sim config but i'm unsure is sim_spindle.comp is enough, i have never use sim personal sim config

I think i need this as simulated :
Code:
net spindle-index-enable <=> [HMOT](CARD0).encoder.00.index-enable net spindle-pos <= [HMOT](CARD0).encoder.00.position net spindle-vel-rps-raw <= [HMOT](CARD0).encoder.00.velocity # speed as RPS net spindle-vel-rpm-raw <= [HMOT](CARD0).encoder.00.velocity-rpm
Last edit: 5 years 5 months ago by alkabal.

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

More
5 years 5 months ago - 5 years 5 months ago #209714 by alkabal
Replied by alkabal on topic Orient component revised
At the end config sim work without emulated velocity this is crazy !

Unfortunately not all the stuff can be tested without velocity and after a moment i get pid saturated error.

Edit found the sim_encoder that work very fine !!!!:)
Last edit: 5 years 5 months ago by alkabal.

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

More
5 years 5 months ago - 5 years 5 months ago #210829 by alkabal
Replied by alkabal on topic Orient component revised
Hi

Any help welcome for write logic for use spindle vfd as C axis, for now i'm unsure about the correct behavior.
(For the moment i can only use sim config and it's more hard to understand what append.)

Also i like to have more detail about how is managed :

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.

Last edit: 5 years 5 months ago by alkabal.

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

More
5 years 5 months ago - 5 years 5 months ago #210843 by alkabal
Replied by alkabal on topic Orient component revised
sim config

Homing spindle work fine from all situation (excepted from jog wheel)
M19 work fine
Velocity mode work fine
jog mode work fine (can use built in orient jog mode or use axis C built in jog (need to edit hal))


Axis C mode need more work
Need to found a way for stop homing spindle if we push the gui spindle stop button

ps : Jog wheel need machine homed for working


I understand if nobody is interested lol but if someone like to test and review this is wonderful


You need to compile both component
sudo halcompile --install /home/my_Lathe_and_Mill/spinload.comp
sudo halcompile --install /home/my_Lathe_and_Mill/orientv2.comp
Last edit: 5 years 5 months ago by alkabal.

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

More
5 years 5 months ago #210988 by 0x2102
Replied by 0x2102 on topic Orient component revised
Hi alkabal,

thanks for your work here. I have download the attached "my_Lathe_and_Mill_sim.zip" file but it seems to contain only 1 file "LatheMacro.svg".

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

Time to create page: 0.103 seconds
Powered by Kunena Forum