Mx00 CAN Input Enable Function

Discussion and support for MoTeC's previous generation ECUs.

Mx00 CAN Input Enable Function

Postby RR213 on Wed Mar 23, 2022 6:43 am

Is there a way to use a user channel driven by a momentary CAN switch with a value of 0 (normal) or 1(pressed) that is received via CAN (ADL channel) for function 14, Launch Enable.

The only way I can think of is using the CAN switch to trigger a timer that in turn triggers a physical aux out pin that in turn is wired to one of the AT pins to emulate the on/off function of a physicals toggle switch.
RR213
 
Posts: 17
Joined: Tue Jul 09, 2019 6:01 am
Location: Canada

Re: Mx00 CAN Input Enable Function

Postby NathanB on Wed Mar 23, 2022 11:12 am

The switch input resources in M800 are by default in the configuration assigned to all of the AT resources, however they can be redefined as CAN messages.

If you go to Adjust > Digital Input Functions > SW Input n > Setup you can define the source of these items:

Screenshot (44).png
Screenshot (44).png (1.72 MiB) Viewed 8044 times


Once you have assigned the source, you can pick appropriate channel:

Screenshot (42).png
Screenshot (42).png (6.5 MiB) Viewed 8044 times


In the case of the ADL message format for your transmit from the dash, see the following:

Mx00 Compound Message Receive (1).png
Mx00 Compound Message Receive (1).png (5.83 KiB) Viewed 8044 times


Just make sure you have the appropriate CAN Setup completed in Adjust > General Setup > Communications > CAN Setup. In the case of receiving messages transmitted from a Dash for use on the ADL resources in the M800, you need to ensure a CAN slot is set up appropriately:

ADL Receive.jpg
ADL Receive.jpg (77.63 KiB) Viewed 8044 times


You do not need to physically wire the resource, that is the point of CAN.
NathanB
MoTeC
 
Posts: 212
Joined: Thu Oct 15, 2020 1:50 pm

Re: Mx00 CAN Input Enable Function

Postby RR213 on Wed Mar 23, 2022 4:56 pm

Thanks for the reply and walk through.

The issue i've come up against is that the CAN button is momentary and the function does not appear to have a latching feature. Launch would only be enabled for as long as the button is pressed. I am looking to latch it on and off using a CAN input.
RR213
 
Posts: 17
Joined: Tue Jul 09, 2019 6:01 am
Location: Canada

Re: Mx00 CAN Input Enable Function

Postby NathanB on Thu Mar 24, 2022 9:08 am

You will need to handle the latching functionality in the dash.

If you are using an ADL, use the channel maths. Assign the button channel as the input and use the toggle function.

ADL Channel maths.png
ADL Channel maths.png (126.49 KiB) Viewed 8003 times


The output of this channel maths will be your latched signal that you transmit to the ECU. Depending on the specific dash in use, set/reset user conditions or other functions can be used to achieve the latching function. There is no way to get the latching to happen in the M800.
NathanB
MoTeC
 
Posts: 212
Joined: Thu Oct 15, 2020 1:50 pm

Re: Mx00 CAN Input Enable Function

Postby RR213 on Thu Mar 24, 2022 10:17 am

I suspected as much. Unfortunately this vehicle isn't fitted with a MoTeC dash. We're using a 3rd party CAN based product for steering wheel switch inputs.
RR213
 
Posts: 17
Joined: Tue Jul 09, 2019 6:01 am
Location: Canada

Re: Mx00 CAN Input Enable Function

Postby NathanB on Thu Mar 24, 2022 2:53 pm

Is it something like a ECU master input to can module? In which case your only option would be to fit a latching type button.

If you have something like an Avio race can button array, these button functionality can be reprogrammed from a momentary output to a latching one.
NathanB
MoTeC
 
Posts: 212
Joined: Thu Oct 15, 2020 1:50 pm

Re: Mx00 CAN Input Enable Function

Postby RR213 on Fri Mar 25, 2022 4:10 am

It's a Tremondi SWP (steering wheel panel). I will look at getting the SWP firmware updated add toggle and up/down counter options.

For now it seems function 25, ORB Select is the only function we can toggle. From other projects I have done, that function requires a CAN transmitted hi/lo value in mV that satisfy the threshold and some hard coded hysteresis mV value. I've used 256 for Lo and 999 for Hi with levels set at 0.3 and 0.5 respectively.

Are you able to confirm if a Sw In using an ADK source considers the calibration table result or only the raw CAN value? In the past I've scaled this in the transmitting device so I think the raw CAN value is used.

2022-03-24 10_04_34-MoTeC ECU Manager - Start.png
2022-03-24 10_04_34-MoTeC ECU Manager - Start.png (18.17 KiB) Viewed 7964 times
RR213
 
Posts: 17
Joined: Tue Jul 09, 2019 6:01 am
Location: Canada


Return to M400, M600, M800 and M880 ECUs

Who is online

Users browsing this forum: No registered users and 13 guests