22 | ESP302-GPIB-ADPT
A1387A0-EDH0429En1010 11/21
USER's MANUAL
4 Operation
4.1 Introduction
This section describes how the ESP302-GPIB-ADPT operates and transfers data when controlled from
the GPIB bus.
NOTE
To transfer data or commands to the ESP302, the ESP302-GPIB-ADPT
must be in Data mode.
4.2 Operation with the ESP302 controller
Once the ESP302-GPIB-ADPT is connected to a Newport ESP302 controller, and if in Data mode
(which is the case upon start-up), user can send specific commands to the ESP302 (see ESP302
Programmer's Manual for list of appropriate commands) and read the response through his GPIB
interactive software or program, taking care of the following:
•
Messages sent to the ESP302 can terminate by LF (or CR+LF) and/or EOI asserted
•
Responses from the ESP302 terminate by CR+CR+LF and EOI asserted
To check correct communication with ESP302, send the motion controller command to query the
firmware version and verify you get the response:
Write:
VE?
Read:
ESP302 Snapshot version N200018-prel2
(example)
Then, for example, to move axis 1 in absolute position 10:
Write:
1PA10
Or to get axis 3 absolute position:
Write:
3PA?
Read:
5
If an unknown command is sent to the ESP302, it will be ignored, and a command error will be logged
in the ESP302. However, a new command can be sent and interpreted immediately.
If the response buffer is read when empty (after an improper query for instance), it will generate a
timeout error. A new read operation can be conducted once a response is supposed to be available.