Manual Fan Control on CAN Keypad

Discussion and support for MoTeC Power Distribution Modules

Manual Fan Control on CAN Keypad

Postby HKS_TRD on Sat Aug 21, 2021 9:03 pm

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?
HKS_TRD
 
Posts: 96
Joined: Sun Jul 25, 2010 2:17 pm

Re: Manual Fan Control on CAN Keypad

Postby adrian on Mon Aug 23, 2021 10:31 am

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.
Attachments
Fan Override Example.pdm
(44.97 KiB) Downloaded 628 times
adrian
MoTeC
 
Posts: 719
Joined: Mon Apr 13, 2015 5:16 pm

Re: Manual Fan Control on CAN Keypad

Postby HKS_TRD on Mon Aug 23, 2021 10:58 am

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
HKS_TRD
 
Posts: 96
Joined: Sun Jul 25, 2010 2:17 pm

Re: Manual Fan Control on CAN Keypad

Postby HKS_TRD on Tue Aug 24, 2021 11:06 am

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
HKS_TRD
 
Posts: 96
Joined: Sun Jul 25, 2010 2:17 pm

Re: Manual Fan Control on CAN Keypad

Postby adrian on Tue Aug 24, 2021 11:22 am

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.
Attachments
Fan Override Example Release.pdm
(44.69 KiB) Downloaded 652 times
adrian
MoTeC
 
Posts: 719
Joined: Mon Apr 13, 2015 5:16 pm

Re: Manual Fan Control on CAN Keypad

Postby HKS_TRD on Tue Aug 24, 2021 11:24 am

Thankyou
I'll try again tonight
HKS_TRD
 
Posts: 96
Joined: Sun Jul 25, 2010 2:17 pm

Re: Manual Fan Control on CAN Keypad

Postby HKS_TRD on Tue Aug 24, 2021 11:44 pm

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?
HKS_TRD
 
Posts: 96
Joined: Sun Jul 25, 2010 2:17 pm

Re: Manual Fan Control on CAN Keypad

Postby adrian on Wed Aug 25, 2021 1:13 pm

Sorry, "fn.Fan.Mode" should use "fn.Fan.Mode Trigger" not "kp.Fan"
adrian
MoTeC
 
Posts: 719
Joined: Mon Apr 13, 2015 5:16 pm

Re: Manual Fan Control on CAN Keypad

Postby HKS_TRD on Wed Aug 25, 2021 1:15 pm

No worries, I thought that might have been the case

I'll enter the config into my PDM file tonight
HKS_TRD
 
Posts: 96
Joined: Sun Jul 25, 2010 2:17 pm

Re: Manual Fan Control on CAN Keypad

Postby HKS_TRD on Wed Aug 25, 2021 11:44 pm

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?
HKS_TRD
 
Posts: 96
Joined: Sun Jul 25, 2010 2:17 pm


Return to PDM15 PDM16 PDM30 and PDM32

Who is online

Users browsing this forum: No registered users and 3 guests