Newtons4th PSM1700 Use and care manual

PSM1700 -PsimetriQ
PSM1735 -NumetriQ
Communications Manual

“Do not be hasty when making measurements.”
PsimetriQ/NumetriQ is a precision instrument that
provides you with the tools to make a wide variety of
measurements accurately, reliably, and efficiently - but
good metrology practice must be observed. Take time to
read this manual and familiarise yourself with the features
of the instrument in order to use it most effectively.

PSM17xx communications manual
i
IMPORTANT SAFETY INSTRUCTIONS
This equipment is designed to comply with BSEN 61010-1
(Safety requirements for electrical equipment for
measurement, control, and laboratory use) – observe the
following precautions:
•Ensure that the supply voltage agrees with the rating of
the instrument printed on the back panel before
connecting the mains cord to the supply.
•This appliance must be earthed. Ensure that the
instrument is powered from a properly grounded supply.
•The inputs must not be connected to signals greater
than is indicated on the front panel.
•Keep the ventilation holes on the underneath and sides
free from obstruction.
•Do not operate or store under conditions where
condensation may occur or where conducting debris
may enter the case.
•There are no user serviceable parts inside the
instrument – do not attempt to open the instrument,
refer service to the manufacturer or his appointed
agent.
Note: Newtons4th Ltd. shall not be liable for any
consequential damages, losses, costs or expenses
arising from the use or misuse of this product
however caused.

PSM17xx communications manual
ii
ABOUT THIS MANUAL
This manual gives details of the communication commands
recognized by the PSM17xx series of instruments over
RS232, LAN or GPIB. For more general operating
instructions for the instrument refer to the specific user
manual.
Each command is listed alphabetically with details of any
arguments and reply. A one line summary of each
command is given in the appendix. Although most of the
commands apply to all instruments in the range there are
some commands that are specific to one instrument or
another.
The information in this manual is believed to be accurate
and complete but Newtons4th Ltd cannot accept any
liability whatsoever for any consequential damage or
losses arising from any errors, inaccuracies, or omissions.
Revision 1.62 (PsimetriQ) 1.54 (NumetriQ)
This manual is copyright © 2004 - 2010 Newtons4th Ltd.
and all rights are reserved. No part may be copied or
reproduced in any form without prior written consent.
11 November 2010

PSM17xx communications manual
iii
CONTENTS
1Using remote control ......................................... 1-1
1.1 Standard event status register..................................1-3
1.2 Serial Poll status byte..............................................1-4
1.3 RS232 connections..................................................1-5
1.4 Data streaming.......................................................1-6
2Communication commands................................. 2-1
*CLS ................................................................................2-1
*ESE ................................................................................2-2
*ESR?...............................................................................2-3
*IDN?...............................................................................2-4
*OPC? ..............................................................................2-5
*RST ................................................................................2-6
*SRE ................................................................................2-7
*STB?...............................................................................2-9
*TRG.............................................................................. 2-10
*TST?............................................................................. 2-11
*WAI.............................................................................. 2-12
ABORT............................................................................ 2-13
ACTRIM .......................................................................... 2-14
ALARM............................................................................ 2-15
ALARM1 .......................................................................... 2-17
ALARM2 .......................................................................... 2-18
ALARME .......................................................................... 2-19
AMPLIT ........................................................................... 2-21
ANALOG.......................................................................... 2-22
BANDWI ......................................................................... 2-23
BEEP .............................................................................. 2-24
BLANKI........................................................................... 2-25
CONFIG .......................................................................... 2-26
COUPLI........................................................................... 2-28
CYCLES........................................................................... 2-29
DATALO .......................................................................... 2-30
DAV?.............................................................................. 2-32
DAVER............................................................................ 2-33
DELAY ............................................................................ 2-35
FILTER............................................................................ 2-36
FRA................................................................................ 2-37
FREQUE .......................................................................... 2-39
FSWEEP.......................................................................... 2-40

PSM17xx communications manual
iv
GAINPH .......................................................................... 2-41
HARMON......................................................................... 2-43
HOLD ............................................................................. 2-45
INPUT............................................................................. 2-46
INTYPE ........................................................................... 2-47
KEYBOA.......................................................................... 2-48
LCR................................................................................ 2-49
LOWFRE.......................................................................... 2-51
MARKER.......................................................................... 2-52
MODE............................................................................. 2-53
OFFSET........................................................................... 2-54
OUTPUT .......................................................................... 2-55
PAV................................................................................ 2-56
PHASE ............................................................................ 2-58
PHCONV.......................................................................... 2-60
PHREF ............................................................................ 2-61
POWER ........................................................................... 2-62
PPORT ............................................................................ 2-64
PROGRA.......................................................................... 2-66
RANGE............................................................................ 2-68
RESOLU.......................................................................... 2-69
REZERO.......................................................................... 2-70
RUN?.............................................................................. 2-71
SCALE ............................................................................ 2-72
SHUNT............................................................................ 2-73
SINGLE........................................................................... 2-74
SPEED ............................................................................ 2-75
SSWEEP.......................................................................... 2-76
START ............................................................................ 2-77
STATUS?......................................................................... 2-78
STOP.............................................................................. 2-79
STREAM.......................................................................... 2-80
SUSPEND........................................................................ 2-82
TFA ................................................................................ 2-83
TXA................................................................................ 2-85
TXTEST........................................................................... 2-87
USER? ............................................................................ 2-88
VECTOR.......................................................................... 2-89
VERSIO?......................................................................... 2-91
VRMS ............................................................................. 2-92
WAVEFO ......................................................................... 2-94
ZERO.............................................................................. 2-95
ZOOM............................................................................. 2-96

PSM17xx communications manual
1-1
1Using remote control
The instrument is fitted with an RS232 serial
communications port as standard, and may have an
IEEE488 (GPIB) interface or LAN interface fitted as an
option. All the interfaces use the same ASCII protocol with
the exception of the end of line terminators:
Rx expects
Tx sends
RS232
carriage return
(line feed ignored)
carriage return
and line feed
LAN
carriage return
(line feed ignored)
carriage return
and line feed
IEEE488
carriage return or
line feed or EOI
carriage return
with EOI
All the functions of the instrument can be programmed via
either interface, and results read back. When the IEEE488
interface is set to ‘remote’ the RS232 port is ignored.
The commands are not case sensitive and white space
characters are ignored (e.g. tabs and spaces). Replies
from the instrument are always upper case, delimited by
commas, without spaces.
Only the first six characters of any command are important
– any further characters will be ignored. For example, the
command to set the generator frequency is FREQUE but
the full word FREQUENCY may be sent as the redundant
NCY at the end will be ignored.
Fields within a command are delimited by comma, multiple
commands can be sent on one line delimited with a semi-
colon. Eg.AMPLIT,1.5;OUTPUT,ON
Mandatory commands specified in the IEEE488.2 protocol
have been implemented, (e.g. *IDN?, *RST) and all

PSM17xx communications manual
1-2
commands that expect a reply are terminated with a
question mark.
The instrument maintains an error status byte consistent
with the requirements of the IEEE488.2 protocol (called
the standard event status register) that can be read by the
mandatory command *ESR? (see section 5.1).
The instrument also maintains a status byte consistent
with the requirements of the IEEE488.2 protocol, that can
be read either with the IEEE488 serial poll function or by
the mandatory command *STB? over RS232 or IEEE or
LAN (see section 5.2).
The IEEE address defaults to 23 and can be changed via
the COMMS menu.
The keyboard is disabled when the instrument is set to
“remote” using the IEEE. Press HOME to return to “local”
operation.
RS232 data format is: start bit, 8 data bits (no parity), 1
stop bit. Flow control is RTS/CTS (see section 5.2), baud
rate is selectable via the MONITOR menu.
A summary of the available commands is given in the
Appendix. Details of each command are given in the
communication command section of the manual.
Commands are executed in sequence except for two
special characters that are immediately obeyed:
Control T (20) – reset interface (device clear)
Control U (21) – warm restart

PSM17xx communications manual
1-3
1.1 Standard event status register
PON CME EXE DDE QYE OPC
bit 0 OPC (operation complete)
cleared by most commands
set when data available or sweep complete
bit 2 QYE (unterminated query error)
set if no message ready when data read
bit 3 DDE (device dependent error)
set when the instrument has an error
bit 4 EXE (execution error)
set when the command cannot be executed
bit 5 CME (command interpretation error)
set when a command has not been recognised
bit 7 PON (power on event)
set when power first applied or unit has reset
The bits in the standard event status register except for
OPC are set by the relevant event and cleared by specific
command (*ESR?, *CLS, *RST). OPC is also cleared by
most commands that change any part of the configuration
of the instrument (such as MODE or START).

PSM17xx communications manual
1-4
1.2 Serial Poll status byte
ESB MAV ALM FDV SDV RDV
bit 0 RDV (result data available)
set when results are available to be read as
enabled by DAVER
bit 1 SDV (sweep data available)
set when sweep results are available to be
read as enabled by DAVER
bit 2 FDV (fast data available (streaming))
set when data streaming results are available
to be read as enabled by DAVER
bit 3 ALA (alarm active)
set when an alarm is active and enabled by
ALARMER
bit 4 MAV (message available)
set when a message reply is waiting to be read
bit 5 ESB (standard event summary bit)
set if any bit in the standard event status
register is set as well as the corresponding bit
in the standard event status enable register
(set by *ESE).

PSM17xx communications manual
1-5
1.3 RS232 connections
The RS232 port on the instrument uses the same pinout as
a standard 9 pin serial port on a PC or laptop (9-pin male
‘D’ type).
Pin
Function
Direction
1
DCD
in (+ weak pull up)
2
RX data
in
3
TX data
out
4
DTR
out
5
GND
6
DSR
not used
7
RTS
out
8
CTS
in
9
RI
not used
The instrument will only transmit when CTS (pin 8) is
asserted, and can only receive if DCD (pin 1) is asserted.
The instrument constantly asserts (+12V) DTR (pin 4) so
this pin can be connected to any unwanted modem control
inputs to force operation without handshaking. The
instrument has a weak pull up on pin 1 as many null
modem cables leave it open circuit. In electrically noisy
environments, this pin should be driven or connected to
pin 4.
To connect the instrument to a PC, use a 9 pin female to 9
pin female null modem cable:
1 & 6
-
4
2
-
3
3
-
2
4
-
1 & 6
5
-
5
7
-
8
8
-
7

PSM17xx communications manual
1-6
1.4 Data streaming
The phase angle voltmeter and power meter modes have
the option of high speed data streaming. In this operation,
the window width for the measurement may be specified
from 660us to 100ms and the data for each measurement
window is transmitted over the communications in a
continuous stream. The window is adjusted to synchronise
to the measured frequency.
The instrument buffers the data and transmits at the
fastest rate that is possible. The buffer depth is over 8000
data values so more than 5 seconds of data can be
captured at the fastest rate of 1500 readings per second
even if the data is not read at all. If the window size is
such that the data can be read out in real time then data
streaming can continue indefinitely.
Once the data streaming window has been setup but
before the streaming has been started, the display
periodically shows the measured value. Once streaming
has been started, the display is blanked to minimise
processing overheads. Streaming can be stopped either
immediately (ABORT) or may be stopped but remaining
data continues to be transmitted until the buffer is empty
(STOP).
STREAM,ENABLE,0.01
START
read data
STOP
continue to read stored data

PSM17xx communications manual
2-1
2Communication commands
*CLS
*CLS
Function:
Clear status
Description:
Clears the standard event status register.
Format:
*CLS
Arguments:
none
Reply:
none
Example:
*CLS
*ESR?
0
Notes:

PSM17xx communications manual
2-2
*ESE
*ESE
Function:
Set standard event status enable register.
Description:
Enable which bits of the standard event
status register
set the ESB bit in the serial
poll status byte..
Format:
*ESE, value
Arguments:
decimal equivalent of bits in standard
event status enable register
Reply:
can be read by *ESE?
Example:
*ESE, 60
Notes:
The following bits in the standard event
status enable register have been
implemented:
bit 0 OPC (operation complete)
bit 2 QYE (unterminated query error)
bit 3 DDE (device dependent error)
bit 4 EXE (execution error)
bit 5 CME (command interpretation error)
bit 7 PON (power on event)
For example, *ESE, 60 enables all the
error bits so that the ESB bit in the serial
poll status byte is set in the event of any
error.

PSM17xx communications manual
2-3
*ESR?
*ESR?
Function:
Standard event status register query
Description:
Returns the contents of the standard
event status register and clears it.
Format:
*ESR?
Arguments:
none
Reply:
decimal equivalent of bits in standard
event status register
Example:
*ESR?
33
Notes:
The following bits in the standard event
status register have been implemented:
bit 0 OPC (operation complete)
bit 2 QYE (unterminated query error)
bit 3 DDE (device dependent error)
bit 4 EXE (execution error)
bit 5 CME (command interpretation error)
bit 7 PON (power on event)
For example, if a command is sent
incorrectly and is not recognised, the CME
bit will be set and the value of 33 will b
e
returned.

PSM17xx communications manual
2-4
*IDN?
*IDN?
Function:
Identify query
Description:
Returns a standard format identification
string.
Format:
*IDN?
Arguments:
none
Reply:
An ASCII string in the IEEE488.2 format:
manufacturer,model,serial no,version
Example:
*IDN?
NEWTONS4TH,PSIMETRIQ,01234,1.00
Notes:

PSM17xx communications manual
2-5
*OPC?
*OPC?
Function:
Test for operation complete
Description:
Returns 1 if previous operation is
completed, 0 if not.
Format:
*OPC?
Arguments:
none
Reply:
0 or 1
Example:
START
*OPC?
0
*OPC?
0
*OPC?
1
Notes:
*OPC? can be used to indicate when data
is available or when a frequency sweep
has completed.

PSM17xx communications manual
2-6
*RST
*RST
Function:
Reset
Description:
Resets the instrument to the default state
and clears the
standard event status
register.
Format:
*RST
Arguments:
none
Reply:
none
Example:
*RST
Notes:
The *RST command loads the default
configuration. This is the same as loading
the default configuration via the
PROGRAM menu.
Any preceding
setup commands will be
overwritten.
*RST should be followed by an end of line
not a message separator. It may be
helpful to follow it with a short pause to
allow the new configuration to become
active before sending further commands.

PSM17xx communications manual
2-7
*SRE
*SRE
Function:
Set service request enable register.
Description:
Enable which bits of the status byte
register initiate a service request.
Format:
*SRE, value
Arguments:
decimal equivalent of bits in status byte
register
Reply:
can be read by *SRE?
Example:
*SRE, 1
generate a service request when data
available.
Notes:

PSM17xx communications manual
2-8
*SRE?
*SRE?
Function:
Read service request enable register.
Description:
Read back the present setting of the
service request enable register.
Format:
*SRE?
Arguments:
Reply:
decimal equivalent of bits in status byte
register that would generate a service
request.
Example:
*SRE?
1
Notes:
Other manuals for PSM1700
1
This manual suits for next models
1
Table of contents
Other Newtons4th Measuring Instrument manuals

Newtons4th
Newtons4th PPA4500 User guide

Newtons4th
Newtons4th PPA500 Use and care manual

Newtons4th
Newtons4th PPA55 Series User guide

Newtons4th
Newtons4th PSM1700 User manual

Newtons4th
Newtons4th PPA 5500 KinetiQ User manual

Newtons4th
Newtons4th PPA45 Series User guide

Newtons4th
Newtons4th PPA2500 Use and care manual

Newtons4th
Newtons4th N4L PPA500/1500 User manual

Newtons4th
Newtons4th PPA 5500 KinetiQ Use and care manual

Newtons4th
Newtons4th PSM3750 NumetriQ User manual