Section 7: TSP command reference
Models 707B and 708B Switching Matrix Reference Manual
7-178
707B-901-01 Rev. B / January 2015
Details
These attributes read or write the operation status registers.
Reading a status register returns a value. The binary equivalent of the returned value indicates which
register bits are set. The least significant bit of the binary number is bit B0, and the most significant bit
is bit B15. For example, if a value of
2.04
(which is 20,480) is read as the value of the
condition register, the binary equivalent is 0101 0000 0000 0000. This value indicates that bit B14
(
PROGRAM_RUNNING
) and bit B12 (USER) are set.
B15
B14
B13
B12
B11
B10
B9
B8
B7
B6
B5
B4
B3
B2
B1
B0
**
>
>
>
>
>
>
>
>
>
>
>
>
>
>
*
0
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
* Least significant bit
** Most significant bit
For information about .condition, .enable, .event, .ntr, and .ptr registers, refer to
Enable and transition registers
(on page C-20). The individual bits of this
register are defined in the following table.
Bit
Value
Description
B0-B10
Not used
Not applicable
B11
status.operation.PROMPTS
status.operation.PRMPTS
Set bit indicates that command prompts are enabled.
Bit B11 decimal value: 2,048
B12
status.USER
Set bit indicates that an enabled bit in the
status.operation.user
register is set.
Bit B12 decimal value: 4,096
B13
Not used.
Not applicable.
B14
status.operation.PROGRAM_RUNNING
status.operation.PROG
Set bit indicates that a program is running.
Bit B14 decimal value: 16,384
B15
Not used
Not applicable
As an example, to set bit B12 of the operation status enable register, set
status.operation.enable
= status.operation.USER
.
In addition to the above constants,
operationRegister
can be set to the numeric equivalent of the
bit to set. To set more than one bit of the register, set
operationRegister
to the sum of their
decimal weights. For example, to set bits B12 and B14, set
operationRegister
to 20,480 (which
is the sum of 4,096 + 16,384).