没有合适的资源?快使用搜索试试~ 我知道了~
首页TPS1200_GeoCOM_Manual1
TPS1200_GeoCOM_Manual1
需积分: 22 203 浏览量
更新于2023-03-16
评论 1
收藏 1.05MB PDF 举报
徕卡TPS1200_GeoCOM手册,说明了接口方式、接口协议等内容。作为全站仪二次开发使用。
资源详情
资源评论
资源推荐

LEICA TPS1200 Series
GeoCOM Reference Manual Version 1.0

GeoCOM Reference Manual Contents
TPS1200 - Version 1.00 II
1
GEOCOM ..............................................................................................................................................................1-1
1.1 INTRODUCTION................................................................................................................................................. 1-1
1.2 TPS1200 SYSTEM SOFTWARE .......................................................................................................................... 1-1
1.3 PRINCIPLES OF GEOCOM OPERATION ............................................................................................................. 1-2
2 GENERAL CONCEPTS OF USING GEOCOM ............................................................................................... 2-1
2.1 GENERAL CONCEPT OF OPERATION.................................................................................................................. 2-1
2.2 ASCII PROTOCOL ............................................................................................................................................2-1
2.3 FUNCTION CALL PROTOCOL - C/C++............................................................................................................... 2-3
2.4 FUNCTION CALL PROTOCOL - VBA ................................................................................................................. 2-3
3 FUNDAMENTALS OF PROGRAMMING GEOCOM ....................................................................................3-1
3.1 ASCII PROTOCOL PROGRAMMING ................................................................................................................... 3-1
3.2 C/C++ - PROGRAMMING .................................................................................................................................. 3-3
3.3 VBA - PROGRAMMING.....................................................................................................................................3-5
3.4 UNITS OF VALUES ............................................................................................................................................ 3-7
3.5 TPS1200 INSTRUMENT MODES OF OPERATION................................................................................................ 3-7
3.6 COMMON COMMUNICATION ERRORS ............................................................................................................... 3-8
4 REMARKS ON THE DESCRIPTION................................................................................................................4-1
4.1 STRUCTURE OF DESCRIPTIONS ......................................................................................................................... 4-1
5 COMMUNICATION SETTINGS ....................................................................................................................... 5-3
5.1 CONSTANTS AND TYPES ................................................................................................................................... 5-3
5.2 GENERAL GEOCOM FUNCTIONS ..................................................................................................................... 5-3
5.3 CLIENT SPECIFIC GEOCOM FUNCTIONS .......................................................................................................... 5-5
6 ALT USER - AUS.................................................................................................................................................. 6-1
6.1 USAGE.............................................................................................................................................................. 6-1
6.2 CONSTANTS AND TYPES ................................................................................................................................... 6-1
6.3 FUNCTIONS....................................................................................................................................................... 6-1
7 AUTOMATION - AUT ......................................................................................................................................... 7-5
7.1 USAGE.............................................................................................................................................................. 7-5
7.2 CONSTANTS AND TYPES ................................................................................................................................... 7-5
7.3 FUNCTIONS....................................................................................................................................................... 7-6
8 BASIC APPLICATIONS - BAP ........................................................................................................................8-25
8.1 CONSTANTS AND TYPES ................................................................................................................................. 8-25
8.2 FUNCTIONS..................................................................................................................................................... 8-26
9 BASIC MAN MACHINE INTERFACE - BMM................................................................................................ 9-1
9.1 CONSTANTS AND TYPES ................................................................................................................................... 9-1
9.2 FUNCTIONS....................................................................................................................................................... 9-1
10 COMMUNICATIONS - COM ....................................................................................................................... 10-1
10.1 CONSTANTS AND TYPES ................................................................................................................................. 10-1
10.2 FUNCTIONS..................................................................................................................................................... 10-1
11 CENTRAL SERVICES - CSV .......................................................................................................................11-1
11.1 USAGE............................................................................................................................................................ 11-1
11.2 CONSTANTS AND TYPES ................................................................................................................................. 11-1
11.3 FUNCTIONS..................................................................................................................................................... 11-2
12 ELECTRONIC DISTANCE MEASUREMENT - EDM ............................................................................. 12-1
12.1 USAGE............................................................................................................................................................ 12-1
12.2 CONSTANTS AND TYPES ................................................................................................................................. 12-1
12.3 FUNCTIONS..................................................................................................................................................... 12-1
13 MOTORISATION - MOT..............................................................................................................................13-1

GeoCOM Reference Manual Contents
TPS1200 - Version 1.00 III
13.1 USAGE............................................................................................................................................................ 13-1
13.2 CONSTANTS AND TYPES ................................................................................................................................. 13-1
13.3 FUNCTIONS..................................................................................................................................................... 13-2
14 SUPERVISOR - SUP....................................................................................................................................... 14-1
14.1 CONSTANTS AND TYPES ................................................................................................................................. 14-1
14.2 FUNCTIONS..................................................................................................................................................... 14-1
15 THEODOLITE MEASUREMENT AND CALCULATION - TMC .......................................................... 15-1
15.1 USAGE............................................................................................................................................................ 15-1
15.2 CONSTANTS AND TYPES ................................................................................................................................. 15-2
15.3 MEASUREMENT FUNCTIONS ........................................................................................................................... 15-5
15.4 MEASUREMENT CONTROL FUNCTIONS......................................................................................................... 15-15
15.5 DATA SETUP FUNCTIONS.............................................................................................................................. 15-17
15.6 INFORMATION FUNCTIONS ........................................................................................................................... 15-25
15.7 CONFIGURATION FUNCTIONS ....................................................................................................................... 15-27
16 PORTING A TPS1100 APPLICATION......................................................................................................... A-1
16.1 RPC CHANGES ................................................................................................................................................ A-1
16.2 DATA TYPES AND CONSTANTS CHANGES........................................................................................................ A-2
16.3 RETURNCODES ................................................................................................................................................ A-2
17 GEOCOM RELEASES.................................................................................................................................... A-4
17.1 RELEASE 1.00.................................................................................................................................................. A-4
18 APPENDIX ....................................................................................................................................................... A-5
A Return Codes ...................................................................................................................................................A-5
A-1 General Return Codes............................................................................................................................. A-5
B Hardware interface..........................................................................................................................................B-2
B-1 Serial Interface........................................................................................................................................ B-2
B-2 Debugging Utility ................................................................................................................................... B-3
C Provided Samples ........................................................................................................................................... C-2
C-1 Program Frames...................................................................................................................................... C-2
C-1.1 VBA Sample Program .................................................................................................................... C-2
C-1.2 C/C++ Sample Programs ................................................................................................................ C-2
D List of RPC’s................................................................................................................................................... D-3
D-1 Alpha order............................................................................................................................................. D-3
Microsoft, MS, MS-DOS, Windows, Windows NT, Win32, Visual C++ and Visual Basic are either registered trademarks or
trademarks of Microsoft Corporation in the USA and other countries.

GeoCOM Reference Manual GeoCOM
TPS1200 - Version 1.00 1-1
1 GEOCOM
1.1 INTRODUCTION
TPS1200 series Theodolites are modern geodetic measurement instruments. Most of the main tasks can be fulfilled with
these instruments implicitly by their integrated applications. Now, to fulfil a broader spectrum of tasks and applications
an interface to the TPS1200 series sensor functions has been defined and will be published with this document.
With this interface it will be possible to write client applications based on MS-Windows and/or for any other platform
which supports ASCII based communications.
1.2 TPS1200 SYSTEM SOFTWARE
The TPS1200 system software organises and controls the interplay of several sensor elements. Furthermore, it builds up
a frame for applications, which can be executed on the TPS1200 Theodolite.
This document concentrates on the main interface to the sensor elements of the TPS1200 Theodolite. This main
interface can be used to implement solutions for special customer problems if the already existing solution does not
provide the needed functionality or just to enhance it.
1.2.1 Organisation of Subsystems
The TPS1200 system software is built around the sensor elements, which are parts and/or optional add-ons of the
TPS1200 Theodolite instrument. It provides a set of functions to access sensors and calculated values. These functions
are organised as subsystems. We will keep this segmentation in this document.
These functions can be grouped in the following sections:
AUS The subsystem ‘Alt User’ mainly contains functions behind the “SHIFT” + ”USER” button.
AUT Automatisation; a module which provides functions like the control of the Automatic Target Recognition,
Change Face function or Positioning functions.
BAP Basic Applications; some functions which can easily be used to get measuring data.
BMM Basic Man Machine; functions which controls some basic input/output functionality, e.g. set beep alarm, etc.
COMF Communication; a module which handles the basic communication parameters. Most of these functions relate
to both client and server side.
COM Communication; functions to access some aspects of TPS1200 control which are close to communication.
These functions relate either to the client side or to the server side.
CSV Central Services; this module provides functions to get or set central/basic information about the TPS1200
instrument.
CTL Control task; this module contains functions of the system control task.
EDM Electronic Distance Meter; the module which measures distances.
MOT Motorization; the part which can be used to control the movement and the speed of movements of the
instrument.
SUP Supervisor; functions to control some of the general values of the TPS1200 instrument.
TMC Theodolite Measurement and Calculation; the core module for getting measurement data.

GeoCOM Reference Manual GeoCOM
TPS1200 - Version 1.00 1-2
Picture (1) - Overview Client/Server Application
1.3 PRINCIPLES OF GEOCOM OPERATION
Communication takes place between two participants - a client and a server. The medium of communication is a serial
communication line. Refer to Appendix B for further information about settings and needed hardware.
The idea of GeoCOM is based on SUN Microsystems’ Remote Procedure Call (RPC) protocol.
On the low level of implementation, each procedure, which is executable on the remote instrument, is assigned a remote
procedure call identification number. This number is used internally to associate a specific request, including the
implicit parameters, to a procedure on the remote device. On this level, GeoCOM provides an ASCII interface, which
can be used to implement applications on platforms, which do not support MS-Windows.
On the high level, GeoCOM provides normal function call interfaces for C/C++ and MS-VBA to these remote
functions. These interfaces enable a programmer to implement an application as if it would be executed directly on the
TPS1200 instrument.
Note: Further on we will refer to a remotely executable system function as a RPC.
The TPS1200 instrument system software uses a multitasking operating system. Nevertheless, only one request can be
executed at once. This means in respect of calling RPC’s GeoCOM works synchronously only.
On the low level interface the server buffers subsequent requests if current request(s) has not been finished so far. If the
queue is full then subsequent requests will be lost.
Instead on the high level interface a function call will not return until it has been completely finished.
system software
SUPBMM
MOT
TMC
CSV
AUT
BAP
EDM
PC application
GeoCOM
server
inclination
sensor
angle
sensor
distance
sensor
motorization
basic
in/out
COM
GeoCOM
client
COMF
Serial Line
TPS
PC
CTL
剩余140页未读,继续阅读








安全验证
文档复制为VIP权益,开通VIP直接复制

评论0