Error message for MIAC PIC

For MIAC users to discuss projects, applications, and any other issues related to the MIAC unit.

Moderators: Benj, Mods

Post Reply
Monie Jacobsen
Posts: 484
Joined: Mon Jul 30, 2012 3:39 pm
Has thanked: 17 times
Been thanked: 46 times

Error message for MIAC PIC

Post by Monie Jacobsen »

Hi LeighM

Had to use Q4 - B7 for Reset [/ b] instead of B2 ?????
What's wrong here?
Billede1.JPG
Billede1.JPG (24.36 KiB) Viewed 7266 times
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:
Miac Start Stop Reset with KeyPad.fcfx
(34.63 KiB) Downloaded 309 times
Attachments
Billede2.JPG
Billede2.JPG (33.43 KiB) Viewed 7266 times
Best Regard
Monie

User avatar
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

Post by LeighM »

Hi Monie,
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.

Monie Jacobsen
Posts: 484
Joined: Mon Jul 30, 2012 3:39 pm
Has thanked: 17 times
Been thanked: 46 times

Re: Error message for MIAC PIC

Post by Monie Jacobsen »

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.
Best Regard
Monie

User avatar
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

Post by LeighM »

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

Post Reply