User Conditions for Fuel Transfer - Simulate not working

D153, D175, C125, C127, C185 and C187 forum

User Conditions for Fuel Transfer - Simulate not working

Postby Nickwinsor on Wed May 14, 2025 7:28 pm

I have some very simple logic that for some reason is not simulating correctly on the C125.

My first problem is I created a simple 2D table to get fuel level for an auxiliary tank, based on a 0-5000mV signal. To test it, I simply did a 2D table with 0mV as 0l and 5000mV as 20l. For some reason though, in simulation mode, when I adjusted the analog signal, the fuel level did not change. "Fuel Level Auxiliary Tank" has the exact same channel properties as "Fuel Level" as transmitted by the M1.
2D Table.jpg
Test 2D Table Settings
2D Table.jpg (75.85 KiB) Viewed 387 times


This was very strange but I decided to push on and test my logic just with another channel which I could directly control. I renamed this "AuxLevelTest", and it has the same channel properties as "Fuel Level" and "Fuel Level Auxiliary Tank". Here is the logic I wrote for it - quite simple, when fuel transfer mode is on (this is set via another user condition which is just to toggle it based on a push button, that's working fine so I didn't post this).
Relay Operation.jpg
Relay Operation
Relay Operation.jpg (116.64 KiB) Viewed 387 times


Now, here is the simulation screen. I can change fuel levels, turn transfer mode on and off, and I can see the levels changing on the dash, but for some reason, the relay channel never goes true (it's an On/Off Channel).

I have tested another user condition which switches a channel on and off based on RPM and oil pressure and that's working perfectly too. For some reason I just can't get this fuel level thing working. I figure that because both the 2D table and the user conditions aren't working, perhaps there's something wrong with the way the channel is set up, but it appears to be fine.

Any help appreciated :)
Attachments
Simlate Screen.jpg
Simulation Screen
Simlate Screen.jpg (49.3 KiB) Viewed 387 times
Nickwinsor
 
Posts: 11
Joined: Mon Mar 18, 2019 6:10 pm

Re: User Conditions for Fuel Transfer - Simulate not working

Postby Nickwinsor on Wed May 14, 2025 7:55 pm

FYI - here is the configuration for the channel.
Channel Configuration.jpg
Channel Config
Channel Configuration.jpg (79.09 KiB) Viewed 386 times


One more question. This is for a Toyota 86, running an M1 with the latest version of the 86 package. I hven't actually tested it yet, but is the fuel level for the main tank broadcast on the M1 general template? I know the sender itself is wired into the instrument cluster CPU however didn't know if this was broadcast on the OEM CAN and then the M1 was picking this up and broadcasting it. I was hoping to get fuel level from the main tank without needing to hack into the sender wiring.
Fuel Gauge.jpg
Gauge Wiring
Fuel Gauge.jpg (47.21 KiB) Viewed 384 times
Nickwinsor
 
Posts: 11
Joined: Mon Mar 18, 2019 6:10 pm

Re: User Conditions for Fuel Transfer - Simulate not working

Postby SOReilly on Mon May 19, 2025 3:33 pm

Hi Nick,

Quite a few questions here, I'll try answer in order.

1. Using a 2D table to translate voltage to a tank level is a bit weird in the first place, why not just directly generate the tank level from the input? you can duplicate inputs if you want to have the raw voltage and the translated fuel tank level as channel values.

In any case I tested this and couldn't replicate the behaviour, if you simulate the value of the input channel of the 2D table then the output channel value will change accordingly.

2. User condition is tricky to say without seeing your config, if you don't want to share it publicly email to support@motec.com.au so we can take a look.

3. In the Toyota 86 the fuel level sensors aren't wired to the ECU or received as a CAN signal. All OE CAN signals available as firmware resources are defined in the Toyota 86 group help e.g wheel speed sensors.
SOReilly
MoTeC
 
Posts: 101
Joined: Wed May 04, 2022 12:28 pm
Location: Melbourne

Re: User Conditions for Fuel Transfer - Simulate not working

Postby Nickwinsor on Wed May 21, 2025 12:40 pm

Thanks for your reply,

I wasn't sure how to set up the analog input to translate directly to tank level, as 0 isn't 0mV and full isn't 5000mV - these are just values I used for testing. So I create a table with whatever the mV is when the tank is empty against 0L and whatever the mV is when the tank is full against 20L. That way the dash can interpolate the values in between.

Regardless, I got it all working and to be honest I don't actually know how - I just deleted my user condition and re-made it exactly the same way, but it worked the next time I tried it. Possibly a bug somewhere?
Nickwinsor
 
Posts: 11
Joined: Mon Mar 18, 2019 6:10 pm


Return to Colour displays

Who is online

Users browsing this forum: No registered users and 1 guest