Hello Guest it is October 16, 2019, 06:28:03 AM

Author Topic: help with program issue  (Read 2467 times)

0 Members and 1 Guest are viewing this topic.

help with program issue
« on: April 04, 2010, 12:11:36 PM »
I have a toggle clamp (manually closed and air actuated (cylinder) to open) with a prox switch on it that activates when clamp goes to open position. How do I use the input from the prox switch to prevent the program from continuing unless the clamp is open? I am using M8 with a 1 sec. delay and M9 to energize the solenoid that opens the clamp. The program (simpilfied) is something like this:
G0G90 G54 X1Y1
X1.5Y1.5F10
M8M9
X2Y2
M30

Offline Graham Waterworth

*
  • *
  •  1,888 1,888
  • Yorkshire Dales, England
    • View Profile
Re: help with program issue
« Reply #1 on: April 04, 2010, 02:55:29 PM »
In your macro you can check the input with something like this

If IsActive(Input1) Then
  msg("Clamped")
Else
  Code "M30"
End If

Or if this is something that needs to happen all the time then you can add it to the Cycle Start button script.

If IsActive(Input1) Then DoButton (0)

Graham
Without engineers the world stops
Re: help with program issue
« Reply #2 on: April 04, 2010, 03:17:50 PM »
Thanks Graham for your help. I am somewhat new at this and have no idea how to work with a macro. Can you give me some direction ?
Thanks,
Charlie