RS-232 Communications

Thread Starter

Mark H.

Joined Jul 12, 2024
1
I'm looking for help to get started with RS-232 communications. My target hardware is a Topcon DL-502 digital level used for surveying. The level reads a barcode rod and compares the image it captures with the one it has in its memory. The level line of sight intercept with the rod is displayed as the height above or below a datum. A distance to the rod is also displayed.

I want to write a Windows program that polls the instrument to output the height and distance. The output will then be recorded in the program. Calculations using the recorded data will be performed. All this will be sent to a printer and printed in a tabular format. The following information is from the Topcon DL-502 user's manual.

15. Sending Recorded Data

Recorded data can be sent to a connected computer or data collector. Commands sent from a computer, or the data collector instruct the DL-502 to carry out measurement, and the measurement results are output.

Important:

The DL-502 accepts commands only when in status mode or menu mode. Received commands are not executed in any other state.

16.3 Communication Parameters

You can select the communication parameters for connecting a data collector or a computer. The baud rate and parity settings can be selected from the following.

Baud rate: *1200 bps / 2400 bps / 4800 bps / 9600 bps / 19200 bps / 38400 bps
Parity: *None / Odd / Even

Note:
* Outputting start code and end code (CSV format)
Press [MENU] to display the setting screen for outputting start and end codes.
Yes: During data output, outputs start code (STX) and end code (ETX).
*No: Outputs text data only.
 
Top