C/C++ - Programming - Leica tps1100 Reference Manual

Hide thumbs Also See for tps1100:
Table of Contents

Advertisement

GeoCOM Reference Manual
3.1.3
Modes of Operation Concerning Communication
Section 3.5 - TPS1100 Instrument Modes of Operation - explains the different
modes of operation of GeoCOM concerning communication. Similar to that the
following is valid for the ASCII protocol.
Since the client has to remind which mode is active, no support can be given from
the TPS1100 instrument. The only way to distinguish between modes is to remind
the actions an application has initiated and their resulting replies. So far no other
possibility exists to determine the current mode.
To switch on the instrument a single character is sufficient. It is recommended to
ignore the subsequent reply (one or two lines). Please note, that if the autoexec
mechanism ([menu] CONF - [item] Autoexec-application) is enabled then the
instrument will not switch into Remote mode, but will start the autoexec
application instead.
When turning into local mode the TPS1100 instrument sends the "sign-on"
message:
"%N1,0,255,,0%T0,0,0,:%R1P,0,0:0"
If the "sign-off" message is enabled (see
following message will be sent if the instrument goes into sleep mode:
"%N1,0,255,,0%T0,0,0,:%R1P,1,0:0,1"
and the following message will be sent if the instrument shuts down:
"%N1,0,255,,0%T0,0,0,:%R1P,1,0:0,0"
Please notice that these two messages are different in the last character.
3.2

C/C++ - PROGRAMMING

Programming in C/C++ is based on the well-known DLL concept, defined by
Microsoft Corp. To compile a project successfully first you have to include the file
, which defines all necessary constants, data types and function
com_pub.hpp
prototypes. Second
the linker to resolve the DLL exported functions. To operate successfully the
file must be accessible for the operating system, hence it must be
gcom100.dll
located in a directory which the operating system looks up for the requested DLL
file.
TPS1100 - Version 1.05
has to be included in the project, which enables
gcom100.lib
Fundamentals of Programming GeoCOM
.
COM_EnableSignOff
,
.
) then the
3-5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents