Toggle function problem

Discussion and support for MoTeC Power Distribution Modules

Toggle function problem

Postby DynoDom on Fri Nov 24, 2023 6:58 am

Hello

I try to set up a very simple output, on/off.
When I press the keypad button, the designated LED lights up and the output is being turned on, according to the "Monitor PDM" screen. As soon as I release the keypad button, the output turns off. At the moment, nothing is connected to the output pin.

Unfortunately I am unable to make the function to stay active. I have tried for hours, until my brain showed severe signs of numbness.

I do use the toggle function, yes.
This PDM also has a cooling fan being operated from another button on the keypad, there the output is toggled.

The file is not attached to this message, it can be attached later when I have access to the car again.


Any help will be greatly appreciated.
TIA
D
DynoDom
 
Posts: 38
Joined: Wed Sep 14, 2022 12:10 am

Re: Toggle function problem

Postby SOReilly on Fri Nov 24, 2023 8:44 am

Hi Dom,

I have attached an example config which shows two methods of controlling an output to toggle On/Off based on a keypad button press.

If you can upload your PDM config I can try help you troubleshoot further.
Attachments
Keypad toggle example.pdm
(22.7 KiB) Downloaded 3018 times
SOReilly
MoTeC
 
Posts: 88
Joined: Wed May 04, 2022 12:28 pm
Location: Melbourne

Re: Toggle function problem

Postby DynoDom on Wed Nov 29, 2023 12:22 am

Hi SOReilly

Thank you. It works now. The reason was the missing counter.

Best regards
D
DynoDom
 
Posts: 38
Joined: Wed Sep 14, 2022 12:10 am


Return to PDM15 PDM16 PDM30 and PDM32

Who is online

Users browsing this forum: No registered users and 8 guests