Support Forums
Time measurement

With DT80 G I have to measure time (let say in seconds) for which one digital input is in the status ON (how long it stays ON). Once when it goes OFF time has to be reset i.e. set to 0. It is not clear to me how to do this.

With DT80 G I have to measure time (let say in seconds) for which one digital input is in the status ON (how long it stays ON). Once when it goes OFF time has to be reset i.e. set to 0. It is not clear to me how to do this.

Hi sjankovi,

There are multiple methods to measure time on digital status changes:

  1. Using manual counting

RA1S
IF(1DS==1){1CV=1CV+1}
IF(1DS==0){XB 1CV=0}

RBX
1CV("Time~s")

  1. Using Edge timing Edge timing TFR will measure the last rising value to the present falling value

RA1E
1DS
1DS(TFR,"Time~s")

Best regards,
Rudy Gunawan

Hi sjankovi, There are multiple methods to measure time on digital status changes: 1. Using manual counting RA1S IF(1DS==1){1CV=1CV+1} IF(1DS==0){XB 1CV=0} RBX 1CV("Time~s") 2. Using Edge timing Edge timing TFR will measure the last rising value to the present falling value RA1E 1DS 1DS(TFR,"Time~s") Best regards, Rudy Gunawan
6
1
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft