Page 1 of 1
Manual Fan Control on CAN Keypad
Posted:
Sat Aug 21, 2021 9:03 pm
by HKS_TRD
I'm trying to set up a CAN keypad button to do manual control of two fans and I'm just stuck on one issue
I have a counter set up on the rising edge of the button to cycle through off, one fan on, both fans on and back to off
What I also want to do is be able to trigger a timed pulse of the fans when I hold the same button for a second and also be able to override the timed pulse if I hold the button for half a second.
Do I use the set/reset function for this and if so how can I set it up so that activating the timed pulse does not increment the manual control counter
Are there any limitations with the set/reset function such as not being able to use the same input e.g. button for set and reset or if you do the set period has to be shorter than the reset period?
Re: Manual Fan Control on CAN Keypad
Posted:
Mon Aug 23, 2021 10:31 am
by adrian
Attached is an example of one way to do it.
It is actually pretty tricky to get all of the timing correct to use a single button for so many functions (toggle mode, start an override, interrupt an override). I don't have a PDM with me to check, so you might have to test that it actually does what you want.
It works as follows:
Single Keypad button controls everything.
Two mode functions, 1st is the counter for which fans should be running, 2nd is the trigger for the counter. The trigger has to have the override condition as part of it so that the mode isn't changed when override is set.
Override:
On, Off, Deactivate, Timer, Output
On - Triggered when you hold the button for 1 second
Off - Triggered by either the timer running out or the deactivate function
Deactivate - Triggered when you hold the button for 0.5 seconds but has to not trigger if the button is held down for 1 second (On trigger)
Timer - Amount of time you want the fans to run in override
Output - Override function used in outputs
Outputs are then on when in the correct mode or the override is on.
You could add the override to reset the mode as well if you wanted the fans to turn off after an override.
Note: You'll need the beta version of PDM Manager from the website to open the file.
Re: Manual Fan Control on CAN Keypad
Posted:
Mon Aug 23, 2021 10:58 am
by HKS_TRD
Thanks Adrian
I'll fire up the laptop tonight after work and take a look at it
I did set something up over the weekend that just used 1 sec for toggle on and off but haven't had a chance to test it yet
Re: Manual Fan Control on CAN Keypad
Posted:
Tue Aug 24, 2021 11:06 am
by HKS_TRD
Hi Adrian
For some reason I was unable to open the file
I've been using the latest version of the software which I downloaded about 6 weeks ago, could that be the issue
Re: Manual Fan Control on CAN Keypad
Posted:
Tue Aug 24, 2021 11:22 am
by adrian
Yeah you needed the beta version of PDM Manager (in the beta section of the software downloads on the website). Below is a version that will open in the latest release.
Re: Manual Fan Control on CAN Keypad
Posted:
Tue Aug 24, 2021 11:24 am
by HKS_TRD
Thankyou
I'll try again tonight
Re: Manual Fan Control on CAN Keypad
Posted:
Tue Aug 24, 2021 11:44 pm
by HKS_TRD
Hi Adrian
That worked, everything made sense and that does cover what I needed
The toggle I set up had one less layer of complexity but there were some similarities with what you had set up
One thing I wanted to check was that you had the mode triggered by the rising edge of the fan button but you also had a mode trigger function which was the falling edge of the fan button, should the mode trigger have been what increments the mode counter?
Re: Manual Fan Control on CAN Keypad
Posted:
Wed Aug 25, 2021 1:13 pm
by adrian
Sorry, "fn.Fan.Mode" should use "fn.Fan.Mode Trigger" not "kp.Fan"
Re: Manual Fan Control on CAN Keypad
Posted:
Wed Aug 25, 2021 1:15 pm
by HKS_TRD
No worries, I thought that might have been the case
I'll enter the config into my PDM file tonight
Re: Manual Fan Control on CAN Keypad
Posted:
Wed Aug 25, 2021 11:44 pm
by HKS_TRD
I had a question regarding the deactivate function
I can see how it prevents the trigger off from activating if you hold the button for 1 second to activate the override however if the override is on and you hold the button for 0.5 to switch the fans off what happens if you keep the fan button pressed in, will the fans turn back on after 1 second has lapsed?