MDI question how to

Hello
So I rarely need to use the mdi function.
In 3 years I used it 2 times with a single line just to test…
but today I will need to use it.

a question
where you enter the MDI…lets say
Block? G1 Y3 F10

you hit cycle start and it will perform the movement…

but if you have like multiple lines that need to be executed, how do you need to enter this?

Let say…to perform all in one go instead of one by one each time…

G1 Y3 F10
G1 Y2 F10
G1 X2 F10


Thanks!

Are you on Mach or EX?

I have the Ex controller.

Ok, so there are two easy ways to do those commands, just type them in one after another in MDI and press Cycle Start after each one.

If you do it that way you’ll stay in MDI so you can put them in and just keep clicking Cycle Start.

Another way is to just make a text text file with those three commands and load it like any other G code file.

With that file loaded you can press cycle start to run it. If you click on EDIT on the bottom with the file loaded you can edit it while it’s open and re-run it.

I should have asked in the beginning… what are you actually trying to do here?

I want to move the machine in a linear motion back and forward x amount of time with the spindle at e certain speed.

I need to brush some items and I want the machine to do it.

Tnx

The text file approach would work well. You could do something like this:

G53 Z0 (moves Z all the way to the top)
M3 S10000 (turns spindle on at 10k RPM)

Z1 F100 (moves to Z1 at a feedrate of 100 IPM)
X12 F100 (moves to X 12 at a feedrate of 100 IPM)
X0 F11 (moves to X 0 at a feedrate of 100IPM
G53 Z0 (moves back up to safe Z)

Now if you wanted this repeat over and over again until you press cycle stop you could do this:

G53 Z0 (moves Z all the way to the top)
M3 S10000 (turns spindle on at 10k RPM)

N10 (line 10)

Z1 F100 (moves to Z1 at a feedrate of 100 IPM)
X12 F100 (moves to X 12 at a feedrate of 100 IPM)
X0 F11 (moves to X 0 at a feedrate of 100IPM
G53 Z0 (moves back up to safe Z)

GOTO 10 (goes to line 10)

This would repeat your move over and over again until you hit cycle stop.

Does that work for you?

Thanks I am going to try it out later today…

So in the MDI you can only do single line commands?

You can do multiple commands in MDI, but one line at a time. That’s why i suggested creating a text file.