Counter alarm mode selection, Digital output application notes, Counter alarm mode selection -7 – Measurement Computing CB-7080 User Manual
Page 11: Digital output application notes -7
CB-7080 & CB-7080D Counter/Timer User's Guide
Application notes
1-7
Counter alarm mode selection
There are no alarm functions in frequency mode (51). There are two counter alarm modes,
Alarm Mode 0
and
Alarm Mode 1
. These two alarm modes can be used in both CB-7080 and CB-7080D.
Alarm Mode 0 is used for two-channel applications, as follows:
To select alarm mode 0: ~AAA0 (for both channels)
To enable channel 0: @AAEA0
To disable channel 0: @AADA0
Set the high alarm limit of channel 0: @AAPA(data)
if (counter 0 >= alarm limit 0) D/O 0 turn ON
if (counter 0 < alarm limit 0) D/O 0 turn OFF
Enable channel 1: @AAEA1
Disable channel 1: @AADA1
Set the high alarm limit of channel 1: @AASA(data)
if (counter 1 >= alarm limit 1) D/O 1 turn ON
if (counter 1 < alarm limit 1) D/O 1 turn OFF
Alarm mode 1 is used for single-channel applications, as follows:
Select alarm mode 1: ~AAA1 (for channel 0 only)
Enable channel 0: @AAEAT
Disable channel 0: @AADA
Clear latch alarm: @AACA
Set high alarm limit: @AAPA(data)
Set high-high alarm limit: @AASA(data)
Counter 0 < high alarm
OFF
OFF
high alarm <= counter 0, and
counter 0 < high-high alarm
ON
OFF
High-high alarm <= counter 0
ON
ON
Note:
The high-high alarm must greater than the high-alarm.
Digital output application notes
The D/O0 and D/O1 can be used as D/O or an alarm output, as follows:
D/O in the frequency mode.
D/O in the counter mode and alarm disabled (by @AADA or @AADAN command).
An alarm output in the counter mode and an alarm enable (by @AAEAT or @AAEAN command).