EDH0170FE1010 – 09/98
58
LDS1000 Controller for Laser Diode Sensors
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.
RECOMMANDATION
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 : MSG TERM (CR LF by default).
• Primary address : PRIM ADRESS (00 by default).
• Secondary address : SECOND ADRESS (15 by default).
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.
RECOMMANDATION
Refer to the Appendix B3: “SRQ Using”.