SCBREAD? <
regaddr
>
0800
16
Returns a 16-bit value which is the contents of the requested register on the
SCP Bus.
<
regaddr
>
is an 11-bit address, which has the two formats shown
below.
Accessing SCP Channel Registers
10
9
8 - 6
5 - 3
2 - 0
CAL
CHN=1
Plug-on#
Chan_addr
Reg_addr
Accessing Whole SCP Registers
10
9
8 - 6
5 - 3
2 - 0
CAL
CHN=0
Plug-on#
Reg_addr
Plug-on#:
SCP slot number (0 - 7)
Chan_addr:
Channel number on SCP () - 7)
Reg_addr:
SCP register address (see individual SCP reference)
To access registers which apply to the whole SCP, set the CHN bit to zero.
To access registers for individual channels, set CHN bit to one. The CAL
bit is zero when accessing SCPs, and one when accessing registers which
control the calibration relays.
SCBWRITE <
regaddr
> <
word
>
0810
16
Writes the 16-bit value,
<
word
>
, to a location on the SCP Bus determined
by
<
regaddr
>
. The format of
<
regaddr
>
is documented above.
Required Signal
Conditioning
Plug-on Registers
Signal Conditioning Plug-ons have several required registers. There are
two major categories of SCP registers: Whole SCP Registers (CHN bit = 0)
in which the register has effect on the entire SCP; and Channel Registers
(CHN bit = 1) which effect only a single SCP channel.
Whole SCP Registers (CHN bit = 0)
ID Register (Read, regaddr = 00ppp000000
2
)
(ppp = SCP plug-on number, 0 - 7)
15 - 8
7 - 0
ID
SUB ID
Sub ID is an 8-bit field which identifies the particular version of the SCP.
Substantially similar SCPs may be available in several versions,
distinguished by filter cutoff frequency or some other parameter which does
not affect the software driver. The 8-bit ID field determines the class of
SCP, which directs the SCPI driver how to control it. Simple SCPs may
return the same number in both fields.
360 Register-Based Programming
Appendix D
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com