Orient component revised

More
20 May 2021 22:44 - 20 May 2021 22:56 #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: 20 May 2021 22:56 by alkabal.

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

More
20 May 2021 22:59 - 20 May 2021 23:10 #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 :
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: 20 May 2021 23:10 by alkabal.

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

More
21 May 2021 01:23 - 21 May 2021 02:40 #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: 21 May 2021 02:40 by alkabal.

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

More
31 May 2021 22:42 - 31 May 2021 23:02 #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: 31 May 2021 23:02 by alkabal.

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

More
01 Jun 2021 01:36 - 02 Jun 2021 11:56 #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: 02 Jun 2021 11:56 by alkabal.

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

More
02 Jun 2021 11:32 #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.

More
02 Jun 2021 11:56 #210991 by alkabal
Replied by alkabal on topic Orient component revised
Oh you are right, i appologize and dont know what is happened.

herer you have the good one
Attachments:

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

More
02 Jun 2021 21:57 #211032 by jpg
Replied by jpg 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




Bonsoir Alkabal , personnellement, très intéressé au contraire ! ,et je pense ne pas être seul ;-) mais j'avoue être un peu perdu... j essaie de suivre aussi ce poste-ci avec Andy:
forum.linuxcnc.org/10-advanced-configura...op-command?start=140
qui ressemble au votre.. j ai des tas de questions et comme vous êtes français , ça serait plus facile de se comprendre , je vous ai envoyé une invitation pour pouvoir vous contacter si vous souhaitez

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

More
02 Jun 2021 22:22 - 02 Jun 2021 22:23 #211034 by alkabal
Replied by alkabal on topic Orient component revised
Bonjour

Je ne crois pas qu'il y'est de MP sur ce forum.

J'ai apercut votre intervention sur le topic en question et malheureusement il y'a une difference fondamentale entre les deux cas, en effet le travail d'andy sur ce topic est fait pour un moteur de broche servo/stepper alors que dans mon cas le code pour l'orientation est fait pour un moteur standard piloté par un controleur utilisant un signal PWM ou analogique controllant la velocité.

Je n'est pas bien compris quel est votre type de moteur ?
Last edit: 02 Jun 2021 22:23 by alkabal.

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

More
03 Jun 2021 05:19 #211057 by jpg
Replied by jpg on topic Orient component revised
Bonjour , ma configuration est celle -ci;

le moteur de broche est un moteur asynchrone de 5.5 kw relie a un VDF ATIVAR 31

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

Time to create page: 0.087 seconds
Powered by Kunena Forum