Page 1 of 1

Output not switching off

PostPosted: Tue Aug 15, 2023 12:31 am
by Scott Poxon
Hi All,

New to this forum and MoTec generally, just in the process of commissioning my PDM's and have run into an odd behaviour I hope some one can help with?

This issue is with my Indicators:
2 x 8A outputs used - RH & LH each running 3 bulbs
3 x Inputs used - 1 LH Switch, 1 RH switch, 1 Hazard warning switch

Config is simple:
Flash (RH Switch = true, true time=0.44s False time=0.34s)
OR
Flash (Hazard Switch = true, true time=0.44s False time=0.34s)

Left hand duplicates this but references LH switch in the first statement.

The Issue:
When I activate the indicator switches each sides behaves as you would expect.
When I activate the Hazard warning switch the RH indicators flash but the LH comes on permanently (actually it dims slightly in time with the flash condition)
When I deactivate the Hazard warning the RH side switches off but the LH stays lit.
If I check PDM Monitor, it shows the channels to be inactive.

Full disclosure the first time I uploaded the config I had missed the Flash command on the LH Hazard condition. this makes me think some how the code has got corrupted and somehow embedded?

Thanks in advance.

Scott

Re: Output not switching off

PostPosted: Tue Aug 15, 2023 9:42 am
by Stephen Dean
Hi Scott,

Can you post the configuration thanks.

Re: Output not switching off

PostPosted: Tue Aug 15, 2023 3:27 pm
by David Ferguson
I would put your Hazard FLASH command into a function, and use the output from the function for the output conditions.

This would keep the lights synchronized when the hazards where on.

Re: Output not switching off

PostPosted: Tue Aug 15, 2023 4:59 pm
by Scott Poxon
Thanks both, here are the files, I will send both as the inputs are split between two PDM's

Re: Output not switching off

PostPosted: Tue Aug 15, 2023 5:00 pm
by Scott Poxon
2nd configuration

Re: Output not switching off

PostPosted: Wed Aug 16, 2023 12:03 am
by Scott Poxon
UPDATE: I have managed to figure out why the LH indicator was staying on, it was back feed from an alarm channel that hadn't been removed, so was outputting when the ignition was on.

Thanks for all the help, I would appreciate feedback on how to make the Hazards a function, and also how I can do a short flick on the indicators for 3 flashes?

Re: Output not switching off

PostPosted: Wed Aug 16, 2023 10:32 am
by Stephen Dean
Hi Scott,

Try these settings.

Re: Output not switching off

PostPosted: Wed Aug 16, 2023 6:19 pm
by Scott Poxon
Thanks Stephen, I will take a look.

Re: Output not switching off

PostPosted: Thu Aug 17, 2023 11:35 pm
by Scott Poxon
Thanks Stephen, wanted to check a couple of details to see if my understanding is correct. Where you set Function.Hazard.Switch as Toggle, is this needed if using the factory latching switch?

If so how would you switch this function off?

If not then is this function needed at all? or would you replace this switch function with the actual switch in Function.Hazard?

Re: Output not switching off

PostPosted: Fri Aug 18, 2023 10:05 am
by Stephen Dean
Hi Scott,

If you have a physical toggle switch, then you do not need to use the Toggle function in the PDM. Most of the configurations that I work on currently use either CAN keypads or momentary buttons to control functions, so you need to do the toggle functionality in the PDM to get them to work correctly.

You just need to change the Function.Hazard.Switch to use True as the condition, rather than Toggle.