Analg control

More
23 Sep 2009 19:37 #858 by Deotti
Analg control was created by Deotti
I need to control an float value to link in analog pin
each line g code program a need set one value
i already did it using an m100, but every time that
i use it, the motion axis pauses. In my machine pause
motion is unacceptable, i am using g64.
Someone know how can i do it ?

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

More
25 Sep 2009 13:18 #866 by Dave911
Replied by Dave911 on topic Re:Analg control
I don't think I understand your question entirely... you want to change an analog value each time you execute a line or block of G code? Are you using a spindle? If not I think you could simply change the S word and link the S word to an analog output. That should not stop motion. G64 - I believe that is profiling mode - or more or less constant velocity mode...

Dave

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

More
28 Sep 2009 17:07 #881 by Deotti
Replied by Deotti on topic Re:Analg control
Tanks, Dave !

All right you did understood my question it's what i want to do.
But i already linked spindle, but every time then a change S word value, it causes motion stop, same using g64.

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

More
29 Sep 2009 13:35 #890 by Dave911
Replied by Dave911 on topic Re:Analg control
I did some testing here and I am seeing the same thing. Even with G64 P0.1 and moving in a straight line - whenever
the Gcode sees a S word, it does an exact stop on the motion before continuing.
I don't know what to tell you. Looks like the S output will not work for you.
You might want to ask this same question on the IRC chat channel. The developers seem to hang out there a lot!

Dave

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

More
29 Sep 2009 17:32 #895 by robh
Replied by robh on topic Re:Analg control
how about a custom Mcode and write a float or S32 value into a HAL pin and do something with it,
Manuals will have info for this

then just call the Mcode each time u need it, pass a value in the Mcode call i believe this is doable.

robert

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

More
29 Sep 2009 18:05 #896 by Dave911
Replied by Dave911 on topic Re:Analg control
I'm pretty sure that I read that motion is stopped when M codes execute. Hence the attempt at using the Sword

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

More
29 Sep 2009 20:35 #897 by micges
Replied by micges on topic Re:Analg control
Ability to set analog output syncronized with motion will be in emc 2.4.0, now it's partly done in development branch but doesn't work yet.

Solution for now:
1. add axis (let see V), set it's max acc and max vel to 1e99
2. looped it in hal (like in sim configs) and connect that loop to signal you want to control
3. if you had gcode 'G1 X100 Y100 Z200' now you have 'G1 X100 Y100 Z200 V123' - position of V will be immadietly set to 123 on begin of move

regards
Michael

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

Time to create page: 0.092 seconds
Powered by Kunena Forum