Vishay Micro-Measurements
System 7000 Programmer’s Reference Manual
Page 103 of 142
7.2 Command/Query Syntax
The communication protocol is a binary protocol and follows the syntax shown below:
Byte
0
Byte
1
Byte
2
Byte
3
Byte
4
Byte
5
Byte
6
Byte
7
Byte
8…
Length
Command
Group
Command
Code
Card Mask
Channel
Mask
(Optional)
Parameters
Length
indicates the length of the command starting with Byte 2
Command
Group
8-bit value indicating the command’s group identifier
Command
Code
the least significant 12 bits are the command code, the most significant bit is set to
indicate a query
Card Mask
a bit mask indicating which card(s) should receive the command. The least
significant bit corresponds to card 1, the most significant with card 16. A card
mask of 0x0000 should be used if this field is not used for a specific command.
Channel
Mask
a bit mask indicating which channel(s) should receive the command. The least
significant bit corresponds to channel 1, the most significant with channel 8. A
card mask of 0x00 should be used if this field is not used for a specific command
Parameters
parameters of varying sizes may be included in the command
7.3 Response Syntax
Upon completion of each command, the system will return the response length followed by a duplication
of the command group, command code, card mask, and channel mask.
Byte
0
Byte
1
Byte
2
Byte
3
Byte
4
Byte
5
Byte
6
Byte
7
Byte
8
Byte
9…
ACK
Optional
Return
Value(s)
Length
Command
Group
Command
Code
Card Mask
Chan
Mask
NAK
Error
Code
Following the channel mask, the response parameters for each card and channel will appear in ascending
order (based on the card mask and channels). An acknowledgement flag (ACK 0x06), followed by
optional return values, or an error flag (NAK 0x15), followed by a 1-byte error code, will be inserted for
each card and channel within a card.
One important exception, is if a General Error occurs (which means an error in the TCP communication
level) the response will include the Length, followed by a 0xFF, a NAK, and an error code.