Hello Guest it is November 29, 2021, 10:21:58 AM

Author Topic: Reaction time IsActive(INPUT)  (Read 2346 times)

0 Members and 1 Guest are viewing this topic.

Reaction time IsActive(INPUT)
« on: June 09, 2012, 05:02:52 AM »
Hi,

I am trying to get my M6Start.m1s macro to home at tool #1.

I am using these lines to have the macro look at INPUT1 (port 1, pin 13)

Code "G00 A360"                        'Rotate the ATC
While Not IsActive(INPUT1)       ' Look for ATC Home pulse
 Wend               'Input #1 must be active now

However INPUT1 LED lights up but no reaction. The ATC keeps on turning.

What is happening? Is the input pulse too short?

Any help would be greatly appreciated.

Jos
Holland

Offline BR549

*
  •  6,952 6,952
    • View Profile
Re: Reaction time IsActive(INPUT)
« Reply #1 on: June 09, 2012, 12:03:10 PM »
The G0 A360 command will cause the Axis to rotate to either A360 or cause it to rotate 360 degrees depending on if you are in abs or inc mode.

Nothing in your Macro will stop it from running to completion.


IF you want it to REF HOME to the switch use

Code"G28 A0.000" it will move to the switch then back off the switch untill it remakes.

(;-) TP
« Last Edit: June 09, 2012, 12:06:22 PM by BR549 »
Re: Reaction time IsActive(INPUT)
« Reply #2 on: June 09, 2012, 01:08:14 PM »

@ TP,

I found that too, later I used G00 A10

Thanks for your code, I'll give that a try tomorrow.

This macro stuff is very difficult.

Jos
Holland
The G0 A360 command will cause the Axis to rotate to either A360 or cause it to rotate 360 degrees depending on if you are in abs or inc mode.

Nothing in your Macro will stop it from running to completion.


IF you want it to REF HOME to the switch use

Code"G28 A0.000" it will move to the switch then back off the switch untill it remakes.

(;-) TP