Your new Measurement Computing product comes with a fantastic extra —
Management committed to your satisfaction!
Thank you for choosing a Measurement Computing product—and congratulations! You own the finest, and you can now enjoy
the protection of the most comprehensive warranties and unmatched phone tech support. It’s the embodiment of our mission:
To provide data acquisition hardware and software that will save time and save money.
Simple installations minimize the time between setting up your system and actually making measurements. We offer quick and
simple access to outstanding live FREE technical support to help integrate MCC products into a DAQ system.
Limited Lifetime Warranty: Most MCC products are covered by a limited lifetime warranty against defects in materials or
workmanship for the life of the product, to the original purchaser, unless otherwise noted. Any products found to be defective in
material or workmanship will be repaired, replaced with same or similar device, or refunded at MCC’s discretion. For specific
information, please refer to the terms and conditions of sale.
Harsh Environment Program: Any Measurement Computing product that is damaged due to misuse, or any reason, may be
eligible for replacement with the same or similar device for 50% of the current list price. I/O boards face some harsh
environments, some harsher than the boards are designed to withstand. Contact MCC to determine your product’s eligibility for
this program.
30 Day Money-Back Guarantee: Any Measurement Computing Corporation product may be returned within 30 days of
purchase for a full refund of the price paid for the product being returned. If you are not satisfied, or chose the wrong product by
mistake, you do not have to keep it.
These warranties are in lieu of all other warranties, expressed or implied, including any implied warranty of merchantability or
fitness for a particular application. The remedies provided herein are the buyer’s sole and exclusive remedies. Neither
Measurement Computing Corporation, nor its employees shall be liable for any direct or indirect, special, incidental or
consequential damage arising from the use of its products, even if Measurement Computing Corporation has been notified in
advance of the possibility of such damages.
Trademark and Copyright Information
Measurement Computing Corporation, InstaCal, Universal Library, and the Measurement Computing logo are either trademarks
or registered trademarks of Measurement Computing Corporation. Refer to the Copyrights & Trademarks section on
mccdaq.com/legal for more information about Measurement Computing trademarks. Other product and company names
retrieval system, or transmitted, in any form by any means, electronic, mechanical, by photocopying, recording, or otherwise
without the prior written permission of Measurement Computing Corporation.
Notice
Measurement Computing Corporation does not authorize any Measurement Computing Corporation product for use
in life support systems and/or devices without prior written consent from Measurement Computing Corporation.
Life support devices/systems are devices or systems that, a) are intended for surgical implantation into the body, or
b) support or sustain life and whose failure to perform can be reasonably expected to result in injury. Measurement
Computing Corporation products are not designed with the components required, and are not subject to the testing
required to ensure a level of reliability suitable for the treatment and diagnosis of people.
CB-7000 is a family of network data acquisition and control modules. They provide A/D, D/A, DI/O,
Timing/Counting and other functions. These modules can be remote controlled by a set of commands.
The common features of CB-7080 and CB-7080D include:
Two independent 32-bit counters, counter 0 and counter 1.
Input signals can be isolated or non-isolated.
Programmable digital filter for isolated and non-isolated input.
External gate control for isolated and non-isolated input.
Programmable threshold value for non-isolated input.
Programmable alarm output.
Input frequency measurement up to 100 kHz.
The CB-7080D module identical to the CB-7080 with a 5-digit LED display added. The LEDs can display the
counter value and input signal frequency without PC control.
Comparing the 7080 and 7080D
Table 1-1 summarizes the features of the CB7080 and CB7080D modules.
Table 1-1. Comparison between CB-7080 and CB-7080D
If the external load is resistive, the 1N4001 can be omitted. (transistor, lamp, resistor, etc.).
If the external load is inductive, the 1N4001 cannot be omitted. (relay coil, etc.).
Frequency Input
Use the $AABS command to select the isolated/non-isolated input.
Perform the following procedure to measure the frequency input of each channel. Refer to Figure 1-4 for the
wire connection.
1. Power on and run the test.exe application.
2. Press 2
3. Press $012[Enter] Receive=!01500600
4. Press 2
5. Press %0101510600[Enter] Receive=>!01
6. Press 2
7. Press $01B0[Enter] Receive=!01
8. Press 2
9. Press #010[Enter] Receive=>????????
10. Press 2
11. Press #011[Enter] Receive=>????????
In step 3: the status of CB-7080 is COUNTER mode.
In step 5: Change to frequency mode.
In step 7: Select non-isolated input.
In step 9: Frequency measurement of channel-0.
In step 11: Frequency measurement of channel-1.
Note
The command $01B1 that is referenced in step 7 can be used to select the isolated input. The commands
$01B2 and $01B3 are used for the other selections.
CB-7080: High alarm on counter 0 and counter 1
CB-7080D Hi/hi-high alarm on counter 0
Input Mode
Command
Channel 0
Channel 1
Input mode 0
$AAB0
Non-isolated
Non-isolated
Input mode 1
$AAB1
Isolated
Isolated
Input mode 2
$AAB2
Non-isolated
Isolated
Input mode 3
$AAB3
Isolated
Non-isolated
Counter input measurement
Perform the following procedure to measure the counter input. Refer to Figure 1-5 for the wire connection.
1. Power on and run the test.exe application.
2. Press 2
3. Press $012[Enter] Receive=!01500600
4. Press 2
5. Press $01B0[Enter] Receive=!01
6. Press 2
7. Press #010[Enter] Receive=>????????
8. Press 2
9. Press #011[Enter] Receive=>????????
In step 3: The status of CB-7080 is COUNTER mode
In step 5: Select non-isolated input
In step 7: Counter measurement of channel-0
In step 9: Counter measurement of channel-1
Note:
The command $01B101B1 that is referenced in step 7 can be used to select the isolated input. The commands
$01B2 and $01B3 are used for the other selections.
Default settings
CB-7080 and CB-7080D default settings are listed in Table 1-2.
Table 1-2. Default Settings
Application notes
Counter/Frequency input mode selection
Select the counter/frequency input from an isolated or non-isolated signal. Channel 0 and channel 1 can be
selected separately. Four different input modes are listed in the following table. These four input modes can
be used in both the CB-7080 and the CB-7080D.
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).
Counter mode and alarm enable
(alarm mode 1, ~AAA1)
High-alarm on counter 0
High-high alarm on counter 0
Counter mode and alarm enable (alarm
mode 0, ~AAA0 and @AAEA0)
Alarm on counter 0
D/O 1 or alarm on counter 1
Counter mode and alarm enable (alarm
mode 0, ~AAA0 and @AAEA1)
D/O 0 or alarm on counter 0
alarm on counter 1
Table 1-4 Digital Alarm Configuration
Programmable threshold voltage setting
The programmable threshold voltage is valid for a non-isolated input of counter mode (50) and frequency
mode (51). The default settings are:
TTL compatible
Low trigger level = 0.8 volt
High trigger level = 2.4 volts
You can change the high trigger level by the $AA1H (data) command. The low trigger can be changed by the
$AA1L (data) command. The high trigger level must be greater thanthe low trigger level.
Digital filter setting
The digital filter is disabled in frequency mode (51). It is designed as a pulse-width filter for both high/low
pulses, and is valid for both non-isolated and isolated inputs. The digital filter can be enabled or disabled. Key
points of digital filter usage include:
1. Use $AABS to select the input signal.
2. Use $AA0H(data) to set the minimum width of high level.
3. Use $AA0L(data) to set the minimum width of low level.
4. Use $AA4S to enable/disable the digital filter (both channels).
If the high width of the input signal is smaller than the minimum high width of digital filter, the input signal is
filtered out. Also, the low width of the input signal must be greater than the minimum low width of digital
filter.
For example, if the width of the input signal is >1000 s, set the digital filter at 900 s. Therefore, all noise
<900 s is filtered out by the digital filter. These steps are given as follows:
$AAB0 to set input mode 0
$AA1H(data) and $AA1L(data)
Non-isolated channel 0 and
threshold value active
Non-isolated channel 1 and
threshold value active
$AAB1 to set input mode 1
$AA1H(data) & $AA1L(data)
Isolated channel 0
Isolated channel 1
$AAB2 to set input mode 2
$AA1H(data) & $AA1L(data)
Non-isolated channel 0 and
threshold value active
Isolated channel 1
$AAB3 to set input mode 3
$AA1H(data) & $AA1L(data)
Isolated channel 0
Non-isolated channel 1 and
threshold value active
$AAB?
Select mode
$AA1H(data)
Set high-level threshold value
$AA1L(data)
Set low-level threshold value
#AA?
Perform frequency measurement
$AAB?
Mode read back
$AA1H
High_level threshold value read back
$AA1L(data)
Low_level threshold value read back
Gate control setting
The gate control is ignored in frequency mode (51). The gate control is disabled in counter mode (50) by
default. To use a command to enable/disable the gate control:
To use the $AAA0 command, the gate input must be low to enable the counter.
To use the $AAA1 command, the gate input must be high to enable the counter.
To use the $AAA2 command, the gate input is ignored. The counter isalways enabled.
Preset value setting
The preset value is ignored in frequency mode (51). The counters go to their preset value in the first power-on
state. The reset counter command, $AA6N, also forces the counters to go to their preset value. The default
preset value is 0. Use the $AAPN(data) command to change the preset value. The key points include:
Table 1-5: Preset values
Frequency input applications
The frequency mode type is indicated by entering 51in the command.
Table 1-6. Frequency mode settings
To measure frequency:
1. Use the $AA1H(data) and $AA1L(data) commands to set the threshold value, if the frequency is in a
non-isolated input.
2. Use the $AAB? command to select the mode (this command will clear the current frequency first).
3. Use the #AA? command to perform frequency measurement.
Only four commands are important in frequency measurement mode:
$AAB0 to set input mode 0
$AA1H(data) and $AA1L(data)
Non-isolated channel 0 and
threshold value active
Non-isolated channel 1 and
threshold value active
$AAB1 to set input mode 1
$AA1H(data) and $AA1L(data)
Isolated channel 0
Isolated channel 1
$AAB2 to set input mode 2
$AA1H(data) and $AA1L(data)
Non-isolated channel 0 and
threshold value active
Isolated channel 1
$AAB3 to set input mode 3
$AA1H(data) and $AA1L(data)
Isolated channel 0
Non-isolated channel 1 and
threshold value active
CC
Baud Rate
03
1200 BPS
04
2400 BPS
05
4800 BPS
06
9600 BPS
07
19200 BPS
08
38400 BPS
09
57600 BPS
0A
115200 BPS
7 6 5 4 3 2 1
0
0
checksum
0=disabled
1=enabled
0 0 0
frequency gate time
0: 0.1 second
1: 1.0 second
0
0
TT
Input Range
50
Counter
51
Frequency
Counter input applications
The counter mode type is indicated by entering 50 in the command.
Table 1-7. Counter mode settings
Note:
The threshold value commands $AA1H(data) and $AA1L(data) are effective to non-isolated inputs only.
Configuration Code
Use the configuration codes listed in the following tables to set the baud rate, check the status of, and set the
input type of a module.
Table 1-8. Baud Rate Configuration Code: CC
Table 1-9. Status Configuration Code: FF, 2-char (for all)
Table 1-10. Input Type Configuration Code: TT
1-10
Table
Function
Description
Table 2-1
General Command s
Read a module's name, status, firmware number and init pin
Read/write a module's configuration
Read or enable the watchdog timer
Table 2-2
Frequency Command s
Set the frequency input of a module
Table 2-3
General Counter
Commands
Set the counter input of a module
Table 2-4
Alarm Mode 0
Commands
Used in two-channel applications to set a different alarm mode for
each channel.
Table 2-5
Alarm Mode 1
Commands
Used in two-channel application to set the same alarm mode for each
channel.
Table 2-6
LED Commands
Get or set LED configuration
To send data to the LED
Command Set
Overview
The commands in this section are grouped by function, and summarized as listed below.
2
General syntax format
Commands are constructed with individual pieces of information represented as code. Each command is
structured as follows:
One-character Delimiter that indicates the type of command to execute.
Two-character HEX module address, from 00 to FF
Function, which indicates the task to execute.
Terminator character, to indicate the end of the command.
This section lists the commands to use to perform specific functions. When writing a command, replace the
generic address with the address of the module you want to perform the task on. For example, to read the name of module 1:
Select $AAM, the command used to read the name of a module (see page 35).
1. Replace the address (AA) with 01, to indicate module 1.
2. Terminate the command with a carriage return (cr).
This command would then be written as $01M(cr).
2-1
CB-7080 & CB-7080D Counter/Timer User's Guide General syntax format
Delimiter Character
Usage
%
Set the configuration of a module.
# ~
Reset the data.
$
Get/set (read/write) module information.
[ ]
Characters inside [ ] indicate an optional task, such as [chk]
(cr)
Indicates the end of the command.
!
Always the leading character in the response to a command.
Command
Response
Description
Reference
%AANNTTCCFF
!AA
Set the module configuration
Page 2-4
#AAN
>(data)
Read the counter or frequency
Page 2-1
~**
No Response
Host OK
Page 2-2
~AA0
!AASS
Read the module status
Page 2-3
~AA1
!AA
Reset the module status
Page 2-4
~AA2
!AATT
Read the Host Watchdog Timer
Page 2-5
~AA3ETT
!AA
Enable the Host Watchdog Timer
Page 2-6
~AAO(name)
!AA
Set the module name
Page 2-8
$AA2
!AATTCCFF
Read the module configuration
Page 2-17
$AAF
!AA(data)
Read the firmware number
Page 2-33
$AAI
!AAS
Read the value of INIT* pin
Page 2-34
$AAM
!AA(data)
Read the module name
Page 2-35
Command
Response
Description
Reference
$AAB
!AAS
Read the input mode
Page 2-31
$AABS
!AA
Set the input mode
Page 2-32
$AA1H
!AA(data)
Read the high trigger level
Page 2-13
$AA1H(data)
!AA
Set the high trigger level
Page 2-14
$AA1L
!AA(data)
Read the low trigger level
Page 2-15
$AA1L(data)
!AA
Set the low trigger level
Page 2-16
Command
Response
Description
Reference
~AAAS
!AA
Set the counter alarm mode
Page 2-7
$AA0H
!AA(data)
Read the minimum width of High
Page 2-9
$AA0H(data)
!AA
Set the minimum width of High
Page 2-10
$AA0L
!AA(data)
Read the minimum width of High
Page 2-11
$AA0L(data)
!AA
Set the minimum width of High
Page 2-16
$AA1H
!AA(data)
Read the high trigger level
Page 2-13
$AA1H(data)
!AA
Set the high trigger level
Page 2-14
Delimiter characters
The characters %, #, ~, %, $, @ are used as the leading character in a command. These characters indicate the
type of command to execute.
General Commands
Table 2-1. General Command Set
Frequency commands
Table 2-2. Frequency Command Set
General counter commands
Table 2-3. General Counter Command Set
2-2
CB-7080 & CB-7080D Counter/Timer User's Guide General syntax format
% A delimiter character.
AA Current 2-character HEX module address, from 00 to FF
NN New 2-character HEX module address, from 00 to FF
TT Input type code, refer to Table 1-10.
CC Baud rate code, refer to Table 1-8.
FF Status code, refer to Table 1-9.
[chk] 2-character checksum. If checksum is disabled, no [chk]
(cr) 0x0D
Response:
Valid response: !AA[chk](cr)
Invalid response: ?AA[chk](cr)
No response Syntax error, communication error or address error.
! A delimiter character indicating a valid response
? A delimiter character indicating an invalid response
AA 2-character HEX module address
[chk] 2-character checksum. If checksum is disabled, no [chk]
(cr) 0x0D
Examples:
The address of module 01 is configured to a new address 02, counter mode:
# A delimiter character
AA 2-character HEX module address, from 00 to FF
N=0 Channel-0 of counter or frequency
N=1 Channel-1 of counter or frequency
[chk] 2-character checksum. If checksum is disabled, no [chk]
(cr) 0x0D
Response:
Valid response [chk](data)(cr)
invalid response No Response
no response Syntax error, communication error or address error.
> A delimiter character indicating a valid response
(data) 8-character data (in HEX format)
[chk] 2-character checksum. If checksum is disabled, no [chk]
Description: Reads the module status. The module status will be latched until ~AA1 command is sent. If the
host watchdog is enabled and the host is down, (no ~** command received), the module status will be set to 4.
If the module status=4, all output commands are ignored.
Syntax: ~AA0[chk](cr)
~ A delimiter character
AA 2-character HEX module address, from 00 to FF
[chk] 2-character checksum. If checksum is disabled, no [chk]
(cr) 0x0D
Response:
Valid response !AASS[chk](cr)
Invalid response ?AA[chk](cr)
No response Syntax error, communication error or address error
! A delimiter character indicating a valid response
? A delimiter character indicating an invalid response
AA 2-character HEX module address
SS 2-character HEX status value:
Bit_0, Bit_1 = reserved
Bit_2 = 0: OK,
1: host watchdog time-out
[chk] 2-character checksum. If checksum is disabled, no [chk]
(cr) 0x0D
Examples:
Status of module 01 is OK:
Command: ~010(cr)
Response: 0100(cr)
Module status=04; host watchdog timed-out; HOST is down now:
Description: Resets the module status. The module status will be latched until ~AA1 command is sent. If the
module status=4, all output commands will be ignored. Read the module status first to verify that the module
status is 0. If the module status is not 0, only a ~AA1 command can clear the module status.
Syntax: ~AA1[chk](cr)
~ A delimiter character
AA 2-character HEX module address, from 00 to FF
[chk] 2-character checksum If checksum is disabled, no [chk]
(cr) 0x0D
Response:
Valid response !AA[chk](cr)
invalid response ?AA[chk](cr)
No response: Syntax error, communication error or address error
! A delimiter character indicating a valid response
? A delimiter character indicating an invalid response
AA 2-character HEX module address
[chk] 2-character checksum. If checksum is disabled, no [chk]
(cr) 0x0D
Description: Reads the status and timer value of host watchdog. When the host watchdog is enabled, the host
must send ~** command to all modules before the timer times-out. When the ~** command is received, the
host watchdog timer is reset and starts counting down. Use ~AA3ETT to enable/disable/setting the host
watchdog timer.
Syntax: ~AA2[chk](cr)
~ A delimiter character
AA 2-character HEX module address, from 00 to FF
[chk] 2-character checksum. If checksum is disabled, no [chk]
(cr) 0x0D
Response:
Valid response AASTT[chk](cr)
invalid response ?AA[chk](cr)
no response Syntax error, communication error or address error
! A delimiter character indicating a valid response
? A delimiter character indicating an invalid response
AA 2-character HEX module address
S=0 Host watchdog is disabled
S=1 Host watchdog is enabled
TT 2-character HEX value, from 00 to FF, unit=0.1 second
[chk] 2-character checksum. If checksum is disabled, no [chk].
(cr) 0x0D
Examples:
Host watchdog timer of module 01 is disabled
command: ~012(cr)
response: !01000(cr)
Host watchdog timer of module 02 is enabled and time-out
time = 0.1 x 10 = 1 second
command: ~022(cr)
response: !0210A(cr)
2-5
Loading...
+ 51 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.