Setpoint Mcode

More
6 years 5 months ago #169411 by lorisdag
Setpoint Mcode was created by lorisdag
hi after a long time here I am, I'm building a new machine and need to do the setpoint from M code inside the program I tried in different ways but it doesn't work someone has already done this function?

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

More
6 years 5 months ago - 6 years 5 months ago #169441 by Aciera
Replied by Aciera on topic Setpoint Mcode
I'm not sure I understand what you are trying to do when you say:

do the setpoint from M code inside the program

What kind of "setpoint" are you referring to?
Last edit: 6 years 5 months ago by Aciera.

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

More
6 years 5 months ago #169442 by tommylight
Replied by tommylight on topic Setpoint Mcode

Aciera wrote: I'm not sure I understand what you are trying to do when you say:

do the setpoint from M code inside the program

What kind of "setpoint" are you referring to?

+1

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

More
6 years 5 months ago #169479 by lorisdag
Replied by lorisdag on topic Setpoint Mcode
hello the new machine works with the piece moving on the x-axis above a tape with a laser sensor I have to setpoint each program but I can't write an M code that does this. An example is on youtube " brema vector "

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

More
6 years 5 months ago - 6 years 5 months ago #169482 by Aciera
Replied by Aciera on topic Setpoint Mcode
So you are loading the piece with the conveyor belt and want to set the X-axis to zero as a reference point when the work piece triggers the laser sensor ?

When you say you want to "setpoint using an Mcode in the program" do you mean you want to set the x-axis in your part's Gcode or automatically do it through HAL when LinuxCNC is running? If you load one part at a time and wait until that part has finished I don't see a need to do it as an M-command in the Gcode.

What kind of control hardware do you use (e.g. MESA)?
Last edit: 6 years 5 months ago by Aciera. Reason: More questions
The following user(s) said Thank You: tommylight

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

More
6 years 5 months ago #169486 by rodw
Replied by rodw on topic Setpoint Mcode
Your requirements are very vague. You could use offsets and coordinate systems to save a position.
You could also pass values from gcode to Hal via M67/M68.

Please be specific.

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

Time to create page: 0.200 seconds
Powered by Kunena Forum