Structure Of Messages To The Controller - Newport LDS1000 User Manual

Controller for laser diode sensors
Table of Contents

Advertisement

LDS1000
EDH0170FE1010 – 09/98
The computer sends a chain of characters to the controller that may then:
• Respond with a return chain.
• Carry out a modification or a function (without necessarily responding).
• Not respond and not react (message is not recognized).
The communication software must be able to generate ASCII messages
(refer to syntax in the description of recognized commands).
It must also use a send command for this message on the current interface
(refer to syntax in the supplier's instructions for the programming software).
It must then be able to read the return message or wait for this message
(refer to syntax in the supplier's instructions for the programming software).
Finally, the message must be interpreted and the information contained in
the chain of characters received must be recognized (values measured,
sensor status, various parameters, ...).
A properly structured program will include sub-programs that carry out
these basic functions. Be particularly careful when writing these modules
that are essential for the proper operating of the final program.
In all cases:
• The first order to be sent to the controller is the MR command that acti-
vates the controller in Interface Mode.
• If the communication is correct, the controller displays:
In other cases, check that:
• The controller is switched on.
• It is working in Main menu (if not cf. manual mode).
• The physical connection is correct.
• The communication parameters are correct.
• The syntax sent is correct.
• The initialization of the interface is properly carried out.
The reading sub-program should then be tested using, for example, the VE
command which requests the software version of the LDS1000 Controller.
The response must be an ACSII chain of type:
VE LDS1000 CONTROLLER VERSION 3.0
If their is no response, carefully check the structure of the reading sub-pro-
gram.
10.3.1

Structure of Messages to the Controller

The ASCII chains transmitted by the computer must match the commands
understood by the LDS1000 Controller. Each message transmitted may
include several different commands, separated by commas (,) or semi-
colons (;) and will end with the appropriate character (CR, LF, CRLF, LFCR).
The <space> characters will be deleted on reception.
Controller for Laser Diode Sensors
36

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents