Skip to main content
Working time
Updated over 5 months ago

Description:

In some instances, it may be useful to know working hours or working time (in this context, meaning for how long ignition was on).

In this case, we assume that the ignition relay is connected to a DIN and thus DINX = 1 means ignition on. (X represents any of the possible Digital inputs, 1, 2, 3 or 4).

Relevant parameters:

  • "DINX" and "Ignition(DIN4)" (called "Digital Input X" in TT2): its binary value represents the current state of the DIN, can be either 0 (no signal = ignition off) or 1 (signal = ignition on)

  • DINX hour counter” (called “DINX Working Time Diff” in TT2): its value represents the amount of time DINX value was 1 (ignition on) since the preceding record (or since reset). It is a DIFF value expressed in seconds.

  • DINX hours cumulated” (called “DINX hours cumulated” in TT2): it sums all the amount of time DINX value was 1 (ignition on) for all time since device started operating. It is a SUM value expressed in seconds.

  • DINX Working Time” is a TT2 calculated input (thus not found in the Configurator or FMIO list). It depends on the values received from the parameters listed above and is customised in object settings in LCM (usually to translate seconds into hours, see methods below).

Example (DINX is on Event on Change in this example):

Time

DINX

DINX hour counter

DINX hours cumulated

00:00:00

0

0

0

00:00:05

1

0

0

00:00:15

1

10

10

00:00:25

0

10

20

00:00:35

1

0

20

More information:

Required information:

IMEI

Which DIN is connected to ignition

Steps:

A- Using "DINX hour counter" and Linear++ function:

1- Make sure DINX / Ignition(DIN4) is enabled (Change, High) and enable the parameter DINX hour counter (Monitoring, Low) in the configuration using the Advanced Configurator:

mceclip0.png

2- Go to object settings and enable DINX Working Time input, set "DINX hour counter" as Parameter1, choose Linear++ as the Function and choose MIN (0) and MAX (99999...) values:

mceclip1.png

3- Finally, click on SET to set the calibration table. In most cases, final values are wanted in hours, since the raw values are in seconds, the following calibration is required. Click on Save.

mceclip2.png

Result:

Linear++ function will SUM the DIFF values of DINX hour counter in each record (in seconds) to produce the total amount displayed in DINX Working Time in TT2 (in hours).

Example (assuming device sends a record every hour both with ignition on and ignition off):

Time

DINX

DINX hour counter (seconds)

DINX Working Time (hours)

00:00:00

0

0

0

01:00:00

1

0

0

02:00:00

1

3600

1

03:00:00

0

3600

2

04:00:00

0

0

2

B- Using "DINX hours cumulated" and Linear function:

1- Make sure DINX / Ignition(DIN4) is enabled (Change, High) and enable the parameter DINX hours cumulated (Monitoring, Low) in the configuration using the Advanced Configurator:

blobid0.png

2- Go to object settings and enable DINX Working Time input, set "DINX hours cumulated" as Parameter1, choose Linear as the Function and choose MIN (0) and MAX (99999...) values:

mceclip0.png

3- Finally, click on SET to set the calibration table. In most cases, final values are wanted in hours, since the raw values are in seconds, the following calibration is required. Click on Save.

mceclip2.png

Result:

Linear function will take values of DINX hour counter in each record (in seconds) to produce the total amount displayed in DINX Working Time in TT2 (in hours).

Example (assuming device sends a record every hour both with ignition on and ignition off):

Time

DINX

DINX hours cumulated (seconds)

DINX Working Time (hours)

00:00:00

0

0

0

01:00:00

1

0

0

02:00:00

1

3600

1

03:00:00

0

7200

2

04:00:00

0

7200

2

Did this answer your question?