Torque

Forums

Forums

Notifications
Clear all

ON/OFF alarm

7 Posts
4 Users
0 Reactions
1,230 Views
(@adev1)
Posts: 3
Active Member
Topic starter
 

Hi,

i am playing with Torque Pro alarms these days and i need some help from community here.

I have a PID with ON/OFF value, 0 - OFF, 100 - ON.
I would like to set up two alarms, first one will trigger when PID value goes to ON and the second alarm that will trigger when PID goes from ON to OFF.

Is it possible to achieve this? I cannot find any example for this type of alarms.

 
Posted : 06/09/2023 12:18 pm
(@cintakc)
Posts: 1665
Noble Member
 

write more about your PID and what is its value in PID Test mode
create two PIDs, one will alarm when the value of A is 100, and in the second, make the formula 100-(A), that is, when A=0, it will be 100-0=100 and the alarm will also be triggered

 
Posted : 06/09/2023 5:34 pm
(@adev1)
Posts: 3
Active Member
Topic starter
 

Ok i understand, so i must create another custom PID with custom formula and set the second alarm on this second PID.

I already have PID for DPF regeneration status (0x220380, formula: A, unit type: ON/OFF, min value: 0, max value: 100).

I will create second PID for DPF regeneration status inverted (0x220380, formula: 100-A, unit type: ON/OFF, min value: 0, max value: 100).

I will try this and see if it works.

Thanks

 
Posted : 07/09/2023 5:38 am
(@cintakc)
Posts: 1665
Noble Member
 

I think 100 should not be, if you have some bit responsible for your parameter in the response byte, then there should be one of these values 1,2,4,8,16,32,64,128
give an example of a byte response to your request 0x220380 and which bit in it is responsible for your parameter

 
Posted : 07/09/2023 7:45 am
(@capp777)
Posts: 2999
Famed Member
 

Use Lookup in your equation.

https://wiki.torque-bhp.com/view/Equations#LOOKUP.28.7BVALUE.7D:.7BDEFAULT.7D:.7BKEY1.7D.7BOPERATOR.7D.7BVALUE1.7D:.7BKEY2.7D.7BOPERATOR.7D.7BVALUE2.7D:.E2.80.A6etc.29

Also should be able to long
press the display to access
Torque's builtin alarm settings.

 
Posted : 07/09/2023 8:57 am
(@adev1)
Posts: 3
Active Member
Topic starter
 

I tested PID 220380 today. The ON/OFF display gauge connected to this PID shows Off, The equation (equation = A) returns 0 and test returns hex value 7E80762038000000000.

On the other hand, the equation always returned 1 when the display gauge was showing On. Currently I can not test the hex value for this because conditions are not met. Anyway I assume only 1 bit will change. In the near future I will test this condition too.

 
Posted : 08/09/2023 8:20 am
(@vasilich)
Posts: 226
Reputable Member
 

Quote from adev1 on September 8, 2023
I tested PID 220380 today. The ON/OFF display gauge connected to this PID shows Off, The equation (equation = A) returns 0 and test returns hex value 7E80762038000000000.

Answer decoded:
7E8 - control unit block address
07 - answer byte count (including reply header = 3 bytes)
620380 - reply header for request 220380 (+40h to 1st byte = success)
00 00 00 00 - reply (4 bytes).

Quote from adev1 on September 8, 2023
I assume only 1 bit will change. In the near future I will test this condition too.

I also believe that it will never have value of 100 - see what cintakc wrote above. So you need to find out what value returns this PID when regen is active, and then use this value, and not 100.

 
Posted : 08/09/2023 8:55 am
Share:

  Follow me on twitter