Example With Ieee-488 Interface - Newport LDS1000 User Manual

Controller for laser diode sensors
Table of Contents

Advertisement

LDS1000
EDH0170FE1010 – 09/98
The example program "LDSRS1" is an example of programming in Quick
basic Microsoft.
It demonstrates how to:
• Open the interface with the appropriate parameters.
• Set the controller to remote mode.
• Send a command and wait for the response.
• Read the response and convert the ASCII chain received into digital
values.
• Return to local mode.
Refer to the Appendix A: "Example of Program Using RS-232-C Link".
10.8.2

Example with IEEE-488 Interface

Contrary to the RS-232-C interface, the IEEE-488 interface does not equip
computers in standard state.
This interface requires a special card that is included in the computer.
This card is supplied with library of functions that must be chained with
the program developed.
Refer to the card documentation to correctly perform the material configu-
ration [IEEE-488 card/Computer].
Three program parameters must be related between the controller and the
computer:
• Chain terminator
• Primary address
• Secondary address
The CR LF terminator is the default terminator of the IEEE-488 card.
The controller manages the IEEE-488 interface in SRQ mode: the SPOL func-
tion of the IEEE card enables the controller status to be read. This status is
coded in one word of 8 bits, bit 6 of which(value 64) is worth 1 if a message
is near: reading must always by done before a new request.
Controller for Laser Diode Sensors
RECOMMANDATION
: MSG TERM (CR LF by default).
: PRIM ADRESS (00 by default).
: SECOND ADRESS (15 by default).
RECOMMANDATION
Refer to the Appendix B3: "SRQ Using".
58

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents