Hello Guest it is December 08, 2019, 11:22:16 PM

Author Topic: input signals  (Read 489 times)

0 Members and 1 Guest are viewing this topic.

Offline Bill_O

*
  •  250 250
    • View Profile
Re: input signals
« Reply #10 on: March 22, 2019, 08:37:33 AM »
Craig,

The parts at the start and end are in the actual code.
It all works other than the part I mentioned.
Here is the whole thing.
Re: input signals
« Reply #11 on: March 22, 2019, 01:21:03 PM »
Hi,
kool, now we can see the context.

Have you single stepped through it?

Craig
My wife left with my best friend...
     and I miss him!

Offline Bill_O

*
  •  250 250
    • View Profile
Re: input signals
« Reply #12 on: March 22, 2019, 03:28:58 PM »
Craig,

Yes I have and it does not matter if the switch is active or not.
It enters the If-Then loop.
Trying to read as much on how signals word as I can I saw something about needing to put something in the screen load.
Is that maybe what I am missing?

Bill
Re: input signals
« Reply #13 on: March 22, 2019, 03:46:58 PM »
Hi,

Quote
Trying to read as much on how signals word as I can I saw something about needing to put something in the screen load.

That is appropriate if you want to do something anytime a signal changes.  In your case all you want is to test a signal
when you run a macro.

Craig
My wife left with my best friend...
     and I miss him!
Re: input signals
« Reply #14 on: March 22, 2019, 03:54:14 PM »
Hi,
may I suggest holding the home switch closed, or even disconnect the wires to it and short them together
to see whether the code detects the signal if it is deliberately held in opposite state.

Craig
My wife left with my best friend...
     and I miss him!

Offline Bill_O

*
  •  250 250
    • View Profile
Re: input signals
« Reply #15 on: March 22, 2019, 04:59:05 PM »
Craig,

It does not make any difference.

For some reason it always enters the If-Then loop

Bill
Re: input signals
« Reply #16 on: March 22, 2019, 05:08:25 PM »
Hi,
I can only guess then that you have made a mistake in the pin assignment, or may be the logogical
connection of the pin to mc.ISIG_MOTOR0_HOME

Craig
My wife left with my best friend...
     and I miss him!

Offline Bill_O

*
  •  250 250
    • View Profile
Re: input signals
« Reply #17 on: March 22, 2019, 05:59:40 PM »
Craig,

Normally I would agree with you.
But the switch works fine for a homing switch.

Bill
Re: input signals
« Reply #18 on: March 22, 2019, 07:01:17 PM »
Hi,
is the switch doing double duty, ie a home switch and also a limit switch?

Craig
My wife left with my best friend...
     and I miss him!

Offline Bill_O

*
  •  250 250
    • View Profile
Re: input signals
« Reply #19 on: March 25, 2019, 01:51:51 PM »
Craig,

Only as a homing switch.

Bill