Hi LeighM
Had to use Q4 - B7 for Reset [/ b] instead of B2 ?????
What's wrong here?
Wishing to be able to use KeyPad 5 = Noedstop and Keypad 3 = Reset, the place for loose contacts.
Have the same issues as above!
Is it something you would like to help correct so Keypad can be used?
See attached file:
Error message for MIAC PIC
-
- Posts: 484
- Joined: Mon Jul 30, 2012 3:39 pm
- Has thanked: 17 times
- Been thanked: 46 times
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
Re: Error message for MIAC PIC
Hi Monie,
It is not clear what you are asking.
Just some observations:
It is not clear what you are asking.
Just some observations:
- Setting all ports to outputs in the main and interrupt routine could cause problems.
Only one key can be pressed at any one time, if you try pressing more you will get unexpected values.
-
- Posts: 484
- Joined: Mon Jul 30, 2012 3:39 pm
- Has thanked: 17 times
- Been thanked: 46 times
Re: Error message for MIAC PIC
Hi LeighM
I try again
Would you like to help with the attached coder to set KeyPad 5 = Stop and Keypad 3 = Reset.
I can not get the KeyPad feature KeyPad 5 or Keypad 3.
But with the external switches, the switching Stop or Reset works fine.
I try again
Would you like to help with the attached coder to set KeyPad 5 = Stop and Keypad 3 = Reset.
I can not get the KeyPad feature KeyPad 5 or Keypad 3.
But with the external switches, the switching Stop or Reset works fine.
Best Regard
Monie
Monie
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
Re: Error message for MIAC PIC
Hi Monie,
The relays/motor goes to Stop when the key is released,
this is because the no key pressed has value 255 and you have a test "if keyval > 9 then Stop".
Is that what you intended?
Maybe you should remove it?
Then add a test for KeyVal 5 in your "Switch KeyVal" and set Flag_Noedstop = 1
The relays/motor goes to Stop when the key is released,
this is because the no key pressed has value 255 and you have a test "if keyval > 9 then Stop".
Is that what you intended?
Maybe you should remove it?
Then add a test for KeyVal 5 in your "Switch KeyVal" and set Flag_Noedstop = 1