Hello Guest it is September 24, 2023, 02:49:58 AM

Author Topic: help with program issue  (Read 3327 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

Offline Graham Waterworth

  • *
  •  2,621 2,621
  • 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
  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)

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 ?