Hello Guest it is April 25, 2024, 06:30:03 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - bob1

Pages: 1
1
Hello all!

First a littel introduction of myself. I´m a student at a technical school in Germany.
At the moment I´m building a CNC plasma-router, running with mach3.

I want to write a macro that should automatically set the right hight from the sheet metal.

For this application I need to code something that will stop the movement of the Z-axis when a Input Signal is active.

I wanted to try something like that:

Code: [Select]
Input = IsActive(INPUT1)

If Not (IsActive(Input)) Then
Code "G1Z-20F100"                 "Z-Axis is moving a in Z - to touch down on the sheet an trigger the sensor"
While isMoving()
Sleep 100
Wend
Else
DoOEMButton(1003)                   "I wanted to stop the Axis moving with that, but this seems to be wrong in that way!"
End If


This code doesn´t work for me ( Unfortunately, I dont have a big idea about basic  :(  )

So I just want to stop an Axis movment by an Sensor.
Can anybody help me with that problem?

Thank you in advance!

Greets
Bob

P.S. Sorry if there are to much mistakes in my speech  ;D

Pages: 1