AQ6370C/AQ6373/AQ6375
Optical Spectrum Analyzer
Remote Control
IM AQ6370C-17EN
3rd Edition
Foreword
Thank you for purchasing the AQ6370C/AQ6373/AQ6375 Optical Spectrum Analyzer.
This remote control user’s manual covers the AQ6370C, AQ6373 and AQ6375.
It describes the following.
•
GP-IB Interface
RS-232 Interface
•
• Ethernet Interface and Communication Commands
• Program Functions
To ensure correct use, please read this manual thoroughly before beginning operation.
After reading this manual, keep it in a convenient location for quick reference in the event
a question arises during operation. In addition to this manual, there is one individual
manual each for the AQ6370C, AQ6373 and AQ6375. Read them along with this manual.
AQ6370C
Manual TitleManual No.Description
AQ6370C
Optical Spectrum Analyzer
User’s Manual
AQ6370C
Optical Spectrum Analyzer
Getting Started Guide
IM AQ6370C-01EN The manual is located on the CD included in
your package (pdf format). Explains all functions
and operating procedures of the AQ6370C
except remote control and program functions.
IM AQ6370C-02EN Explains the handling precautions, installation
procedure, component names, and
specifications of the AQ6370C.
AQ6373
Manual TitleManual No.Description
AQ6373
Optical Spectrum Analyzer
User’s Manual
AQ6373
Optical Spectrum Analyzer
Getting Started Guide
IM AQ6373--01ENThe manual is located on the CD included in
your package (pdf format). Explains all functions
and operating procedures of the AQ6373 except
remote control and program functions.
IM AQ6373-02ENExplains the handling precautions, installation
procedure, component names, and
specifications of the AQ6373.
AQ6375
Manual TitleManual No.Description
AQ6375
Optical Spectrum Analyzer
User’s Manual
AQ6375
Optical Spectrum Analyzer
Getting Started Guide
Notes
• The contents of this manual are subject to change without prior notice as a result
of improvements in the instrument’s performance and functions. Display contents
illustrated in this manual may differ slightly from what actually appears on your screen.
•
Every ef
of its contents. However, should you have any questions or find any errors, please
contact your nearest YOKOGAWA dealer.
• Copying or reproducing all or any part of the contents of this m
permission of Yokogawa Meters&Instruments Corporation is strictly prohibited.
fort has been made in the preparation of this manual to ensure the accuracy
IM AQ6375-01ENThe manual is located on the CD included in
your package (pdf format). Explains all functions
and operating procedures of the AQ6375 except
remote control and program functions.
IM AQ6375-02ENExplains the handling precautions, installation
procedure, component names, and
specifications of the AQ6375.
anual without the
i
Foreword
Trademarks
Revisions
• Microsoft and Windows are registered trademarks or trademarks of Microsoft
Corporation in the United States and/or other countries.
• Adobe and
incorporated.
• The company and product names used in this manual are not
registered trademark or trademark symbols (® and TM).
• Other company and product names are registered trademarks
respective companies.
• 1st Edition September, 2010
• 2nd Edition January, 2011
• 3rd Edition October, 2011
Acrobat are registered trademarks or trademarks of Adobe Systems
accompanied by the
or trademarks of their
ii
IM AQ6370C-17EN
Safety Precautions
This instrument is an IEC protection class I instrument (provided with terminal for
protective earth grounding).
The general safety precautions described herein must be observed during all phases
of operation. If the instrument is used in a manner not specified in this manual, the
protection provided by the instrument may be impaired. Yokogawa Electric Corporation
assumes no liability for the customer’s failure to comply with these requirements.
The following safety symbols and wording is used in this manual.
Warning: Handle with care. Refer to the user’s manual or service manual.
This symbol appears on dangerous locations on the instrument which require
special instructions for proper handling or use. The same symbol appears in the
corresponding place in the manual to identify those instructions.
Alternating current
ON (power)
OFF (power)
IM AQ6370C-17EN
iii
Conventions Used in This Manual
Safety Markings
The following safety markings are used in this manual.
Improper handling or use can lead to injury to the user or damage
to the instrument. This symbol appears on the instrument to indicate
that the user must refer to the users manual for special instructions.
The same symbol appears in the corresponding place in the user’
s manual to identify those instructions. In the manual, the symbol is
used in conjunction with the word “WARNING” or “CAUTION.”
WARNING
CAUTION
Calls attention to information that is important for proper operation of
Note
Calls attention to actions or conditions that could cause serious or
fatal injury to the user, and precautions that can be taken to prevent
such occurrences.
Calls attention to actions or conditions that could cause light injury to
the user or damage to the instrument or user’s data, and precautions
that can be taken to prevent such occurrences.
the instrument.
Notations Used in the Procedural Explanations
On pages that describe the operating procedures in each chapter, the following notations
are used to distinguish the procedure from their explanations.
Procedure
Explanation
This subsection contains the operating procedure used to carry out
the function described in the current section. The procedures are
written with inexperienced users in mind; experienced users may not
need to carry out all the steps.
This subsection describes the setup parameters and the limitations
on the procedures.
Units
iv
Terms Used in Explanations of Procedures
Panel Keys and Soft Keys
Bold characters used in the procedural explanations indicate characters that are marked on the
panel keys or the characters of the soft keys displayed on the screen menu.
SHIFT+Panel Key
SHIFT+key means you will press the SHIFT key to turn it ON and then press the panel key. The
setup menu marked in purple below the panel key that you pressed appears on screen.
k Denotes 1000. Example: 12 kg, 100 kHz
K Denotes 1024. Example: 459 KB (file size)
IM AQ6370C-17EN
How To Use This Manual
Structure of This Manual
This user’s manual consists of the following eight chapters, an appendix, and an index.
Chapter 1 Remote Control Functions
This section describes the various types of communication interfaces and program
functions.
Chapter 2 GP-IB Interface (GP-IB1 Port)
Describes the functions and lists the specifications of the GP-IB1 port.
Chapter 3 Ethernet Interface
Describes the functions and lists the specifications of the Ethernet interface.
Chapter 4 Serial (RS-232) Interface
Describes the functions and lists the specifications of the RS-232 interface.
Chapter 5 GP-IB Interface (GP-IB2 Port)
Describes the functions and lists the specifications of the GP-IB2 port.
Chapter 6 Status Registers
Explains the status byte and describes the various kinds of registers, cues, and other
items.
Chapter 7 Remote Commands
Describes each individual command that can be used.
Chapter 8 Program Function
Explains the program function for controlling another instrument using the
AQ6373/AQ6375 as the controller.
Appendix
Lists commands that are compatible with the AQ6317.
Index
An alphabetical index.
AQ6370C/
IM AQ6370C-17EN
v
Contents
Safety Precautions ........................................................................................................................... iii
Conventions Used in This Manual ...................................................................................................iv
How To Use This Manual ..................................................................................................................v
AQ6317 Status Byte .................................................................................................................App-3
List of the AQ6317-Compatible Commands..............................................................................App-4
HIGH1, HIGH2, HIGH3 of Measurement Sensitivity ..............................................................App-17
IM AQ6370C-17EN
vii
1
Chapter 1 Remote Control Functions
1.1 Remote Interfaces
This instrument is equipped with the following remote interfaces.
GP-IB1 (IEEE 488.2, See Chapter 2)
This port is used to connect a controller such as a PC to remote control this instrument.
Connect a controller or another device controlled by the controller to this port.
This instrument is controlled using remote commands.
Two types of remote commands are provided: the instrument’s native commands
complying with SCPI (Standard Commands for Programmable Instruments), and
commands compatible with the conventional model AQ6317 (see the appendix).
GP-IB2 (IEEE 488.1, See Chapter 5)
The instrument acts as a controller for remote control of external instruments. Connect to
the external device to be controlled using the instrument’s program function.
RS-232 (See Chapter 3)
This port is used to connect a controller such as a PC to control the instrument remotely.
Remote Control Functions
Ethernet (See Chapter 4)
This port is used to connect a controller such as a PC to control the instrument remotely
via network.
GP-IB1 and GP-IB2 Ports
The GP-IB1 and GP-IB2 ports must be used differently for different purposes.
The GP-IB1 port is used when controlling the instrument from a PC.
The GP-IB2 port is used when controlling an external instrument from the AQ6370C/
AQ6373/AQ6375.
Therefore, please note the following.
•
controller such as a PC that is connected to the GP-IB2 port cannot remotely control
A
the AQ6370C/AQ6373/AQ6375.
• Even if a turnable laser source or an external device to be con
AQ6373/AQ6375 using program functions is connected to the GP-IB1 port, it cannot
remote control the AQ6370C/AQ6373/AQ6375.
• The GP-IB1 and GP-IB2 ports are independent of each other
connected to the GP-IB1 port cannot directly send a message to an external device
connected to the GP-IB2 port.
• When a PC or other controller is connected to the GP-IB1 port
port with the GP-IB2 port results in improper operation.
Do not connect these ports together, or turn OFF the system c
The default is ON.
trolled by the AQ6370C/
. Thus, a controller
, connecting the GP-IB1
ontroller function.
IM AQ6370C-17EN
1-1
1-2
IM AQ6370C-17EN
1.2 Switching between Local and Remote
Switching from Local to Remote
When in Local mode, if a listen address is sent from the controller that sets REN (remote
enable) and ATN to “True,” the instrument enters Remote mode.
• When in Remote mode, the REMOTE indicator lights.
•
Keys other than the LOCAL key are disabled.
• Settings entered in Local mode are held even if switching to Remote mode.
• When an LLO (Local Lock Out) message is received from the controller, the
instrument enters local lockout status. In LLO status, the LOCAL key is disabled and
does not return the instrument to Local mode even when pressed. After cancelling the
local lockout status, press the LOCAL key. To cancel the local lockout status, set REN
to “False” from the controller.
Switching from Remote to Local
If you press the LOCAL key when in Remote mode the instrument enters Local mode.
However, it does not return to Local mode if in the local lockout state.
• The REMOTE indicator turns of
• All keys are enabled.
• Settings entered in Remote mode are held even if switching to Local mode.
• When a GTL (Go to Local) message is received from the controller, the instrument
enters Local mode even if REN is set to False.
f.
1
1.3 Sending/Receiving Remote Commands
Buffers
Input Buffer
The instrument’s input buffer is a single stage 1 MB buffer. When receiving data that
exceeds the buffer size, the data after the first megabyte is discarded. The remote
command after the last command separator of the 1 MB of data is deleted.
Output Buffer
The instrument’s output buffer is a single stage 1 MB buffer. Only the most recent data is
held. (When a talker command is received while there is data in the buffer, the old data in
the buffer is replaced with the incoming data.) When talker commands are combined and
executed resulting in generation of talker data that exceeds the buffer size, the following
process is carried out.
•
The query error bit (QYE) of the standard event status register
• The talker output buffer is cleared.
• Commands received even after the buffer overflow are processed. Note, however, that
talker data by talker commands is not stored at the output buffer.
Error Buffer
This instrument’s error buffer is of a single stage and stores only the latest error information.
is set to 1.
Remote Control Functions
Message Terminators
This instrument allows the following message terminators to be used.
Program Message Terminators
• Assertion of EOI (End-Of-Identify) signal
• LF (line feed) character
• LF+EOI
Here, LF is a line feed (0Ah) in ASCII. For CR + LF, because CR (0Dh) is recognized
as “wsp,” CR + LF can consequently also be used as a message terminator. Also, for
waveform binary transfer, only EOI is used as a message terminator.
Response Message Terminator
LF+EOI is used as the response message terminator.
Receiving Remote Commands
• When completing receipt of a remote command, the instrument releases the GP-IB
bus.
• When receiving the next command while a command action is
instrument captures that command to store it in the receive buffer, and then releases
the GP-IB bus.
• When there is a remote command in the receive buf
capture a successive command even if there are commands on the GP-IB bus.
• When the action of the preceding command is complete, the in
command stored in the receive buffer and clears the buffer. Then it captures the next
command into the receive buffer if there is one on the bus.
• When an output statement contains multiple remote command
captures them all and services them in the order they were written. In this case, unless
the last command in the statement has started to be executed, this instrument cannot
capture the next command.
being executed, the
fer, the instrument does not
strument executes the
s, this instrument
IM AQ6370C-17EN
1-3
1.3 Sending/Receiving Remote Commands
Data Inquiry
• Inquiry of data by the external controller is made using a query command or a data
output request from the controller.
• Query commands end with a question mark (?).
•
For query commands with an argument, the argument is specified in the form of
<wsp> + <argument> at the end of the “?”.
• When a query command is received, the instrument prepares
command in the output buffer.
• Data in the output buf
statement or a new query command from the controller.
• If multiple query commands are specified and written in succe
“;”, the instrument prepares replies to all of them in the output buffer. In this case, the
instrument will collectively output all of the prepared data when receiving the next data
output request.
Setting the timeout time
A timeout time setting of 30 seconds or more is recommended.
At approximately 10 minute intervals, the instrument performs an auto offset for
approximately 30 seconds. The communication timeout of the external controller should
be set to 30 seconds or more so that a timeout does not occur during the execution of
the offset. See the user’s manual of your remote interface card for instructions on how to
set the communication timeout time.
a reply to the query
fer will be retained until the instrument receives an input
ssion using a semicolon
The instrument's auto offset function is set to ON by default, and it performs offset of the
analog circuits at approximately 10 minute intervals. The offset process takes about 30
seconds. On the AQ6373 and AQ6375, during this offset process, the receiving of remote
commands, execution of remote commands, and talker data transmission processes
are suspended. If an external controller sends a remote command or requests output
of talker data while the suspension is in effect, the external controller may experience
a communication timeout error because the instrument cannot perform the requested
action until the offset process is complete.
If you do not want to set the communication timeout to 30 seconds or less
To avoid remote malfunctions due to communication timeouts, offset processing can be
performed manually. Turn the auto offset function OFF in advance, and perform the offset
manually during a gap in measurement sequences. Wait approximately 30 seconds
until the offset process is finished. After the offset is complete, restart the measurement
sequence.
The remote commands are as follows.
T
urn OFF the auto of
Perform a manual offset
fset function
:CALibration:ZERO off
:CALibration:ZERO once
Note
• An offset interval of 10 minutes is recommended.
• If the AUTO OFFSET key is OFF, the offset can fluctuate over time, and the level axis
performance can degrade. Always have it turned ON.
• When the AUTO OFFSET key is set to ON, is displayed at the bottom of the screen.
Device Trigger Function
When GET (Group Execute Trigger) is received, the instrument will perform a single
sweep.
1-4
IM AQ6370C-17EN
1
2
GP-IB1
GP-IB2
Chapter 2 GP-IB Interface (GP-IB1 Port)
2.1 Connecting via GP-IB
GP-IB Cable
This instrument is equipped with an IEEE standard 488-1978 24-pin GP-IB connector.
Use a GP-IB cable that conforms to the IEEE standard 488-1978.
Connections
The instrument has two ports, GP-IB1 and GP-IB2.
GP-IB1 port: Can be connected to a PC for remote control of the instrument from the
PC.
GP-IB2 port: Can be connected to another instrument for remote control of that
instrument using the
For now, you will connect a PC to the GP-IB1 port.
Turn OFF all the power switches of the AQ6370C/AQ6373/AQ6375 and any devices
to be connected to it. Connect a cable to the GP-IB1 port on the rear panel of the
instrument.
GP-IB Interface (GP-IB1 Port)
AQ6370C/AQ6373/AQ6375’s program function.
CAUTION
Always turn OFF the power to the instrument and the PC when connecting or
disconnecting communication cables. Failure to turn OFF the power can result in
malfunction or damage to internal circuitry.
Precautions When Making Connections
• Securely fasten the screw that is attached to the GP-IB cable connector.
• You can connect several cables to connect to several devices. However, fifteen or
more devices including the controller cannot be connected to a single bus.
hen connecting several devices, you cannot specify the same address for more than
• W
one.
• Use a cable of two meters or longer to connect between devic
• Ensure that the total length in cables does not exceed twenty meters.
• When carrying out communications, make sure that at least two-thirds of all connected
devices are turned ON.
es.
IM AQ6370C-17EN
2-1
2-2
IM AQ6370C-17EN
2.1 Connecting via GP-IB
• When connecting multiple devices, use a star or linear configuration as shown in the
figure below. A loop or parallel configuration cannot be used.
1
2
2.2 GP-IB Interface Function
GP-IB Interface Function
Listener Function
• All of the same settings can be performed using the interface (except for power ON/
OFF and communication settings) as when using the instrument’s panel keys.
• Settings, waveforms, and other data can be received through
the controller.
• Additionally
Talker Function
• Settings, waveforms, and other data can be output.
Note
Listen only, talk only, and controller functions are not available.
Switching between Remote and Local
Switching from Local to Remote
When in Local mode, if the instrument received a listen address from the controller that
sets REN (remote enable) and ATN to “True,” the instrument enters Remote mode.
• When in Remote mode, the REMOTE indicator lights.
•
Keys other than the LOCAL key are disabled.
• Settings entered in Local mode are held even if switching to Remote mode.
• When an LLO (Local Lock Out) message is received from the controller, the
instrument enters local lockout status. In LLO status, the LOCAL key is disabled and
does not return this instrument to Local mode even when pressed. After cancelling the
local lockout status, press the LOCAL key. To cancel the local lockout status, set REN
to "False" from the controller.
, you can also receive commands regarding status reports and other data.
GP-IB Interface (GP-IB1 Port)
output commands from
Switching from Remote to Local
If you press the LOCAL key when in Remote mode the instrument enters Local mode.
However, it does not return to Local mode if in the local lockout state.
• The REMOTE indicator turns of
• All keys are enabled.
• Settings entered in Remote mode are held even if switching to Local mode.
• When a GTL (Go to Local) message is received from the controller, the instrument
enters Local mode even if REN is set to False.
f.
Note
The GP-IB interface cannot be used simultaneously with other communication interfaces
(RS-232, USB, or Ethernet).
IM AQ6370C-17EN
2-3
2-4
IM AQ6370C-17EN
2.3 GP-IB Interface Specifications
GP-IB Interface Specifications
Electromechanical specifications: Conforms to IEEE std. 488-1978
Functional specifications: See table below
Protocols: Conforms to IEEE std. 488.2-1992
Encoding: ISO (ASCII)
Mode: Addressable mode
Address setting: Addresses
screen in the SYSTEM menu.
Remote mode cancel:
Press LOCAL
this is disabled when under Local Lockout by the
controller.
Functional Specifications
Function Subset Description
Source handshake SH1 All capabilities of send handshake
Acceptor handshake AH1 All capabilities of receive handshake
Talker T6 Basic talker function, serial polling, and talker
Listener L4
Service request SR1
Remote local RL1 All Remote/Local functions
Parallel port PP0 Parallel polling function not provided
Device clear DC1 All device clear functions
Output buffer clear
Input buffer clear (clearing of an unexecuted
Error buffer clear
STB, ESR clear
Device trigger
Controller C0 Controller function not provided
Electrical characteristics E1 Open collector
DT0 Device trigger function
Basic listener function, serial polling, and listener
All service request functions
0-30 can be set in the GP-IB setting
cancel function through MLA (my listen address).
Talker only not provided.
cancel function through MLA (my listen address).
Listener only not provided.
commands)
to cancel Remote mode. Note that
1
2
2.4 Setting the GP-IB Address
GP-IB address setting
See chapter 5
Command format
See chapter 5
See chapter 5
Procedure
Selecting the Communication Interface
Press SYSTEM. The system setting menu is displayed.
1.
Press the MORE1/4 soft key. The communication interface setting menu is
2.
displayed.
Press the REMOTE INTERFACE soft key. The setting menu for the interface to
3.
be used is displayed.
Press the GP-IB soft key to specify GP-IB as the communication interface.
4.
GP-IB Interface (GP-IB1 Port)
Setting the Address
Press the GP-IB SETTING soft key. The GP-IB setting menu is displayed.
5.
Press the MY ADDRESS soft key. The GP-IB address setting screen is displayed.
6.
Set the GP-IB address using the rotary knob or the arrow keys, and press
7.
ENTER.
IM AQ6370C-17EN
2-5
2-6
IM AQ6370C-17EN
2.4 Setting the GP-IB Address
Setting the Command Format
Explanation
The settings below are used when entering the settings that can be entered using the
instrument’s panel keys from a controller, or when outputting settings or waveform data
to the controller.
GP-IB Address Settings
When in Addressable mode, set the instrument’s address within the following range.
0–30
Each device that can be connected via GP-IB has its own unique GP-IB address. This
address allows each device to be distinguished from other devices. Therefore, when
connecting the instrument to a PC or other device, make sure not to set the same
address on the instrument as any of the other devices.
Perform these steps if you will use AQ6370C/AQ6373/AQ6375 commands.
8.
Press the COMMAND FORMAT soft key. The command format setting menu is
displayed.
Normally, you will enter AQ6370C, AQ6373 or AQ6375. If you wish to use AQ6317
9.
commands, enter AQ6317.
Note
• Do not change an address while the controller or other devices are using GP-IB.
• Set addresses other than those used by the GP-IB2 port.
Command Format Settings
Normally, you will enter AQ6370C, AQ6373 or AQ6375 mode.
If you wish to use the commands of the AQ6317 (another product in the series),
enter AQ6317. See the appendix for AQ6317 commands that are compatible with the
AQ6370C/AQ6373/AQ6375.
Note
Controller functions and TLS address settings are entered when controlling an external device
using the GP-IB2 port. These settings are invalid for the GP-IB1 port.
1
2
2.5 Responses to Interface Messages
Responses to Interface Messages
Responses to Uniline Messages
IFC (Interface Clear)
Clears talker and listener. Output is cancelled if outputting data.
REN (Remote Enable)
Switches between Local and Remote.
IDY (Identify) is not supported.
Responses to Multiline Messages (Address Commands)
GTL (Go To Local)
Switches to Local mode.
SDC (Selected Device Clear)
• Clears program messages (commands) being received, and the output queue.
• The *OPC and *OPC? commands are invalid during execution.
• The *WAI command closes immediately.
PPC (parallel poll configure), GET (group execute trigger), and TCT (take control) are not
supported.
GP-IB Interface (GP-IB1 Port)
Responses to Multiline Messages (Universal Commands)
LLO (Local Lockout)
Disables the front panel SHIFT+CLEAR operation, and prohibits switching to Local
mode.
DCL (Device Clear)
Same operation as SDC.
SPE (Serial Poll Enable)
Places the talker function of all devices on the bus in Serial poll mode. The controller
polls each device in order.
SPD (Serial Poll Disable)
Cancels Serial poll mode for the talker function of all devices on the bus.
PPU (Parallel Poll Unconfigure) is not supported.
Definition of Interface Messages
Interface messages are also called interface commands or bus commands, and are
commands that are issued from the controller. Interface messages come in the following
categories.
Uniline Messages
A message is sent through a single command line. The following are the three types of
uniline messages.
IFC (Interface Clear)
REN (Remote Enable)
IDY (Identify)
IM AQ6370C-17EN
2-7
2-8
IM AQ6370C-17EN
Interface Messages
Uniline
messages
Address
commands
Universal
commands
IFC
REN
IDY
GTL
SDC
PPC
GET
TCT
LLO
DCL
PPU
SPE
SPD
Listener
address
Talker
address
Secondary
command
Multiline messages
2.5 Responses to Interface Messages
Multiline Messages
A message is sent through eight data lines. Multiline messages come in the following
categories.
Address Commands
These commands are valid when the device is specified as the listener or the talker.
The following are the five types of address commands.
These commands are valid for all devices regardless of whether they are specified as
listeners, talkers, or neither. The following are the three types of universal commands.
LLO (Local Lockout)
DCL (Device Clear)
PPU (Parallel)
To Local)
Additionally
secondary command.
A star indicates an interface message supported by this instrument.
Note
Differences between SDC and DCL
Of the multiline messages, SDC is an address command requires specification of the talker
, an interface message can consist of a listener address, talker address, or
or listener, and DCL is a universal command that does not require specification of the talker
or listener. Therefore, SDC is applicable only to certain devices, but DCL is applicable to all
devices on the bus.
1
2
2.6 Sample Program
The following shows an example of controlling the AQ6370C/AQ6373/AQ6375 remotely
using the GP-IB port. The sample program uses Visual Basic 6.0 as the programming
language. Also, a GP-IB board by National Instruments (hereinafter, “NI”) is used as the
GP-IB controller and the NI-supplied driver is used as a library.
Sample Program 1
The program sets the measurement conditions (center wavelength, span, sensitivity,
and the sampling number) and then performs a sweep. After completing this sweep, the
program executes a thresh-based spectrum width analysis and then outputs the results
to the screen.
Const BOARD_ID = 0 ' GP-IB Interface card
Const osa = 1 ' OSA GP-IB Address
Private Sub AQ637XTEST()
Dim intData As Integer
Dim dblMeanWL As Double
Dim dblSpecWd As Double
Dim strData As String
analysis(THRESH type)
Call SendGPIB(osa, ":calc") ' Analysis Execute
Call SendGPIB(osa, ":calc:data?") ' get data
strData = RecieveGPIB(osa)
IM AQ6370C-17EN
2-9
2-10
IM AQ6370C-17EN
2.6 Sample Program
' === Capture analytical results ===
dblMeanWL = Val(Left(strData, 16)) ' get mean wavelegnth
dblSpecWd = Val(Mid(strData, 18, 16)) ' get spectrum width
' === Output the result to the screen ===
MsgBox ("MEAN WL: " & dblMeanWL * 1000000000# & " nm" & vbCrLf & _
"SPEC WD: " & dblSpecWd * 1000000000# & " nm")
' === Disconnect ===
Call EnableLocal(BOARD_ID, intAddrList())
End Sub
'==================================================
' Sub routine
' Send Remote Command
'==================================================
Sub SendGPIB(intAddr As Integer, strData As String)
Call Send(BOARD_ID, intAddr, strData, NLend)
If (ibsta And EERR) Then
MsgBox " GP-IB device can't write"
End If
End Sub
'==================================================
' Sub routine
' Recieve query data
'==================================================
Function RecieveGPIB(intAddr As Integer) As String
Const READSIZE = 10000
Dim strBuffer As String
strBuffer = Space(READSIZE)
RecieveGPIB = ""
Do
DoEvents
Call Receive(BOARD_ID, intAddr, strBuffer, STOPend)
If (ibsta And EERR) Then
MsgBox " GP-IB device can't read."
RecieveGPIB = ""
Exit Function
Else
RecieveGPIB = RecieveGPIB & Left(strBuffer, ibcntl)
End If
Loop Until ((ibsta And EEND) = EEND)
End Function
1
2
2.6 Sample Program
Sample Program 2
Save an image of the instrument's screen to a BMP file, then use a file transfer command
to load the file onto the PC. Save the image on the PC under the file name, "C:\test.
bmp".
Private Sub Command1_Click()
Dim intAddrList(31) As Integer
Dim intData As Integer
Dim lngDataSize As Long
Dim strData As String
Dim intI As Integer
Dim byteData() As Byte
Dim byteSaveData() As Byte
Dim lngL As Long
' GPIB time out setting
Call ibtmo(BOARD_ID, T30s) 'Time out = 30sec
'----- send command to OSA
Call SendGPIB(osa, "CFORM1") ' Command mode set(AQ637X mode)
Call SendGPIB(osa, ":mmem:stor:grap color,bmp,""test"",int")
' Save bmp file to internal memory
Call SendGPIB(osa, ":mmem:data? ""test.bmp"",int")
' get file data from OSA
lngDataSize = RecieveBinaryGPIB(osa, byteData())
' Recieve binary block data
GP-IB Interface (GP-IB1 Port)
If byteData(0) <> Asc("#") Then ' check first data
MsgBox "Data format error"
Exit Sub
End If
'----- calculate data size
intData = byteData(1) - Asc("0")
strData = ""
For intI = 1 To intData
strData = strData + Chr(byteData(intI + 1))
Next intI
lngDataSize = Val(strData) ' data size
'----- make save data
ReDim byteSaveData(lngDataSize)
For lngL = 0 To lngDataSize - 1
byteSaveData(lngL) = byteData(lngL + intData + 2)
Next lngL
'----- save data to file
Open "c:\test.bmp" For Binary As #1
Put #1, , byteSaveData
Close #1
'----- Disconnect
Call EnableLocal(BOARD_ID, intAddrList())
MsgBox "Complete"
End Sub
IM AQ6370C-17EN
2-11
2.6 Sample Program
'==================================================
' Sub routine
' Send Remote Command
'==================================================
Sub SendGPIB(intAddr As Integer, strData As String)
Call Send(BOARD_ID, intAddr, strData, NLend)
If (ibsta And EERR) Then
MsgBox " GP-IB device can't write"
End If
End Sub
'==================================================
' Sub routine
' Recieve Binary query data
'==================================================
Function RecieveBinaryGPIB(intAdr As Integer, byteArray() As Byte) As
Long
Const READSIZE = 1200000 ' MAX 1.2MB
Dim lngSize As Long
Dim lngL As Long
Dim lngPos As Long
Dim ud As Integer
Dim byteLow As Byte
Dim byteHigh As Byte
Dim strA As String
Dim intDummy(READSIZE) As Integer
lngSize = 0
'----- open device
ud = ildev(0, intAdr, 0, T30s, 1, 0)
lngPos = 0
'----- read data
Do
DoEvents
Call ibrdi(ud, intDummy, READSIZE)
If (ibsta And EERR) Then
MsgBox "GP-IB device can't Read(GPIB:" & intAdr & ")"
RecieveBinaryGPIB = 0
Exit Function
Else
ReDim Preserve byteArray(lngPos + ibcntl + 2)
For lngL = 0 To ibcntl / 2 - 1
strA = Right("0000" & Hex(intDummy(lngL)), 4)
byteHigh = Val("&H" + Left(strA, 2))
byteLow = Val("&H" + Right(strA, 2))
byteArray(lngPos) = byteLow
byteArray(lngPos + 1) = byteHigh
lngPos = lngPos + 2
Next lngL
End If
Loop While (ibcntl = READSIZE)
RecieveBinaryGPIB = lngPos
End Function
2-12
IM AQ6370C-17EN
1
2
3
Chapter 3 Ethernet Interface
3.1 Connecting via Ethernet
You can connect to a LAN using the Ethernet interface for control of the instrument from
a PC.
Ethernet Interface Specifications
Communication ports: 1
Electromechanical specifications: Conforms to IEEE802.3
Transmission method: Ethernet (10BASE-T/100BASE-TX)
Transmission speed: 10 Mbps/100 Mbps
Communication protocol: TCP/IP
Connector type: RJ45
Port number used: 10001/tcp (default)
Connections
Connect a UTP (unshielded twisted-pair) cable or an STP (shielded twisted-pair) cable
that is connected to another device to the 100BASE-TX port on the rear panel of the
instrument.
Ethernet Interface
Precautions When Making Connections
• Be sure to use a straight cable through a hub when connecting a PC to the instrument.
Performance cannot be guaranteed if a 1-to-1 connection is made with a cross cable.
• When using a UTP
(straight) cable, make sure that it is a category 5 cable.
IM AQ6370C-17EN
3-1
3-2
IM AQ6370C-17EN
3.2 Setting Up Ethernet
Procedure
Selecting the Communication Interface
Press SYSTEM. The system setting menu is displayed.
1.
Press the MORE1/4 soft key. The communication interface setting menu is
2.
displayed.
Press the REMOTE INTERFACE soft key. The setting menu for the interface to
3.
be used is displayed.
Press the ETHERNET soft key to specify Ethernet as the communication
4.
interface.
Setting Up TCP/IP
Press the NETWORK SETTING soft key. The ethernet setting menu is displayed.
5.
Press the TCP/IP SETTING soft key. The TCP/IP setting menu is displayed.
6.
Using the <, > soft keys, select AUTO (DHCP) or MANUAL.
7.
Press the SELECT soft key. The item is selected.
8.
1
2
3
<
>
,
Command format setting
Remote port number setting
3.2 Setting Up Ethernet
If you select MANUAL, enter the IP address, subnet mask, and default gateway.
9.
Using the arrow soft keys, select an input position, and press ENTER. If you
selected AUTO, skip to step 10.
Setting the Remote Port Number
Setting the Command Format
Enter a number using the rotary knob or the <, >,
10.
When all settings are entered, press the DONE soft key.
11.
Press the REMOTE PORT NO. soft key. The port number setting screen is
12.
displayed.
Enter a port number using the rotary knob or the arrow keys, and press ENTER.
13.
Perform these steps if you will use AQ6370C, AQ6373 or AQ6375 commands.
14.
Press the COMMAND FORMAT soft key. The command format setting menu is
displayed.
Normally, you will enter AQ6370C, AQ6373 or AQ6375. If you wish to use AQ6317
15.
commands, enter AQ6317.
keys, and press ENTER.
Ethernet Interface
Setting the User Name and Password
Press the REMOTE USER ACCOUNT soft key. The user name and password
16.
setting menu is displayed.
Press the USER NAME soft key. The user name setting screen appears. The
17.
default is anonymous.
Specify a user name using 11 alphanumeric characters or fewer.
18.
If the user name is set to anonymous, the password setting is not required.
Press the PASSWORD soft key. The password setting screen is displayed.
19.
Specify a password using 11 alphanumeric characters or fewer.
20.
IM AQ6370C-17EN
3-3
3-4
IM AQ6370C-17EN
3.2 Setting Up Ethernet
Explanation
TCP/IP Settings
REMOTE PORT NO.
User Authentication
Remote Control Using Commands
It is necessary to set up the IP address for correct use of the instrument.
If a DHCP server is provided on the network to which this instrument is connected, the
IP address given to the instrument is automatically set. Thus, set the item IP ADDRESS
SETTING under SYSTEM <NETWORK SETTING><TCP/IP SETTING> to “AUTO.”
Please ask your network administrator for details about network connections.
Sets the port number for remote control via ETHERNET. (Default: 10001.)
User authentication is required to connect to the instrument from a PC over an Ethernet
network. If the user name is anonymous, a password is not required. This instrument
supports plain text authentication and the MD5 Message Digest Algorithm by RSA Data
Security, Inc.
The AQ6370C/AQ6373/AQ6375 can be remote controlled using the LAN port.
For remote commands, use the same commands as those for control via the GP-IB
interface.
Switching Interfaces
Select GP-IB, RS-232C, or ETHERNET as an interface to use for remote control. When
set to ETHERNET, the LAN mode connection status is reset. Otherwise, the connection
is kept open unless closed by the controller.
Remote Commands
As with GP-IB-based remote control, you can select the command format from the
AQ6370C, AQ6373 or AQ6375 mode or from the AQ6317-compatible mode.
Interrupt by SRQ
An SRQ interrupt does not occur during LAN-based remote control.
Status Register
The status registers operate in the same manner as in remote control via the GP-IB
interface. Using the “*SPOOL?” command dedicated for remote control using the LAN
port allows you to read the status registers, as in the case with serial polling via the GPIB interface.
*STB?:
FORMAT key
SPOLL?: When
Delimiter
The delimiter for LAN-based remote control is fixed to CR + LF.
Transmission of Talker Data
When the instrument receives talker data from an external PC, it sends the data to the
external PC's buffer. It receives the external PC's buffer data and stores the query data.
When AQ6370C/AQ6373/AQ6375 is the setting of the COMMAND
AQ6317 is the setting of the COMMAND FORMAT key
Connection
The instrument can only be connected to one controller (an external PC or other device).
If the instrument receives a connection request from a controller while already connected
to another controller, the new connection is not opened and the existing connection is
kept open.
1
2
3
3.2 Setting Up Ethernet
Computer Name
The instrument’s computer name is as follows.
For the AQ6370C
“6370C@@@@@@@@@” (where “@@@@@@@@@” is the serial number)
For the AQ6373
“6373@@@@@@@@@” (where “@@@@@@@@@” is the serial number)
For the AQ6375,
“AQ6375@@@@@@@@@” (where “@@@@@@@@@” is the serial number)
The machine number is a 9-digit alphanumeric number on the back of the unit. You can
not change the computer name.
Commands that are Necessary for Remote Control over the LAN
The authentication
Both the OPEN and CLOSE commands are also valid in AQ6317 mode.
OPEN
Function Sends the user name and starts user authentication.
OPEN<wsp>"username"
Syntax
username = the user name
Example
-> AUTHENTICATE CRAM-MD5.
Explanation Authentication is carried out with the OPEN command as follows.
For Plain Text Authentication
1. Send OPEN "username" to the AQ6370C/AQ6373/AQ6375. The response
2. Confirm that the received message is "AUTHENTICATE CRAM-MD5."
3. Send the password to the AQ6370C/AQ6373/AQ6375 (anything can be input if the
4. If the message, "READY" is received from the AQ6370C/AQ6373/AQ6375,
OPEN "yokogawa"
by OPEN command
message is received from the AQ6370C/AQ6373/AQ6375.
user name is anonymous).
authentication was successful. The AQ6370C/AQ6373/AQ6375's REMOTE
indicator lights, and sending of remote commands is enabled. If the user name and
password are incorrect, authentication fails and the connections is closed.
is required to remote control over
Ethernet Interface
the LAN.
For Encrypted Authentication
1. Send OPEN "username" to the AQ6370C/AQ6373/AQ6375. The response
message is received from the AQ6370C/AQ6373/AQ6375.
2. Confirm that the received message is "AUTHENTICATE CRAM-MD5."
3. Send "AUTHENTICATE CRAM-MD5 OK" to the AQ6370C/AQ6373/AQ6375. The
response message (challenge string) is received from the AQ6370C/AQ6373/
AQ6375.
4. The received challenge string and password are processed with an MD5 hash
algorithm (anything can be input if the user name is anonymous).
5. Send the returned hash data (as a 32-character hexadecimal string in lower case)
to the AQ6370C/AQ6373/AQ6375, and receive the response message.
6. If the message, "READY" is received from the AQ6370C/AQ6373/AQ6375,
authentication was successful. The AQ6370C/AQ6373/AQ6375's REMOTE
indicator lights, and sending of remote commands is enabled. If the user name and
password are incorrect, authentication fails and the connection is closed.
CLOSE
Function Closes the connection (turns it OFF), and switches to local mode.
CLOSE
Syntax
Example
CLOSE
IM AQ6370C-17EN
3-5
3-6
IM AQ6370C-17EN
3.3 Sample Program
Sample Program 1
Sending an invalid talker command to the AQ6370C/AQ6373/AQ6375 and then receiving
data with the instrument specified as a talker causes the GP-IB bus to stop because
the instrument has no data to send. In this case, a GPIB timeout occurs, followed by
recovery of the GP-IB bus.
The following shows an example of controlling the AQ6370C/AQ6373/AQ6375 remotely
using the Ethernet port. The sample program uses Visual Basic 6.0 as the programming
language. The program sets the measurement conditions (center wavelength, span,
sensitivity, and the sampling number) and then performs a sweep. After completing this
sweep, the program executes a thresh-based spectrum width analysis and then outputs
the results to the screen. The conditions are the same as those of the GP-IB sample
program in section 2.6, “Sample Program.”
Private Sub AQ637XTEST()
Dim intData As Integer
Dim dblMeanWL As Double
Dim dblSpecWd As Double
Dim strData As String
' === Connect ===
Winsock1.RemoteHost = "192.168.1.100" ' OSA IP address
Winsock1.RemotePort = 10001 ' OSA remote port num
Winsock1.Connect
' === Wait to connect complete ===
While (Winsock1.State <> sckConnected)
DoEvents
Wend
' === Authentication by OPEN Command ===
SendLan "open ""anonymous"""
ReceiveLan strData
SendLan " "
ReceiveLan strData
If (Left(strData, 5) <> "ready") Then
MsgBox "User authentication error."
Exit Sub
End If
' === Set the measurement parameter ===
SendLan "*RST" ' Setting initialize
SendLan "CFORM1" ' Command mode set
(AQ637X mode)
SendLan ":sens:wav:cent 1550nm" ' sweep center wl
SendLan ":sens:wav:span 10nm" ' sweep span
SendLan ":sens:sens mid" ' sens mode = MID
SendLan ":sens:sweep:points:auto on" ' Sampling Point = AUTO
analysis(THRESH type)
SendLan ":calc" ' Analysis Execute
SendLan ":calc:data?" ' get data
ReceiveLan strData
' === Capture analytical results ===
dblMeanWL = Val(Left(strData, 16)) ' get mean wavelegnth
dblSpecWd = Val(Mid(strData, 18, 16)) ' get spectrum width
' === Output the result to the screen ===
MsgBox ("MEAN WL: " & dblMeanWL * 1000000000# & " nm" & vbCrLf & _
"SPEC WD: " & dblSpecWd * 1000000000# & " nm")
' === Disconnect ===
Winsock1.Close
'Wait to disconnect complete
While (Winsock1.State <> sckClosed)
DoEvents
Wend
End Sub
Ethernet Interface
'==================================================
' Sub routine
' Send Remote Command
'==================================================
Sub SendLan(strData As String)
Winsock1.SendData strData & vbCrLf
DoEvents
End Sub
'==================================================
' Sub routine
' Receive query data
'==================================================
Sub ReceiveLan(strData As String)
Dim strData2 As String
strData = ""
Do
Winsock1.GetData strData2, vbString
strData = strData + strData2
DoEvents
Loop While (Right(strData, 1) <> vbLf)
End Sub
IM AQ6370C-17EN
3-7
3-8
IM AQ6370C-17EN
3.3 Sample Program
Sample Program 2
Save an image of the instrument's screen to a BMP file, then use a file transfer command
to load the file onto the PC. Save the image on the PC under the file name, "C:\test.
bmp". The conditions are the same as the GP-IB sample program in section 2.6, "Sample
Programs."
Const TIMEOUT = 1 ' time out(sec)
Private Sub cmdConnect_Click()
Dim strData As String
Dim byteData() As Byte
Dim lngDataSize As Long
'=== Connect ===
If (ConnectLan("192.168.1.100", 10001) = False) Then
MsgBox "Connection error"
Winsock1.Close
Exit Sub
End If
' === Authentication by OPEN Command ===
SendLan "open ""anonymous""" ' Send user name
lngDataSize = ReceiveLan(strData)
If (lngDataSize = -1) Then
MsgBox "Data Receive Error"
Winsock1.Close
Exit Sub
End If
SendLan " " ' Send password
lngDataSize = ReceiveLan(strData)
If (lngDataSize = -1) Then
MsgBox "Data Receive Error"
Winsock1.Close
Exit Sub
End If
If (Left(strData, 5) <> "ready") Then
MsgBox "User authentication error."
Winsock1.Close
Exit Sub
End If
'----- send command to OSA
Call SendLan("CFORM1") ' Command mode
set(AQ637X mode)
Call SendLan(":mmem:stor:grap color,bmp,""test"",int")
' Save bmp file to internal memory
Call SendLan(":mmem:data? ""test.bmp"",int") ' get file data from
lngDataSize = ReceiveBinaryLan(byteData()) ' Recieve binary block data
'----- save data to binary file
Open "c:\test.bmp" For Binary As #1
Put #1, , byteData
Close #1
'----- Disconnect
Winsock1.Close
'Wait to disconnect complete
While (Winsock1.State <> sckClosed)
DoEvents
Wend
MsgBox "Complete"
End Sub
OSA
1
2
3
3.3 Sample Program
'==================================================
' Sub routine
' Connect OSA via ETHERNET
' in: strIP IP Address(Ex. "192.168.1.100") or Computer Name
' intPort port number (Ex. 10001)
' out: none
' ret: OK/NG true: OK, false: NG
'==================================================
Function ConnectLan(strIP As String, intPort As Integer) As Boolean
Dim sglStart As Single
Dim sglEnd As Single
Dim sglNow As Single
Dim bConnect As Boolean
' === Connect ===
Winsock1.RemoteHost = strIP ' OSA IP address
Winsock1.RemotePort = intPort ' OSA remote port num
Winsock1.Connect
' === Wait to connect complete ===
While ((Winsock1.State <> sckConnected) And (bConnect = True))
DoEvents
' Timeout check
sglNow = Timer()
If (sglNow < sglStart) Then sglNow = sglNow + 86400
If sglNow >= sglEnd Then bConnect = False
Wend
Ethernet Interface
'----- return value set
ConnectLan = bConnect
End Function
'==================================================
' Sub routine
' Send Remote Command
'==================================================
Sub SendLan(strData As String)
Winsock1.SendData strData & vbCrLf
DoEvents
End Sub
'==================================================
' Sub routine
' Receive query data
' in: none
' out: strData Receive data
' ret: Receive data size (Error: -1)
'==================================================
Function ReceiveLan(strData As String) As Long
Dim strData2 As String
Dim sglStart As Single
Dim sglEnd As Single
Dim sglNow As Single
Dim bTimeout As Boolean
strData = ""
Do
' data receive
DoEvents
Winsock1.GetData strData2, vbString
strData = strData + strData2
' Timeout check
sglNow = Timer()
If (sglNow < sglStart) Then sglNow = sglNow + 86400
If sglNow >= sglEnd Then bTimeout = True
Loop While ((Right(strData, 1) <> vbLf) And (bTimeout = False))
' return value set
If bTimeout = True Then
ReceiveLan = -1
Else
ReceiveLan = Len(strData)
End If
End Function
'====================================================================
' Sub routine
' Recieve Binary query data
' in: none
' out: byteArray Receive data (byte array)
' ret: Receive data size (Error: -1)
'====================================================================
Function ReceiveBinaryLan(byteArray() As Byte) As Long
Dim lngPos As Long
Dim lngTempPos As Long
Dim bData As Byte
Dim intI As Integer
Dim intJ As Integer
Dim strA As String
Dim lngDataLength As Long
Dim byteDummy() As Byte
Dim sglStart As Single
Dim sglEnd As Single
Dim sglNow As Single
Dim bTimeout As Boolean
Do
DoEvents
If (lngTempPos > UBound(byteDummy)) Then
Winsock1.GetData byteDummy, vbArray + vbByte, lngDataLength
' Continue to receive
lngTempPos = 0
Else
byteArray(lngPos) = byteDummy(lngTempPos)
lngPos = lngPos + 1
lngTempPos = lngTempPos + 1
End If
'Timeout check
sglNow = Timer()
If (sglNow < sglStart) Then sglNow = sglNow + 86400
If sglNow >= sglEnd Then bTimeout = True
Loop Until ((lngPos = lngDataLength) Or (bTimeout = True))
End If
Ethernet Interface
' return value set
If bTimeout = True Then
ReceiveBinaryLan = -1
Else
ReceiveBinaryLan = lngDataLength
End If
End Function
'====================================================================
' Read binary data(1byte)
'====================================================================
Sub ReadIPBin(byteData As Byte)
Dim sglStart As Single
Dim sglEnd As Single
Dim sglNow As Single
Dim bTimeout As Boolean
'----- wait until data received or timeout
Do
DoEvents
'Timeout check
sglNow = Timer()
If (sglNow < sglStart) Then sglNow = sglNow + 86400
If sglNow >= sglEnd Then bTimeout = True
Loop Until ((Winsock1.BytesReceived > 1) Or (bTimeout = True))
Winsock1.GetData byteData, vbByte, 1 ' 1byte read
End Sub
IM AQ6370C-17EN
3-11
1
2
3
4
Chapter 4 Serial (RS-232) Interface
4.1 Connecting via the Serial (RS-232) Interface
Serial Interface Functions and Specifications
Receive Function
You can enter the same settings as can be entered with front panel keys.
A settings output request is received.
Send Function
You can output settings and measured results.
Serial (RS-232) Interface Specifications
Electrical characteristics: Conforms to the EIA-574 standard (EIA-232 (RS-232), 9-pin)
Connection type: Point-to-point
Communication method: Full duplex
Synchronization method: Start-stop synchronization
Baud rate: 1200, 2400, 4800
Start bit: 1 bit, fixed
Data length:
Parity: Odd, Even, or None
Stop bit:
Connector: DELC-J9P
Flow control: Hardware handshaking using RS/CS or Non (selectable).
8 bit, fixed
1 bit, fixed
, 9600, 19200, 38400, 57600, 115200
AF-13L6 (JAE or equivalent)
Serial (RS-232) Interface
Connection
Make the connection as shown in the figure below.
IM AQ6370C-17EN
4-1
4-2
IM AQ6370C-17EN
DELC-J9PAF-13L6 or equivalent
4
5
3
2
1
9
8
7
6
58723
(2) (3) (4) (5)(7)
PCAQ6370
RS [Request to send ... Receive OK]
SD [Send data]
RD [Receive data]
2
3
8
7
CS [Clear to send ... Preparation OK]
4.1 Connecting via the Serial (RS-232C) Interface
Connector and Signal Names
2 RD (received data): Data received from the PC.
Signal direction....input
3 SD (send data): Data sent to the PC.
Signal direction....output
5 SG (signal ground): Ground for the signal.
7 RS (request to send): Handshaking method when receiving data from the PC.
Signal direction....output
8 CS (clear to send): Handshaking method when sending data to the PC.
Signal direction....input
* Pins 1, 4, 6, and 9 are not used.
9-Pin to 25-pin Adapter and Signal Names
Numbers in parentheses are the pin numbers of the 25-pin connector.
Signal Direction
The directions of signals used by the instrument's serial interface are shown in the figure
below.
1
2
3
4
Signal Chart
Pin Number
(9-Pin Connector)
Code
RS-232
Name
CCITT
JIS
5
3
2
8
7
AB (GND)
BA (TXD)
BB (RXD)
CB (CTS)
CA (RTS)
102SG
103
104
106
105
SD
RD
CS
RS
Signal ground
Send data
Request to send
Receive data
Clear to send
SD
RD
RS
CS
SG
SD
RD
RS
SG
• OFF-OFF/XON-XON
PCAQ6370
SD
RD
RS
CS
SG
SD
RD
RS
SG
• Hard(CS-RS)
PCAQ6370
CS
CS
2
3
8
7
5
2
3
8
7
5
2
3
8
7
5
2
3
8
7
5
4.1 Connecting via the Serial (RS-232C) Interface
List of RS-232 Standard Signals and JIS and CCITT Cable Addresses
Signal Wire Connection Example
Pin numbers are for 9-pin connectors.
In most cases, use a cross cable.
Serial (RS-232) Interface
IM AQ6370C-17EN
4-3
4-4
IM AQ6370C-17EN
4.2 Remote Control Using Commands
The AQ6370C/AQ6373/AQ6375 can be controlled remotely using the RS-232 port.
When controlling the instrument remotely, use a cross cable to connect the instrument to
the PC. Also, remote commands are the same as for remote control via GP-IB.
Interrupt by SRQ
An SRQ interrupt does not occur during RS-232-based remote control.
Status Registers
The status registers operate in the same manner as in remote control via the GP-IB
interface. Using the “*STB?” or “SPOLL?” command dedicated for remote control using
the LAN port allows you to read the status registers, as in the case with serial polling via
the GP-IB interface.
*STB?:
SPOLL?: When AQ6317 is the setting of the COMMAND FORMAT key
Delimiter
The delimiter for RS-232-based remote control is fixed to CR + LF.
When AQ6370C/AQ6373/AQ6375 is the setting of the COMMAND
FORMAT key
Transmission of Talker Data
When the instrument receives talker data from an external PC, the data is sent to the
external PC’s buffer. It receives the external PC's buffer data and stores the query data.
1
2
3
4
4.3 Setting Up RS-232
Procedure
Selecting the Communication Interface
Press SYSTEM. The system setting menu is displayed.
1.
Press the MORE1/4 soft key. The communication interface setting menu is
2.
displayed.
Press the REMOTE INTERFACE soft key. The setting menu for the interface to
3.
be used is displayed.
Press the RS-232 soft key to specify RS-232 as the communication interface.
4.
Serial (RS-232) Interface
Setting the Baud Rate
Press the RS-232 SETTING soft key. The RS-232 setting menu is displayed.
5.
Press the BAUD RATE soft key. The baud rate setting menu is displayed.
6.
Press the soft key corresponding to the desired baud rate setting. The baud rate
7.
is set.
IM AQ6370C-17EN
4-5
4-6
IM AQ6370C-17EN
4.3 Setting Up RS-232C
Setting the Parity
Press the PARITY soft key. The parity setting menu is displayed.
8.
Press the soft key corresponding to the desired parity setting. The parity is set.
9.
Setting the Flow Control
Press the FLOW soft key. The flow control setting menu is displayed.
10.
Press the soft key corresponding to the desired flow control setting. The flow
11.
control is set.
Setting the Command Format
Perform these steps if you will use AQ6317 commands.
12.
Press the COMMAND FORMAT soft key. The command format setting menu is
displayed.
Normally, you will enter AQ6370C, AQ6373 or AQ6375. If you wish to use AQ6317
13.
commands, enter AQ6317.
1
2
3
4
Explanation
4.3 Setting Up RS-232C
The settings below are used when entering the settings that can be entered using the
instrument’s panel keys from a controller, or when outputting settings or waveform data
to the controller.
Baud Rate Setting
Select a baud rate from the following.
1200 bps, 2400 bps, 4800 bps, 9600 bps, 19200 bps, 38400 bps, 57600 bps, or 115200
bps
Parity Rate Setting
Select a parity from the following.
NONE, ODD, or EVEN
Flow Control Setting
Select a Transmission data control-Receive data control from the following.
Xon/Xoff, HARDWARE, NONE
Setting the Command Format
Normally, you will enter AQ6370C, AQ6373 or AQ6375 mode.
If you wish to use the commands of the AQ6317 (another product in the series),
enter AQ6317. See the appendix for AQ6317 commands that are compatible with the
AQ6370C, AQ6373 or AQ6375.
Serial (RS-232) Interface
IM AQ6370C-17EN
4-7
1
2
3
4
5
GP-IB1
GP-IB2
Chapter 5 GP-IB Interface (GP-IB2 Port )
5.1 Connecting via GP-IB2
GP-IB Cable
This instrument is equipped with an IEEE standard 488-1978 24-pin GP-IB connector.
Use a GP-IB cable that conforms to the IEEE standard 488-1978.
Connections
The instrument has two ports, GP-IB1 and GP-IB2.
GP-IB1 port: Can be connected to a PC for remote control of the instrument from the
PC.
GP-IB2 port: Can be connected to another instrument for remote control of that
instrument using the
For now, you will connect a PC to the GP-IB2 port.
Turn OFF all the power switches of the AQ6370C/AQ6373/AQ6375 and any devices
to be connected to it. Connect a cable to the GP-IB2 port on the rear panel of the
instrument.
AQ6370C/AQ6373/AQ6375’s program function.
GP-IB Interface (GP-IB2 port)
CAUTION
Always turn OFF the power to the instrument and the device to be connected to it
when connecting or disconnecting communication cables. Failure to turn OFF the
power can result in malfunction or damage to internal circuitry.
For precautions when making connections, see chapter 2, section 2.1, “Connecting via
GP-IB.”
IM AQ6370C-17EN
5-1
5-2
IM AQ6370C-17EN
5.2 GP-IB Interface Specifications
GP-IB Interface Specifications
Electromechanical specifications: Conforms to IEEE std. 488-1978
Functional specifications: See table below
Protocols: Conforms to IEEE std. 488.2-1992
Encoding: ISO (ASCII)
Mode: Addressable mode
Address setting: Addresses
setting screen in the SYSTEM menu.
Remote mode cancel:
Functional Specifications
Function Subset Description
Source handshake SH1 All capabilities of send handshake
Acceptor handshake AH1 All capabilities of receive handshake
Talker T4 Basic talker function
Listener L2 Basic listener function
Service request SR0 Service request function not provided
Remote local RL0
Parallel port PP0
Device clear DC0
Device trigger DT0
Controller C1 System controller IFC transmission
C28 Interface message transmission
Electrical characteristics E1 Open collector
Press LOCAL
that this is disabled when under Local Lockout
by the controller.
Local lockout function not provided
Parallel polling function not provided
Device clear function not provided
Device trigger function
C2 Controller in charge
C3 REN transmission
0-30 can be set in the GP-IB
to cancel Remote mode. Note
1
2
3
4
5
5.3 Setting the GP-IB Address
GP-IB address setting
System controller function setting
See chapter 2
Turnable laser source address setting
(set for TLS synchronous sweeping)
See chapter 2
Procedure
Selecting the Communication Interface
Press SYSTEM. The system setting menu is displayed.
1.
Press the MORE1/4 soft key. The communication interface setting menu is
2.
displayed.
Press the REMOTE INTERFACE soft key. The setting menu for the interface to
3.
be used is displayed.
Press the GP-IB soft key to specify GP-IB as the communication interface.
4.
GP-IB Interface (GP-IB2 port)
Setting the Address
Press the GP-IB SETTING soft key. The GP-IB setting menu is displayed.
5.
Press the GP-IB2 PORT ADDRESS soft key. The GP-IB2 port address setting
6.
screen is displayed.
Set the GP-IB2 port address using the rotary knob or the arrow keys, and press
7.
ENTER.
IM AQ6370C-17EN
5-3
5.3 Setting the GP-IB Address
Turning the System Controller Function ON and OFF
Setting the GP-IB Address of the Turnable Laser Source (for Synchronous
Sweeping)
Explanation
Enter the following settings to control an external device with the instrument’s program
function.
Setting the GP-IB2 Port Address
When in Addressable mode, set the instrument's address within the following range.
0–30
Each device that can be connected via GP-IB has its own unique GP-IB address. This
address allows each device to be distinguished from other devices. Therefore, make
sure not to set the same address on the instrument as any of the other devices. Also, set
addresses other than the instrument’s GP-IB address (MY ADDRESS).
Press the SYSTEM CONTROLLER soft key to turn the function ON or OFF.
8.
Turn it ON to control an external device.
Press the TLS ADDRESS soft key. The TLS address setting screen is displayed.
9.
Set the TLS address using the rotary knob or the arrow keys, and press
10.
ENTER.
Turning ON the System Controller Function
Turn ON this function to control an external device with the instrument's program
function.
Setting the TLS Address
Specify the GP-IB address of the turnable laser source to be controlled by the instrument.
Note
• A controller such as a PC that is connected to the GP-IB2 port cannot remotely control the
AQ6370C/AQ6373/AQ6375.
• Even if a turnable laser source or an external device to be controlled by the AQ6370C/
AQ6373/AQ6375 using program functions is connected to the GP-IB1 port, it cannot remote
control the AQ6370C/AQ6373/AQ6375.
• The GP-IB1 and GP-IB2 ports are independent of each other. Thus, a controller connected
to the GP-IB1 port cannot directly send a message to an external device connected to the
GP-IB2 port.
• When a PC or other controller is connected to the GP-IB1 port, connecting the GP-IB1 port
with the GP-IB2 port results in improper operation. Do not connect these ports together, or
turn OFF the system controller function. The default is ON.
5-4
IM AQ6370C-17EN
1
2
3
4
5
6
Chapter 6
Status Registers
6.1 Status Registers
This instrument is equipped with the status registers shown in the table below. See the
next page for a diagram of all status registers.
This instrument has the following status registers defined by IEEE 488-2 and SCPI:
•
Status byte registers
Standard event registers
•
• Operation status registers
• Questionable status registers
Also, this instrument has an operation status bit (OPS) and a questionable status
bit (QUS), each of which contains the summary information of each piece of register
information, as the extension bits of the status byte register.
List of Status Registers
Register Name Description
Status byte registers Register defined by IEEE 488.2
STB: Status Byte Register Same as the above
SRE: Service Request Enable Register Same as the above
Standard event registers Register defined by IEEE 488.2
ESR: Standard Event Status Register Same as the above
ESE: Standard Event Status Register
Operation status registers Provides information on operation execution
(such as being swept, copied, or under calibration).
Operation Event Register A register indicating the presence/absence of an
The structure of the status byte registers is shown below. The contents and actions of
these registers comply with the IEEE 488.2 standards.
Also, the AQ6370C/AQ6373/AQ6375 also provides the extended OPS and QUS bits to
the status byte register.
Status Registers
IM AQ6370C-17EN
Status Byte Register Contents
Bit Event Name Description Decimal Value
Bit 7 OPS Summary bit of operation status 128
Bit 6 RQS, MSS “1” if there is more than one service request 64
Bit 5 ESB Summary bit of standard event status register 32
Bit 4 MAV “1” if the output buffer contains data 16
Bit 3 QUS Summary bit of questionable status 8
Bit 2 None Not used (always 0) 0
Bit 1 None Not used (always 0) 0
Bit 0 None Not used (always 0) 0
6-3
6-4
IM AQ6370C-17EN
6.2 Status Byte Registers
Status Byte Register
Read
This register can be read by a serial poll or the common *STB? query. Note that the
information of bit 6 changes with a different reading method.
• When read by serial polling
An RQS message is read as bit 6 information.
After reading, the RQS message will be cleared.
•
When read by an *STB? common query
An MSS summary message is read as bit 6 information.
Even after reading, the MSS message will be held.
Bits other than bit 6 do not change.
The read action complies with the IEEE 488.2 standard.
Write
The contents of the register will be rewritten only when the status of an assigned
status data structure has been changed. The write action complies with the IEEE 488.2
standard.
Clear
All event registers and queues, not including the output queues and MAV bit, will be
cleared by the common *CLS command.
The clear action complies with the IEEE 488.2 standard.
Service Request Enable Register
Read
This register can be read by the common *SRE? query.
The value of bit 6, an unassigned bit, is always “0.” The contents of the register are not
cleared even when read. The read action complies with the IEEE 488.2 standard.
Write
This register can be written by the common *SRE command.
The set value of bit 6, an unassigned bit, is always ignored. The write action complies
with the IEEE 488.2 standard.
Clear
This register will be cleared under any of the following conditions.
• Data “0” is set using the common *SRE command.
• Power ON
The contents of the register are not cleared in the following cases.
• Receipt of the *RST
• Receipt of the *CLS command
• Device clear (DCL, SDC)
The clear action complies with the IEEE 488.2 standard.
command
1
2
3
4
5
6
6.3 Standard Event Status Registers
PON
bit 7
bit 6
CME
bit 5
EXE
bit 4
DDE
bit 3
QYE
bit 2
bit 1
OPC
bit 0
OR
&
Power on
not used
Command error
Execution error
Device dependency error
Query error
not used
Operation complete
*ESE
Standard Event Status Enable Register
*ESR
Standard Event Status Register
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
&
&
&
&
&
&
&
ESB Bit of the Status Byte Register
Structure
The structure of the standard event status registers is shown below. The contents and
actions of the registers comply with the IEEE 488.2 standards.
Status Registers
IM AQ6370C-17EN
Contents of the Standard Event Status Registers
Bit Event Name Description Decimal Value
Bit 7 PON (Power ON) Power is turned ON. 128
Set to “1” at startup.
Bit 6 None Not used (always 0) 0
Bit 5 CME A syntax error or unrecognizable command is
(command error) detected. GET is encountered between the 1st byte
of a program message and the program message
terminator
Bit 4 EXE (Execution error) Program data following the program header is 16
out of the effective range. Receipt of a program
message contradictory to device state.
Bit 3 DDE Error caused by an event other than CME, EXE, 8
(Device-specific error) or QYE.
Bit 2 QYE (Query error)
Bit 1 None
Bit 0 OPC Completion of command action:
(operation complete) Enabled only when *OPC is received
Disabled if *OPC? is received
Not used (always 0) 0
Access to an output queue was made with no 4
output existing. Output queue data was lost.
.
32
1
6-5
6-6
IM AQ6370C-17EN
6.3 Standard Event Status Registers
Standard Event Status Register
Read
This register can be read by the common *ESR? query.
Its contents will be cleared when read. The read action complies with the IEEE 488.2
standard.
Write
Contents of the register can be cleared. The register can be cleared but not written to.
Clear
This register will be cleared under any of the following conditions.
• Common *CLS command
• Common *ESR? query
The clear action complies with the IEEE 488.2 standard.
Standard Event Status Enable Register
Read
This register can be read by the common *ESE? query.
The read action complies with the IEEE 488.2 standard.
Write
This register can be written by the common *ESE command.
The write action complies with the IEEE 488.2 standard.
Clear
This register will be cleared under any of the following conditions.
• Data “0” is set using the common *ESE command.
• Power ON
The register cannot be cleared in the following cases.
• Receipt of the *RST
• Receipt of the *CLS command
• Device clear (DCL, SDC)
The clear action complies with the IEEE 488.2 standard.
command
1
2
3
4
5
6
6.4 Operation Status Registers
OR
&
&
&
&
&
&
&
&
OPS Bit of the Status Byte Register
not used
not used
not used
not used
not used
not used
not used
not used
not used
not used
not used
Auto Sweep
Cal/Alignment
Copy/File
Program
Sweep
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
bit 15
bit 14
bit 13
bit 12
bit 11
bit 10
bit 9
bit 8
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
bit 15
bit 14
bit 13
bit 12
bit 11
bit 10
bit 9
bit 8
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
bit 15
bit 14
bit 13
bit 12
bit 11
bit 10
bit 9
bit 8
&
&
&
&
&
&
&
&
45"501&3$0/%
Operation Condition Register
45"501&3&7&/
Operation Event Register
45"501&3&/"#
Operation Event Enable Register
Operation status registers report the operation status of the instrument. The operation
condition registers indicate the instrument’s condition. A change in an operation condition
register is latched into the operation event register. The user can refer to the operation
event register to view changes in the operation status. The summary information of the
instrument event register is set to the OPS bit of the status byte register. In this case,
only statuses corresponding to bits specified as “1” in the operation enable register are
included in the summary information.
Structure
The structure of the operation status register is shown below.
Structure of the Operation Status Register
Status Registers
IM AQ6370C-17EN
6-7
6-8
IM AQ6370C-17EN
6.4 Operation Status Register
Contents of the Operation Status Register
Bit Event Name Description Decimal Value
Bit 15 Not used Spare (always 0) 0
Bit 14 Not used Spare (always 0) 0
Bit 13 Not used
Bit 12 Not used
Not used Spare (always 0) 0
Bit 11
Bit 10 Not used
Bit 9 Not used
Bit 8 Not used
Bit 7 Not used
Bit 6 Not used
Bit 5 Not used
Bit 4 Auto Sweep
Bit 3 Cal/Alignment Completion of wavelength calibration or alignment 8
Bit 2 Copy/File Completion of printout or file operation 4
Bit 1 Program Completion of execution of the program functions 2
Bit 0 Sweep Completion of a sweep 1
Operation Condition Register
Read
This register can be read by the :STATus:OPERation:CONDition? query command.
Its contents will not be cleared even when read.
Spare (always 0) 0
Spare (always 0) 0
Spare (always 0) 0
Spare (always 0) 0
Spare (always 0) 0
Spare (always 0) 0
Spare (always 0) 0
Spare (always 0) 0
Completion of auto sweep running action 16
Write
The register sets or resets a bit corresponding to a change in the status of the instrument
only when that change occurs. It cannot be written to.
Clear
The register cannot be cleared.
Operation Event Register
Read
This register can be read by the :STATus:OPERation[:EVENt?] query command.
Its contents will be cleared when read.
Write
Contents of the register can be cleared. The register can be cleared but not written to.
<Clear>
This register will be cleared under any of the following conditions.
•
read using the :STATus:OPERation[:EVENt?] query command
A
• An initialization by the :STATus:PRESet command
• The *CLS common command
• Power ON
• Operation event enable register
Read
This register can be read by the :STATus:OPERation:ENABle? query command.
1
2
3
4
5
6
6.4 Operation Status Register
Write
The register can be written by the :STATus:OPERation:ENABle command.
Clear
This register will be cleared under any of the following conditions.
• Data “0” is set by the :STATus:OPERation:ENABle command.
• Power ON
The register cannot be cleared in the following cases.
• Receipt of the *RST
• Receipt of the *CLS command
• Device clear (DCL, SDC)
command
Status Registers
IM AQ6370C-17EN
6-9
6-10
IM AQ6370C-17EN
6.5 Questionable Status Registers
OR
&
&
&
&
&
&
&
&
OPS Bit of the Status Byte Register
not used
not used
not used
not used
not used
not used
not used
not used
not used
not used
not used
not used
not used
not used
not used
not used
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
bit 15
bit 14
bit 13
bit 12
bit 11
bit 10
bit 9
bit 8
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
bit 15
bit 14
bit 13
bit 12
bit 11
bit 10
bit 9
bit 8
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
bit 15
bit 14
bit 13
bit 12
bit 11
bit 10
bit 9
bit 8
&
&
&
&
&
&
&
&
45"526&4$0/%
Questionable Condition Register
45"526&4&7&/
Questionable Event Register
45"526&4&/"#
Questionable Event Enable Register
The questionable status registers report the questionable status of the instrument. All
bits of these registers are unassigned. However, the register read/write operations are
performed normally. The summary information of an event register will be set to the QUS
bit of the status byte register.
Structure
The structure of the questionable status registers is shown below.
Structure of the Questionable Status Registers
Contents of the Questionable Status Registers
Bit Event Name Description Decimal Value
Bit 0–15 Not used Spare (always 0) 0
1
2
3
4
5
6
Questionable Condition Register
Read
This register can be read by the :STATus:QUEStionable:CONDition? query command. Its
contents will not be cleared even when read.
Write
The register sets or resets a bit corresponding to a change in the status of the instrument
only when that change occurs. It cannot be written to.
Clear
The register cannot be cleared.
Questionable Event Register
Read
This register can be read by the :STATus:QUEStionable[:EVENt?] query command.
Its contents will be cleared when read.
Write
Contents of the register can be cleared. The register can be cleared but not written to.
6.5 Questionable Status Register
Status Registers
Clear
This register will be cleared under any of the following conditions.
• A read using the :STATus:QUEStionable[:EVENt?] query command
• Initialization by the :STATus:PRESet command
• Common *CLS command
• Power ON
Questionable Event Enable Register
Read
This register can be read by the :STATus:QUEStionable:ENABle? query command.
Write
The register can be written to by the :STATus:QUEStionable:ENABle command.
Clear
This register will be cleared under any of the following conditions.
• Data “0” is set using the :STATus:QUEStionable:ENABle command.
• Power ON
The register cannot be cleared in the following cases.
• Receipt of the *RST
• Receipt of the *CLS command
• Device clear (DCL, SDC)
command
IM AQ6370C-17EN
6-11
1
2
3
4
5
6
7
Chapter 7 Remote Commands
7.1 Rules of Syntax and Command Types
The following information is intended for the common commands and instrument-specific
commands contained in this manual. Measured values and parameters are all sent and
received using ASCII characters, not including special commands.
Description of Rules of Syntax
Rule Description
| Indicates that one of the elements in a list should be selected.
E.g.:
An item in square brackets is specified as desired.
[ ]
{ } An item in curly brackets can be specified multiple times within a command.
<wsp>¹ Space
<integer> Integer
<NRf> Exponent indicating value
<"file name"> A file name can be a maximum of 56 characters, including extensions, excluding
<trace name> T
<marker> Marker number (0: moving marker, 1 to 1024: fixed markers)
<"string"> Character string
Enclose a character string using double quotations (" ").
1. Regarding white space (<wsp>):
White space
the ASCII character sets. Aside from inserting it between a command and parameters (when
specifying parameters) or using it as space in a character string such as a file name in a
parameter, white space can be inserted as desired to make a program legible.
A|B|C
the directory part. Enclose a character string using double quotations (" ").
race name (TRA|TRB|TRC|TRD|TRE|TRF|TRG)
is defined as a character corresponding to 00h to 20h (not including 0Ah (LF)) of
= A, B, or C is used
Remote Commands
Types of Commands
This unit’s commands can be classified into the following three types:
Sequential Commands
• These commands are the most general commands.
• The action of another command is not performed until the running of a sequential
command is complete.
• Another action is not started until the running of the other com
mand is complete.
Overlappable Commands
• An overlappable command allows execution of an overlapping command while it is
being run.
Ex. of command:
:INITialte
Makes a sweep.
Overlapping Commands
• An overlapping command can be executed while an overlappable command is being
run.
• These commands cannot be executed while a sequential com
or if it has not yet been processed.
Ex. of command:
:ABORt
*STB?
Stops measurement or calibration action.
Reads status byte.
mand is being executed
IM AQ6370C-17EN
7-1
7.1 Rules of Syntax and Command Types
Collective Transmission of Multiple Commands
You can create a command string using the commands described in section 7.5,
“Common Commands,” and section 7.6, “Instrument-Specific Commands” and send it to
the instrument. If multiple commands are written in a single output statement by using a
semicolon “;” to delimit each command, the commands will be executed in the order in
which they have been written.
Format of a Remote Command
Short and Long Forms
The instrument’s GP-IB commands support both short and long forms.
For the commands contained in this manual, the part written in capital letters is the short
form of the command concerned. The short form of the
Upper- and Lower-Case Letters
The instrument does not distinguish between upper- and lower-case letters.
Return values are all in upper-case letters.
Grouping of SCPI Commands Using a Subsystem
The instrument supports the subsystem-based grouping of the SCPI commands.
Commands belonging to the same sub-system and existing at the same tree of the
hierarchical structure of the subsystem can be sent in combination. In this case, each
command should be delimited by a semicolon.
List of GP-IB commands used in examples
:SENSe
:ATTenuator
:WAVelength
:STOP
:STARt
:SET
• SENSe:WAVelength:STARt 1500NM;STOP 1600NM (Y)
• SENSe:WAVelength:STARt 1500NM;ATTenuator ON (X)
(Reason: They are not in the same hierarchy.)
• SENSe:WAVelength:STARt 1500NM;:STOP 1600NM
(Reason: A
Ting
colon “:” is unnecessary after a semicolon “;”.)
INITiate
command is
(X)
INIT
.
7-2
Numerics
• This instrument supports multiple notation methods when receiving a numeric(s).
• This instrument uses only the basic units when transmitting a numeric(s).
The number of digits for the real part is fixed to a one digit integer (with a sign) and eight
digits for decimal places. The number of digits for the exponential part is fixed to 3.
Ex.: Receivable numerics (in case of 1550 nm)
1550 nm, 1.55 um, 1550E-9, 1.55E-6, and others
Ex.: Transmittable numerics (in case of 1550 nm)
+1.55000000E-006 only
• If a received numeric has a precision higher than the range of numerics handled
inside this unit, lower decimal places will be rounded off rather than being discarded.
• This instrument can handle the following multiplier suf
Multiplier Mnemonic Multiplier Mnemonic
1E18 EX (exa) 1E-3 M (milli)
1E15 PE (peta) 1E-6 U (micro)
1E12 T (tera) 1E-9 N (nano)
1E9 G (giga) 1E-12 P (pico)
1E6 MA (mega) 1E-15 F (femto)
1E3 K (kilo) 1E-18 A (atto)
fixes:
IM AQ6370C-17EN
1
2
3
4
5
6
7
Specification of Parameters in a Command
To use parameters in a command, a space must be placed between the command and
parameters. Each parameter is delimited by a comma “,”. A space may also be placed
before and after a comma to make the command legible.
AQ6317-Compatible Commands
The instrument supports AQ6317-compatible GP-IB commands. When using AQ6317compatible GP-IB commands, call up the SYSTEM menu using the SYSTEM key and
place the instrument in AQ6317-compatible mode.
Differences from the AQ6370
This instrument’s remote commands differ from those of the AQ6370 in the following
respects.
2. “CHOP” was eliminated from the <CHOP MODE> settings.
If the AQ6370C/AQ6373 receives a command that specifies “C
“SWITCH.”
7.1 Rules of Syntax and Command Types
WA, AQ6370,----"
HOP,” it is treated as
Remote Commands
IM AQ6370C-17EN
7-3
7.2 Table of Correspondence between Soft Keys
and Remote Commands
The tables below list the remote commands that correspond to the soft keys used when
manipulating the various settings of the instrument.
If a command is valid for either the AQ6370C or AQ6375 only, the relevant model name
is indicated in the notes.
For the AQ6370C, AQ6373, and AQ6375, if commands are valid for only some of the
instruments, the models are indicated in the remarks column. Models are not noted for
commands that are valid for all instruments.
For the AQ6375, all soft keys included in ANALYSIS2 are disabled when the horizontal axis is
wavenumber.
Analysis functions included in ANALYSIS2 cannot be executed. Also, these parameters cannot
be set.
7-11
7.2 Table of Correspondence between Soft Keys and Remote Commands
7.2 Table of Correspondence between Soft Keys and Remote Commands
ADVANCE
Function Control Command
TEMPLATE
GO/NO GO ON/OFF
TEMPLATE DISPLAY
UPPER LINE DISPLAY ON/OFF
LOWER LINE DISPLAY ON/OFF
TARGET LINE DISPLAY ON/OFF
TYPE
UPPER
LOWER
UPPER & LOWER
TEMPLATE EDIT
ALL DELETE
MODE ABS/REL
EXTRA POL TYPE
TYPE A
TYPE B
NONE
TEMPLATE SHIFT
:TRACe:TEMPlate:WAVelength:SHIFt<wsp>
ON|0|1
ON|0|1
ON|0|1
:TRACe:TEMPlate:GONogo<wsp>OFF|ON|0|1
:TRACe:TEMPlate:DISPlay<wsp>UPPer,OFF|
:TRACe:TEMPlate:DISPlay<wsp>LOWer,OFF|
:TRACe:TEMPlate:DISPlay<wsp>TARGet,OFF|
:TRACe:TEMPlate:TTYPe<wsp>UPPer
:TRACe:TEMPlate:TTYPe<wsp>LOWer
:TRACe:TEMPlate:TTYPe<wsp>U&L
:TRACe:TEMPlate:DATA:ADELete<wsp>UPPer|
LOWer|TARGet
:TRACe:TEMPlate:DATA:MODE<wsp>UPPer|
LOWer|TARGet, ABSolute|RELative
:TRACe:TEMPlate:DATA:ETYPe<wsp>UPPer|
LOWer|TARGet,A|1
:TRACe:TEMPlate:DATA:ETYPe<wsp>UPPer|
LOWer|TARGet,B|2
:TRACe:TEMPlate:DATA:ETYPe<wsp>UPPer|
LOWer|TARGet,NONE|0
:TRACe:TEMPlate:LEVel:SHIFt<wsp><NRf>
<NRf>
COPY
Function Control Command
COPY
:HCOPY[:IMMediate]
FEED
Function Control Command
FEED
:HCOPY[:IMMediate]:FEED
7-16
IM AQ6370C-17EN
1
2
3
4
5
6
7
7.3 ANALYSIS Setting Parameters
In setting ANALYSIS key setting parameters, the analysis parameters differ with the
analysis type. Thus, the PARAMETER SETTING key commands are set independently
of the regular key commands. An analysis parameter setting command is shown below.
The instrument supports the “Required” common commands listed in the table below.
Cmd Name IEEE 488.2 Std. AQ6370C/AQ6373/
AQ6375
*AAD Accept Address Command Option
*CAL? Calibration Query Option
*CLS Clear Status Command Required Y
*DDT Define Device T
*DDT? Define Device Trigger Query DT1 option
*DLF Disable Listener Function Command Option
*DMC Define Macro Command Option
*EMC Enable Macro Command Option
*EMC? Enable Macro Query Option
*ESE Standard Event Status Enable Command Required Y
*ESE? Standard Event Status Enable Query Required Y
*ESR? Standard Event Status Register Query Required Y
*GMC? Get Macro Contents Query Option
*IDN? Identification Query Required Y
*IST? Individual Status Query Required for PP1
*LMC? Learn Macro Query Option
*LRN? Learn Device Setup Query Option
*OPC Operation Complete Command Required Y
*OPC? Operation Complete Query Required Y
*OPT Option Identification Query Option
*PCB Pass Control Back Command Required if not C0
*PMC Purge Macro Command Option
*PRE Parallel Poll Register Enable Command Required for PP1
*PRE? Parallel Poll Register Enable Query Required for PP1
*PSC Power On Status Clear Command Option
*PSC? Power On Status Clear Query Option
*PUD Protected User Data Command Option
*PUD? Protected User Data Query Option
*RCL Recall Command Option
*RDT Resource DescriptionTransfer Command Option
*RDT? Resource Description Transfer Query Option
*RST Reset Command Required Y
*SAV Save Command Option
*SRE Service Request Enable Command Required Y
*SRE? Service Request Enable Query Required Y
*STB? Read Status Byte Query Required Y
*TRG Trigger Command Required if DT1 Y
*TST? Self-Test Query Required Y
*WAI Wait-to-Continue Command Required Y
Y: Commands supported by the AQ6370C, AQ6373 and AQ6375
rigger Command *DT1 option
Remote Commands
IM AQ6370C-17EN
7-33
7.5 Common Commands
*CLS(Clear Status)
Function Clears all event status registers, the summary
of which is reflected in the status byte register.
Syntax *CLS
Example *CLS
Explanation •
• After executing this command, OCIS
• This is a sequential command.
Clears all queues, with the exception of the
output queue, and all event registers, with the
exception of the MAV summary message.
(Operation Complete Command Idle State)
and OQIS (Operation Complete Query Idle
State) are brought about.
*ESE(Standard Event Status Enable)
Function Sets/queries the standard event enable register.
*ESE<wsp><integer>
Syntax
*ESE?
<integer> = 0–255
Example
*ESE? -> 251
Explanation • An item having had its bit set becomes
• Resets to the default value in the following
When power is ON
When “0” is set
• The set value remains the same in the
*RST
*CLS
Device clear (DCL, SDC)
• The default is 0.
• This is a sequential command.
*ESE 251
enabled.
cases:
following cases:
*ESR?(Standard Event Status Register)
Function Queries the standard event status register and
simultaneously clears it.
*ESR?
Syntax
Example
Explanation • The return value of this query is not affected
• This is an overlapping command.
*ESR? -> 251
by ESE (Event Status Enable Register).
*IDN? (Identification)
Function Queries the instrument type and firmware
version.
*IDN?
Syntax
Example
Explanation • Outputs 4 field data delimited by a comma.
Field 1: Manufacturer “YOKOGAWA”
Field 2: Model “AQ6370C”, “AQ6373”
Field 3: Instrument serial number
Field 4: Firmware version
• For the AQ6370C, field 2 is “AQ6370C.”
• For the AQ6373, field 2 is “AQ6373.”
• For the AQ6375, field 2 is “AQ6375.”
• This is a sequential command.
*IDN? -> YOKOGAWA,AQ6370C,aaaaaaaaa
,bb.bb
aaaaaaaaa:
bb.bb:
or “AQ6375”
Serial number (9 digit string)
Firmware version
*OPC(Operation Complete)
Function Sets/queries bit 0 (OPC) of the standard event
status register (ESR) if operations waiting to be
processed have all been completed.
*OPC
Syntax
Example
*OPC? -> 1
Explanation • At the time this command is recognized, the
• If any of the following conditions are
Power ON
Device clear
*CLS, *RST command
• This is an overlapping command.
*OPC
command changes from OCIS (Operation
Complete Command Idle State) to OCAS
(Operation Complete Command Active State).
When the no-operation pending flag is set to
“True,” it sets bit 0 (OCR) of ESR and returns
to OCIS.
established, this command is disabled and is
forced to return to OCIS.
7-34
IM AQ6370C-17EN
1
2
3
4
5
6
7
7.5 Common Commands
*RST (Reset)
Function Executes a device reset to return the instrument
to the known (default) status.
*RST
Syntax
Example
Explanation • Stops operation being processed and returns
• This unit’s parameters are cleared.
• The following items will remain the same.
GP-IB interface status
GP-IB address
Output queue
SRE
ESE
Calibration data affecting the instrument’s
• This is an overlapping command.
*RST
the instrument to the known set value (default
value) immediately.
specifications
*SRE(Service Request Enable)
Function Sets/queries the service request enable register.
*SRE <wsp><integer>
Syntax
*SRE?
<integer> = 0–255
Example
*SRE? -> 250
Explanation • An item having had its bit set becomes
• Resets to the default value in the following
When power is ON
When “0” is set
• The set value remains the same in the
*RST
*CLS
Device clear (DCL, SDC)
• The default is 0.
• This is a sequential command.
*SRE 250
enabled.
cases:
following cases:
*TRG(Trigger)
Function Performs a <SINGLE> sweep under the sweep
conditions established immediately before
receiving the command.
*TRG
Syntax
Example
Explanation Performs a <SINGLE> sweep regardless
This is an overlapable command.
*TRG
of the setting condition of the
CONTinuous
command.
:INITiate:
*TST?(Self Test)
Function Performs the instrument’s self-test and queries
the status.
*TST?
Syntax
Example
Explanation • Of the initialization sequence to be run at
Motor’s return to origin operation
AMP auto-offset
• Normally returns 0, or 1 for motor initialize
• This is a sequential command.
*TST? -> 0
startup, this command executes the following
operations to output their results. During
initialization, the screen maintains the
waveform display.
error, or 2 for AMP offset error.
*WAI(Wait to Continue)
Function Prevents the instrument from executing another
command until the execution of the current
command is complete.
*WAI
Syntax
Example
Explanation • Becomes invalid by device clear.
• Meaningful if subsequent commands
• This is a sequential command.
*WAI
are overlapping. Meaningless with other
commands.
Remote Commands
*STB?(Read Status Byte)
Function Queries the current value of the status byte
register.
*STB?
Syntax
Example
Explanation • STB will not be cleared even when the
• This is an overlapable command.
*STB? -> 251
contents of the register are read.
IM AQ6370C-17EN
7-35
7.6 Instrument-Specific Commands
ABORt Sub System Command
:ABORt
Function Stops operations such as measurements and
calibration.
ABORt
Syntax
Example
Explanation • Operations to be stopped are as follows:
wavelength.
For the peak search, levels are
displayed in order starting from the
highest level. For the bottom search,
levels are displayed in order starting
from the lowest level.
:CALCULATE:MAKER:MSEARCH:SORT WAV
This is a sequential command.
:CALCulate:MARKer:MSEarch:THResh
Function Sets/queries the multi search threshold.
Syntax
:CALCulate:MARKer:MSEarch:THResh?
<NRf>: Threshold (dB)
Example
:CALCULATE:MAKER:MSEARCH? ->
Explanation • This is a sequential command.
• This command can be used on the AQ6370C.
:CALCulate:MARKer:MSEarch:
THResh<wsp>
<NRf>[DB]
:CALCULATE:MAKER:MSEARCH:THRESH
50DB
+5.00000000E+001
Remote Commands
:CALCulate:MARKer:MINimum:RIGHt
Function Detects the nearest bottom existing on the right
side of the current position of the moving marker
and places the moving marker on that side.
:CALCulate:MARKer:MINimum:RIGHt
Syntax
Example
Explanation • If the moving marker is OFF, an execution
• This is a sequential command.
:CALCULATE:MAKER:MINIMUM:RIGHT
error occurs.
:CALCulate:MARKer:SCENter
Function Sets the wavelength of the current moving
marker as the measurement center waveform.
:CALCulate:MARKer:SCENter
Syntax
Example
Explanation • If the moving marker is OFF, an execution
• This is a sequential command.
:CALCULATE:MAKER:MINIMUM:SCENTER
error occurs.
:CALCulate:MARKer:MSEarch
Function Sets/queries the type of the search function.
Syntax
:CALCulate:MARKer:MSEarch?
OFF|0: Sets the search function to single
ON|1: Sets the search function to multi search.
Response 0 = OFF, 1 = ON
Example
:CALCULATE:MAKER:MSEARCH? -> 1
Explanation •
• This is a sequential command.
• This command can be used on the
:CALCulate:MARKer:MSEarch<wsp>
OFF|ON|0|1
search.
:CALCULATE:MAKER:MSEARCH on
The search is executed as soon as you set
the search function.
AQ6370C.
:CALCulate:MARKer:SRLevel
Function Sets the current level of the moving marker for
the reference level.
:CALCulate:MARKer:SRLevel
Syntax
Example
Explanation • If the moving marker is OFF, an execution
• This is a sequential command.
:CALCULATE:MAKER:MINIMUM:SRLEVEL
error occurs.
IM AQ6370C-17EN
7-41
7.6 Instrument-Specific Commands
:CALCulate:MARKer[:STATe]
Function Specified marker is positioned or deleted in the
position of the moving marker. Also, queries the
status of the specified marker.