background image

2.4 Commands

2 – 11

Command Error

LCME?

Query the last command error code. A query of

LCME?

always clears

the error code, so a subsequent

LCME?

will return

0

. Valid codes are:

Value

Definition

0

No execution error since last

LCME?

1

Illegal command

2

Undefined command

3

Illegal query

4

Illegal set

5

Missing parameter(s)

6

Extra parameter(s)

7

Null parameter(s)

8

Parameter bu

er overflow

9

Bad floating-point

10

Bad integer

11

Bad integer token

12

Bad token value

13

Bad hex block

14

Unknown token

*IDN

Example:

LCME?

4

The error (4, “Illegal set”) is due to the missing “

?

”.

Parity

PARI(?)

{

z

}

Set (query) parity

{

to

z

=

(

NONE 0

,

ODD 1

,

EVEN 2

,

MARK 3

,

SPACE 4

)

}

.

After power-on, modules default to

PARI

NONE

.

PARI EVEN

Example:

Token Mode

TOKN(?)

{

z

}

Set (query) the Token Query mode

{

to

z

=

(

OFF 0

,

ON 1

)

}

.

If

TOKN

ON

is set, then queries to the SIM module that return to-

kens will return the text keyword; otherwise they return the decimal
integer value.

Thus, the only possible responses to the

TOKN?

query are

ON

and

0

.

On reset,

TOKN

is set to

OFF

.

TOKN OFF

Example:

SIM984 Isolation Amplifier

Содержание SIM984

Страница 1: ...s Revision 1 13 March 11 2013 Distribution in the UK Ireland Lambda Photometrics Limited Lambda House Batford Mill Harpenden Herts AL5 5BZ United Kingdom E info lambdaphoto co uk W www lambdaphoto co...

Страница 2: ...t be returned to a Stanford Research Systems authorized service facility Contact Stanford Research Systems or an authorized representative before returning this product for repair Information in this...

Страница 3: ...ction to the Instrument 1 2 1 2 Front Panel Operation 1 2 1 3 SIM Interface 1 4 2 Remote Operation 2 1 2 1 Index of Common Commands 2 2 2 2 Alphabetic List of Commands 2 3 2 3 Introduction 2 4 2 4 Com...

Страница 4: ...ii Contents SIM984 Isolation Ampli er...

Страница 5: ...olation ampli er for use with analog signals from DC to 1 MHz Service Do not install substitute parts or perform any unauthorized modi cations to this instrument The SIM984 is a single wide module des...

Страница 6: ...Find on SRS Products Symbol Description Alternating current Caution risk of electric shock Frame or chassis terminal Caution refer to accompanying documents Earth ground terminal Battery Fuse On suppl...

Страница 7: ...onventions used in this manual are Front panel buttons are set as Button Front panel indicators are set as Overload Remote command names are set as IDN Literal text other than command names is set as...

Страница 8: ...e Output o set drift 1 mV C typ Output noise typ 80 Vrms 100 Hz bandwidth 200 Vrms 10 kHz bandwidth 1 5 mVrms 1 MHz bandwidth Gain 1 10 100 Gain accuracy 0 5 THD 0 005 1 kHz 600 load Frequency range D...

Страница 9: ...Isolation Ampli er In This Chapter 1 1 Introduction to the Instrument 1 2 1 1 1 Overview 1 2 1 1 2 Power on State 1 2 1 2 Front Panel Operation 1 2 1 2 1 Inputs 1 2 1 2 2 Gain 1 2 1 2 3 Bandwidth 1 3...

Страница 10: ...n be trimmed using a thin screwdriver accessing the O set hole near the output BNC 1 1 2 Power on State The SIM984 stores its operation state gain and bandwidth con gu ration in non volatile memory At...

Страница 11: ...ctors on the front and rear panels Each output connec tion is through a 50 resistor For normal operation the user should not need to terminate the output If a 50 termination is applied the output sign...

Страница 12: ...lications 1 3 1 SIM interface connector The DB 15 SIM interface connector carries all the power and commu nications lines to the instrument The connector signals are speci ed in Table 1 1 Direction Pi...

Страница 13: ...e lines from the SIM984 DB 15 plug to the RS 232 serial port of a personal computer 1 Connect RXD from the SIM984 directly to RD on the PC TXD directly to TD In other words a null modem style cable is...

Страница 14: ...e DB 9 F 10 3 TxD 11 2 RxD 5 Computer Ground to P S 7 15 VDC 13 5 VDC 14 15 VDC 15 24 VDC 8 9 Ground P S return current 1 Signal Ground separate wire to Ground Table 1 2 SIM984 Direct Interface Cable...

Страница 15: ...3 Device Clear 2 4 2 4 Commands 2 4 2 4 1 Command Syntax 2 5 2 4 2 Notation 2 6 2 4 3 Examples 2 6 2 4 4 Ampli er Commands 2 7 2 4 5 Status Commands 2 7 2 4 6 Interface Commands 2 9 2 5 Status Model...

Страница 16: ...h Status STB i 2 7 Status Byte SRE i j 2 7 Service Request Enable CLS 2 7 Clear Status ESR i 2 8 Standard Event Status ESE i j 2 8 Standard Event Status Enable CESR i 2 8 Comm Error Status CESE i j 2...

Страница 17: ...Reset SRE i j 2 7 Service Request Enable STB i 2 7 Status Byte B BWTH i 2 7 Bandwidth C CESE i j 2 8 Comm Error Status Enable CESR i 2 8 Comm Error Status CONS z 2 10 Console Mode G GAIN i 2 7 Gain L...

Страница 18: ...32 byte input bu er Characters accumulate in the input bu er until a command terminator either CR or LF is received at which point the mes sage is parsed and executed Query responses from the SIM984...

Страница 19: ...r as part of the command Multiple parameters are separated by commas Multiple commands may be sent on one command line by separating them with semi colons so long as the input bu er does not over ow C...

Страница 20: ...set and query forms 2 4 3 Examples Each command is provided with a simple example illustrating its usage In these examples all data sent by the host computer to the SIM984 are set as straight teletyp...

Страница 21: ...ds the Status Byte register bit i Execution of the STB query without the optional bit i always causes the STATUS signal to be deasserted Note that STB i will not clear STATUS even if bit i is the only...

Страница 22: ...Register bit i to j ESE 6 1 Example ESE 64 Comm Error Status CESR i Query Comm Error Status Register for bit i Upon executing a CESR query the returned bit s of the CESR register are cleared CESR Exa...

Страница 23: ...et the SIM984 to default con guration After RST the gain is set to 1 and the bandwidth to DC 100 Hz This is equivalent to the following command sequence GAIN 0 BWTH 0 RST Example Identify IDN Read the...

Страница 24: ...xecution Error LEXE Query the last execution error code A query of LEXE always clears the error code so a subsequent LEXE will return 0 Valid codes are Value De nition 0 No execution error since last...

Страница 25: ...d integer token 12 Bad token value 13 Bad hex block 14 Unknown token IDN Example LCME 4 The error 4 Illegal set is due to the missing Parity PARI z Set query parity to z NONE 0 ODD 1 EVEN 2 MARK 3 SPA...

Страница 26: ...LF 2 CRLF 3 LFCR 4 The term sequence is appended to all query responses sent by the module and is constructed of ASCII character s 13 car riage return and 10 line feed The token mnemonic gives the se...

Страница 27: ...E 2 5 1 Status Byte SB The Status Byte is the top level summary of the SIM984 status model When masked by the Service Request Enable register a bit set in the Status Byte causes the STATUS signal to b...

Страница 28: ...e underlying enabled bit message s are cleared CESB Communication Error Summary Bit Indicates whether one or more of the enabled ags in the Communication Error Status Register has become true Most bit...

Страница 29: ...or in a command that was successfully parsed Out of range parameters are an example The error code can be queried with LEXE CME Command Error Indicates a parser detected error The error code can be qu...

Страница 30: ...tency Causes the Input Bu er to be ushed and resets the command parser OVR Input Bu er Overrun Set when the Input Bu er is overrun by incoming data Causes the Input Bu er to be ushed and resets the co...

Страница 31: ...ts a brief description of the SIM984 circuit design In This Chapter 3 1 Circuit Descriptions 3 2 3 1 1 Isolated power 3 2 3 1 2 Input ampli er 3 2 3 1 3 Output circuitry 3 2 3 1 4 Digital control 3 2...

Страница 32: ...t circuitry includes the output band width control This circuitry is on the lower portion of Page 2 of the schematics The overall AC gain is trimmed using VR202 at the factory and should not require u...

Страница 33: ...OP signal high pin 71 of U107 e ectively halting its own processor clock In this way the SIM984 guarantees no digital clock artifacts can be generated during quiescent operation 3 2 Schematic Diagrams...

Отзывы: