Move the machine during operation

More
03 Aug 2011 10:12 - 03 Aug 2011 10:14 #12149 by dzarek
Welcome
How to do that, during operation of the machine was a possibility of manual adjustment of the position of the axis.
Ideally, this could be to use two inputs lpt port.
Thank you in advance
Jarek



// my English is poor, so how something is unclear, please ask :)
Last edit: 03 Aug 2011 10:14 by dzarek.

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

More
03 Aug 2011 11:47 #12151 by andypugh
I can't think of any very satisfactory ways.

You could use a PyVCP panel with spinboxes wired in HAL to an "offset" module between the axis commands and the stepgen input.
(That is going to need some explanation)
www.linuxcnc.org/docview/html/hal_basic_hal.html
www.linuxcnc.org/docview/html/hal_pyvcp.html
www.linuxcnc.org/docview/html/man/man9/offset.9.html

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

More
03 Aug 2011 13:30 #12156 by BigJohnT
Can you elaborate a bit on what your trying to do?

John

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

More
03 Aug 2011 15:12 #12159 by dzarek
I need up and down buttons to my plotter.
PgUp and PgDn keys do not work during the program, and these buttons must work
whether it is somehow easy to do in modula HAL?
I see the whole system this way:
button -> lpt in -> HAL -> EMC2 -> motor driver

I do not want to control the driver parallel to the EMC2 using a rectangle generator, because I want to EMC know the actual location of the Z-axis

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

More
03 Aug 2011 22:00 #12162 by BigJohnT
I don't think that is possible with EMC. I wrote an UpDown comp for a torch height control but I had to hijack the position command and lie about the actual position so EMC would not fault out.

If you don't mind what purpose would this serve?

John

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

More
04 Aug 2011 05:39 #12168 by dzarek
Not good, not good...
I need a system for the correction of the tool while cutting.
I looked through schemes included in the wiki and that is why I thought that it can be done, as I wrote in my previous post.

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

More
06 Aug 2011 18:53 #12256 by andypugh
dzarek wrote:

I need a system for the correction of the tool while cutting.

This is a little harder than you might expect, because EMC2 works out the moves ahead of time, often the whole program will be pre-calculated. That means that you can't change the calculated positions once the program is running.
However, you can add controllable offsets to the position values before they are sent to the motion control functions (eg, to the input of a step generator function, or a PID controller function)
It would also be possible to add the offsets in during the kinematics calculations, which is where the X,Y,Z positions get converted into actuator positions. This would require a special kinematics program to be written and compiled. This isn't particularly difficult if you are a C programmer, but is if you are not.

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

More
09 Aug 2011 08:55 #12324 by dzarek
I program in C, but not computers: /
And may have the option to control the up and down without changing the value in the machine using ClassicLadder and HAL ???
Eventually end up on the fact that I'll do a simple layout with uP, pinned to the controller in parallel to the PC...

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

More
09 Aug 2011 09:11 #12325 by btvpimill
Is this for a stepper setup or servo? It would be not so hard to inject steps if it's a stepper since Emc doesn't know where the machine is anyway. If it's for a servo, well hmmmm.

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

More
09 Aug 2011 10:41 #12328 by dzarek
ehhh, I have stepper drivers :/

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

Time to create page: 0.092 seconds
Powered by Kunena Forum