Hello Guest it is March 29, 2024, 11:34:41 AM

Author Topic: input signals  (Read 2558 times)

0 Members and 1 Guest are viewing this topic.

Offline Bill_O

*
  •  563 563
    • 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
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'

Offline Bill_O

*
  •  563 563
    • 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
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
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
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'

Offline Bill_O

*
  •  563 563
    • 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
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'

Offline Bill_O

*
  •  563 563
    • 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
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'

Offline Bill_O

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

Only as a homing switch.

Bill