Copyright: Created with EasyHelp (Tel: 0973 209667)


Logic/Hours Counter - RG354175

Description

This function block implements a counter whcih is incremented by a 36-second (1/100 hour) timer.  The counter is made up of an hours counter and a hundredths-hour counter.

The hours counter counts from 0 to 32767 hours.  This counter generates an ordinal Hours output and a logic Carry output pulse as it rolls over from 32767 to 0.

The hundredths-hour counter counts from 0 to 99 and increments the hours counter as it rolls over from 99 to 0.  This counter is accessible via SAM, but is not accessible from ConfigEd.

There is a Reset input available which clears both counters to zero when true, and enables the timer and counters when false.

There is a Hold input available which stops the counters when true, and enables counter increments when false.

Parameters

Get Counter State	Returns the counters state:  Holding, Reset, Holding in Reset or Counting.

Get Fractional Hours	Returns the current count in the hundredths-hours counter:  0 to 99.

Get Hours	Returns the current count in the hours counter:  0 to 32767.

Set Hold	Hold input.  Expects true or false.

Set Reset	Reset input.  Expects true or false.


Description

This function block implements a counter whcih is incremented by a 36-second (1/100 hour) timer.  The counter is made up of an hours counter and a hundredths-hour counter.

The hours counter counts from 0 to 32767 hours.  This counter generates an ordinal Hours output and a logic Carry output pulse as it rolls over from 32767 to 0.

The hundredths-hour counter counts from 0 to 99 and increments the hours counter as it rolls over from 99 to 0.  This counter is accessible via SAM, but is not accessible from ConfigEd.

There is a Reset input available which clears both counters to zero when true, and enables the timer and counters when false.

There is a Hold input available which stops the counters when true, and enables counter increments when false.


Parameters

Get Counter State	Returns the counters state:  Holding, Reset, Holding in Reset or Counting.

Get Fractional Hours	Returns the current count in the hundredths-hours counter:  0 to 99.

Get Hours	Returns the current count in the hours counter:  0 to 32767.

Set Hold	Hold input.  Expects true or false.

Set Reset	Reset input.  Expects true or false.