Interlock

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Interlock

Post by acestu »

Hi,

I was just wondering if anybody could point me in the right direction for making an interlock please, what I mean is I have 2 push-buttons and 2 outputs I want it so that the 2 buttons cannot be pressed at the same time, it sounds simple but it is not as easy as it sounds.


thanks in advance
Acestu
Attachments
interlock.fcf
(13 KiB) Downloaded 185 times
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: Interlock

Post by Enamul »

Hi,
I am not sure whether you are looking for something like the attached..here if you press one switch 2nd switch will be ineffective in that duration..and vice versa..
Attachments
interlock_v1.fcf
(10 KiB) Downloaded 200 times
Enamul
University of Nottingham
enamul4mm@gmail.com

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: Interlock

Post by acestu »

Thanks Enamul,

that is exactly what I was trying to do, I am trying to work out how you have done it now, What is the first calculation for before the loop ?


thanks
Stuart
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: Interlock

Post by Enamul »

Hi,
First calculation box is for initialization..although the variables are initialized if sw are not pressed immediately after ON.
Enamul
University of Nottingham
enamul4mm@gmail.com

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: Interlock

Post by acestu »

Thanks Enamul,

Sorry for being so inquisitive, I am just trying to work out what it is doing.

thanks
Stuart
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: Interlock

Post by Enamul »

No problem. You are most welcome.
Enamul
University of Nottingham
enamul4mm@gmail.com

Post Reply