Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Dec. 2009
Rev.4
Confidential
Nikon Communication Interface Manual
History:
Rev.2
2008-Mar-19
Rev.3
2009-Oct-12
Rev.4
2009-Dec-8
P2/34
Confidential
Nikon Communication Interface Manual
1. Introduction
This manual explains how to connect Nikon Total Stations and external devices by
serial interface.
2. Interface system
The interface is directed by RS-232C.
3. Connecter
3-1.
Interface connecter
Cable side: HR10A-7R-6P
(Hirose Electric Co.)
1
2
6
5
HRS
3
HRS
4
Symbol
Signal name
Direction
RXD
Receiving data*
InstrumentExternal device
TXD
Sending data*
InstrumentExternal device
Power**
N/A
NC
Not in use
N/A
GND
Ground
N/A
NC
Not in use
N/A
Symbol
Signal name
Direction
RXD
Receiving data*
InstrumentExternal device
TXD
Sending data*
InstrumentExternal device
NC
Not in use
N/A
Power**
N/A
GND
Ground
N/A
NC
Not in use
N/A
It has nothing to do
(TXD)
P3/34
Confidential
Nikon Communication Interface Manual
!!!CAUTION!!!
Connection to the instrument side must follow the pin assignment above.
Misconnection may result in malfunctioning.
-
result in malfunctioning.
3-2.
13
25
No.
Symbol
Signal name
Direction
TXD
Sending data*
InstrumentExternal device
RXD
Receiving data*
InstrumentExternal device
4, 5
CTS, RTS
(connected inside)
6, 20
DSR, DTR
(connected inside)
N/A
Ground
7
GND
* Name of the signal is from its action looking at the external device.
9 Pin
5
No.
Symbol
Signal name
Direction
RXD
Receiving data*
InstrumentExternal device
TXD
Sending data*
InstrumentExternal device
4,
DSR, DTR
(connected inside)
7,
CTS, RTS
(connected inside)
Ground
5
GND
N/A
* Name of the signal is from its action looking at the external device.
P4/34
Confidential
Nikon Communication Interface Manual
4. Electrical Characteristics
a) Synchronous Method
: ASYNC
d) Signal level
: 9V, standard
d) Baud rate
: 1200/2400/4800/9600/19200/38400
e) Stop bit
: 1 or 2 bit
f) Data length
: 7 or 8 bit
g) Parity
: None/even/odd
5.
5-1.
0: 2.4V)
Protocol is a set of rules applied to the communication in order to receive/send data securely.
It is independent from contents of receiving/sending data.
<Basic Protocol>
+0
+1
+2
+3
---
+n
SOH
Sender
Receiver
STX
Command or
ETX
(01h)
code
code
(02h)
data character
(03h)
Header
Code
Contents
+n+1
+n+2
+n+3
+n+4
BCC
EOT
(04h)
CR
(0dh)
LF
(0ah)
Chk
Trailer
- Contents:
<Command/Data Protocol>
SOH
(01h)
Sender
code
Receiver
code
STX
(02h)
Command/
Data string
ETX
(03h)
BCC
EOT
(04h)
CR
(0dh)
LF
(0ah)
Sender
code
Receiver
code
ACK or
NAK
BCC
EOT
(04h)
CR
(0dh)
LF
(0ah)
Confidential
Nikon Communication Interface Manual
5Fh
* Compare the BCC in the received data and the calculated value.
If they are the same, the communication was successfully done.
5-2.
-
CR
= 0dh
LF
= 0ah
Procedures
When instrument receives a block of data, BCC is checked and ACK is to be returned if the
block was successfully received.
If a NAK is received by the instrument, then the last block is to be resent by the instrument,
however, the count of NAK is not checked by the instrument, therefore, it is
recommendable to stop sending data by external devices side in such a case in order to
avoid any trouble which may be triggered in the hardware.
Receiving Success
<A>
Command/Data
Block-X
<B>
ACK
(END)
Receiving Error
Command/Data
Block-X
NAK
ACK
(END)
P6/34
Confidential
Nikon Communication Interface Manual
5-3.
Commands/Data format
b) Data set command: Set instrument settings such as temperature, pressure etc. No data output follows.
c) Data output command:
Keyword
Remote control command
Char-1
Char-2
Char-3
An asterisk is added in front of the keyword when the extended command is to be used.
Keyword
*
Char-1
Char-2 Char-3
Parameter
($/!/?)
P7/34
Confidential
Nikon Communication Interface Manual
5-4.
Command list
$SHV
Remarks
Taking a distance measurement in Precise mode.
Resolution and average of current settings are used in the measurement.
When the Data output after MSR feature is set to ON, the measured data is to be
output in the specified format.
Taking a distance measurement in Normal mode.
Resolution and average of current settings are used in the measurement.
When the Data output after MSR feature is set to ON, the measured data is to be
output in the specified format.
Initiate continuous (tracking) distance measurements. (AVE=0)
Resolution is fixed to COARSE mode.
When the Data output after MSR feature is set to ON, the measured data is to be
output in the specified format.
Change displays. The same function as the DSP key on the instrument.
$RHA
$BZR
$DON
$DNX
$DOF
$MSR
$TRK
$HTR
$DSN
$DSX
$HAN
Change the display on the instrument to the basic measurement screen (BMS).
$ANG
$REC
$COF
$CON
$LPT
*$REC
Remarks
!AVE
!PNO
!PSM
!T-P
!HAN
!CND
Confidential
Nikon Communication Interface Manual
!BSE
!SOD
Set a set of stakeout data (by HA+HD) and jump to the Stakeout screen
!SOC
Set a set of stakeout data (by 9-digit coordinates) and jump to the Stakeout screen
!TGT
*!PNO
*!HAN
*!SOC
Set a set of stakeout data (by 12-digit coordinates) and jump to the Stakeout screen
*!BSE
Set station coordinate data (HI & Stn-XYZ) and HT. (by 12-digit coordinate)
*!H-T
Remarks
?CND
?VAN
?HAN
?HRV
?SDS
?HDS
?VDS
?PSM
?PNO
?T-P
?BAT
?AVE
?BSE
?CDR
Output a coordinate
?SOD
?SOC
?LPT
*?PNO
*?BAT
*?CDR
*?SOC
*?BSE
*?H-T
P9/34
Confidential
Nikon Communication Interface Manual
5-5.
Format of commands
None
Output
None
Taking a distance measurement in Precise mode.
Resolution and average of current settings are used in the measurement.
When the Data output after MSR feature is set to ON, the measured data is to be
output in the specified format.
Remarks
$TRK
Input
None
Output
None
Taking a distance measurement in Normal mode.
Resolution and average of current settings are used in the measurement.
When the Data output after MSR feature is set to ON, the measured data is to be
output in the specified format.
Remarks
$HTR
Input
None
Output
None
Initiate continuous distance measurements. (AVE=0)
Resolution is fixed to COARSE mode.
When the Data output after MSR feature is set to ON, the measured data is to be
output in the specified format.
Remarks
$SHV
Input
None
Output
None
Remarks
Change display.
$RHA
Input
None
Output
None
Remarks
$BZR
Input
Output
None
Remarks
$BZRn;
0 : Length (1 to 9)
Beep a tone for Length x 50 msec.
P10/34
Confidential
Nikon Communication Interface Manual
$DON
Input
None
Output
None
After receiving this command, output SD in the following format upon every
measurement (initiated by $MSR).
Remarks
+ 0
: ""
+ 1
: "S"
+ 2
: "D"
+ 3
: ":"
+ 4-12
$DNX
Input
None
Output
None
After receiving this command, output HA/VA/SD in the following format upon each
measurement (initiated by $MSR).
Remarks
+ 0
: ""
+ 1
: "S"
+ 2
: "D"
+ 3
: ":"
: ""
+ 14
: "H"
+ 15
: "A"
+ 16
+ 25
+ 26
: ""
+ 27
: "V"
+ 28
: "A"
+ 29
30
+ 38
$DOF
Input
None
Output
None
Remarks
P11/34
Confidential
Nikon Communication Interface Manual
$DSN
Input
None
Output
Remarks
None
Set output SD after each measurement feature ON. After this command, SD from
the very first measurement (initiated by $MSR) is to be output and $DOF is set
automatically.
$DSX
Input
None
Output
Remarks
None
Set output SD/HA/VA after each measurement feature ON. After this command,
SD/HA/VA from the very first measurement (initiated by $MSR) is to be output and
$DOF is set automatically.
$HAN
Input
None
Output
None
Remarks
$ANG
Input
None
Output
Remarks
None
Return (=change the screen on the instrument) to the BMS.
P12/34
Confidential
Nikon Communication Interface Manual
$REC
Input
None
Output
+ 0
: ""
+ 1
: "P"
+ 2
: "N"
+ 3
: ":"
: ""
+ 12
: "S"
+ 13
: "D"
+ 14
: ":"
15
+ 23
+ 24
: ""
+ 25
: "H"
+ 26
: "A"
+ 27
+ 37
: ""
+ 38
: "V"
+ 39
: "A"
+ 40
41
+ 49
+ 50
: ""
+ 51
: "H"
+ 52
: "T"
+ 53
: ":"
54
+ 62
Remarks
P13/34
Confidential
Nikon Communication Interface Manual
$COF
Input
None
Output
Remarks
None
Turn the Lumi-Guide OFF.
$CON
Input
None
Output
Remarks
None
Turn the Lumi-Guide ON.
$LPT
Input
+0
: 0
OFF
: 1
ON
Output
None
Remark
P14/34
Confidential
Nikon Communication Interface Manual
*$REC
Input
None
Output
+ 0
: ""
+ 1
: "P"
+ 2
: "N"
+ 3
: ":"
: ""
+ 21
: "S"
+ 22
: "D"
+ 23
: ":"
24
+ 32
+ 33
: ""
+ 34
: "H"
+ 35
: "A"
+ 36
+ 46
: ""
+ 47
: "V"
+ 48
: "A"
+ 49
50
+ 58
+ 59
: ""
+ 60
: "H"
+ 61
: "T"
+ 62
: ":"
63
+ 71
Remarks
P15/34
Confidential
Nikon Communication Interface Manual
+ 0-1
Output
None
Remarks
Set an average count of the measurement. It is set to [MSR] (or [MSR1]) key only.
!PNO
Input
+ 0-6
Output
None
Remarks
!PSM
Input
+ 0-3
Output
None
Remarks
Set the prism constant. It is set to [MSR] (or [MSR1]) key only.
!T-P
Input
+ 0-2
: Air temperature
+ 3
: ""
+ 4-7
: Air pressure
Output
None
Remarks
!HAN
Input
+ 0-6
Output
None
Remarks
P16/34
Confidential
Nikon Communication Interface Manual
!CND
Input
Output
Remarks
+ 0
"I": ON
+1
: Dont care
+2 - 3
+4 - 5
+6
: Dont care
+7
: Dont care
+8
: Angle resolution:
+9
: Temp./Press. unit
hPa
mmHg
H: high,
C: normal,
inchHg
"2"
"0"
"1"
"5"
"3"
"4"
+ 10
: Distance unit
+ 11
: Angle unit
+ 12
+ 13
: Coordinates axis:
+ 14
+ 15
: C&R correction:
+ 16
: Dont care
+ 17
: Dont care
+ 18
+ 19
: Dont care
D: DMS, G: GON,
X: NEZ order,
M: MIL
Y: ENZ order
N: NEZ (or ENZ) label
O: OFF, I: ON
None
Set a set of initial settings on the instrument
There is no command for C&R coefficient.
!BSE
Input
+0 - 5
+6
: ""
: ""
-
+ 22
+ 23
: ""
24
+ 32
+ 33
: ""
34
+ 42
Output
L: low
None
P17/34
Confidential
Nikon Communication Interface Manual
Remarks
P18/34
Confidential
Nikon Communication Interface Manual
!SOD
Input
+0 - 8
+9
: ""
10
+ 17
+ 18
: ""
19
+ 27
Output
Remarks
None
Set a set of stakeout data (by HA+HD). Upon receiving this command, it jumps to the
Stakeout observation screen as well.
!SOC
Input
+0 - 8
+9
: ""
10
+ 18
+ 19
: ""
20
+ 28
Output
Remarks
None
Set a set of stakeout data (by 9-digit coordinates). Upon receiving this command, it
jumps to the Stakeout observation screen as well.
!TGT
Input
Output
Remarks
+0
: P: prism,
R: reflector sheet,
N: reflectorless mode
None
Set the measuring target (Prism or Ref-sheet/Non-Prism).
DTM-500/501/502//350/330/352/332 can be set to P or R
NPL-350/352/332 can be se to P or N
*!PNO
Input
Output
None
Remarks
*!HAN
Input
+0 - 7
Output
None
Remarks
P19/34
Confidential
Nikon Communication Interface Manual
*!SOC
Input
: ""
-
+ 24
+ 25
: ""
26
+ 37
Output
None
Remarks
Set a set of stakeout data (in 12-digit coordinates) and jump to the Stakeout screen.
*!BSE
Input
+0 - 6
7
+ 8 - 19
+ 20
:" "
:" "
None
Remarks
Set station coordinate data (HI & Stn-XYZ) and HT. (in 12-digit coordinates)
*!H-T
Input
+0 - 6
Output
None
Remarks
P20/34
Confidential
Nikon Communication Interface Manual
None
Output
+0
: "C"
+1
: "N"
+2
: "D"
+3
: ":"
+4
+5
: Fixed as "O"
I: ON
: Fixed as "R"
+ 11
: Fixed as "S"
+ 12
+ 13
:
Temp./Press. unit
hPa
Remarks
mmHg
inchHg
"2"
"0"
"1"
"5"
"3"
"4"
+ 14
: Distance unit
+ 15
: Angle unit
+ 16
+ 17
: Coordinates order:
+ 18
: Coordinates label:
+ 19
+ 20
: Fixed as "R"
+ 21
: Language :
+ 22
+ 23
: Fixed as "O"
D: DMS, G: GON,
M: MIL
E: English K: Japanese
?VAN
Input
Output
None
+0
: ""
+1
: "V"
+2
: "A"
+3
P21/34
Confidential
Nikon Communication Interface Manual
?HAN
Input
None
Output
+0
:""
+1
: "H"
+2
: "A"
+3
?HRV
Input
None
Output
+0
:""
+1
: "H"
+2
: "R"
+3
?SDS
Input
Output
None
+0
: ""
+1
: "S"
+2
: "D"
+3
: ":"
?HDS
Input
None
Output
+0
: ""
+1
: "H"
+2
: "D"
+3
: ":"
+ 4 - 12
Remarks
P22/34
Confidential
Nikon Communication Interface Manual
?VDS
Input
Output
None
+0
: ""
+1
: "V"
+2
: "D"
+3
: ":"
?PSM
Input
Output
None
+0
: "P"
+1
: "S"
+2
: "M"
+3
: ":"
?PNO
Input
Output
None
+0
: "P"
+1
: "N"
+2
: "O"
+3
: ":"
?T-P
Input
Output
None
+0
: "T"
+1
: "M"
+2
: "P"
+3
: ":"
+4 - 6
: Temperature
+7
: "P"
+8
: "R"
+9
: "S"
+ 10
: ":"
+ 11 - 14 : Pressure
Remarks
Confidential
Nikon Communication Interface Manual
?BAT
Input
Output
Remarks
None
+0
: "B"
+1
: "A"
+2
: "T"
+3
: ":"
+4
: 0-5
?AVE
Input
Output
Remarks
None
+0
: ""
+1
: "A"
+2
: "V"
+3
: ":"
+4
: "0"
+5 - 6
P24/34
Confidential
Nikon Communication Interface Manual
?BSE
Input
Output
Remarks
None
+0
: ""
+1
: "H"
+2
: "T"
+3
: ":"
+ 4 - 12
+ 13
: ""
+ 14
: "H"
+ 15
: "I"
+ 16
: ":"
+ 17 - 25
+ 26
: ""
+ 27
: "X"
+ 28
: "B"
+ 29
: ":"
+ 30 - 38
+ 39
: ""
+ 40
: "Y"
+ 41
: "B"
+ 42
: ":"
+ 43 - 51
+ 52
: ""
+ 53
: "Z"
+ 54
: "B"
+ 55
: ":"
+ 56 - 64
P25/34
Confidential
Nikon Communication Interface Manual
?CDR
Input
Output
Remarks
None
+0
: ""
+1
: "C"
+2
: "X"
+3
: ":"
+ 4 - 12
+ 13
: ""
+ 14
: "C"
+ 15
: "Y"
+ 16
: ":"
+ 17 - 25
+ 26
: ""
+ 27
: "C"
+ 28
: "Z"
+ 29
: ":"
+ 30 - 38
?SOD
Input
Output
Remarks
None
+0
: ""
+1
: "S"
+2
: "V"
+3
: ":"
+ 4 - 12
+ 13
: ""
+ 14
: "S"
+ 15
: "A"
+ 16
: ":"
+ 17 - 24
+ 25
: ""
+ 26
: "S"
+ 27
: "H"
+ 28
: ":"
+ 29 - 37
P26/34
Confidential
Nikon Communication Interface Manual
?SOC
Input
Output
Remarks
None
+0
: ""
+1
: "S"
+2
+3
: ":"
+ 4 - 12
+ 13
: ""
+ 14
: "S"
+ 15
: "Y"
+ 16
: ":"
+ 17 - 25
+ 26
: ""
+ 27
: "S"
+ 28
: "Z"
+ 29
: ":"
+ 30 - 38
?LPT
Input
None
Output
+0
: L
+1
: P
+2
: T
+3
: :
+4
: 0
Remark
OFF
ON
P27/34
Confidential
Nikon Communication Interface Manual
*?PNO
Input
Output
Remarks
None
+0
: "P"
+1
: "N"
+2
: "O"
+3
: ":"
+ 4 - 19
*?BAT
Input
Output
Remarks
None
+0
: "B"
+1
: "A"
+2
: "T"
+3
: ":"
+4 - 5
: "00" - "16"
*?CDR
Input
None
Output
+0
: ""
+1
: "C"
+2
: "X"
+3
: ":"
+ 4 - 15
+ 16
: ""
+ 17
: "C"
+ 18
: "Y"
+ 19
: ":"
+ 20 - 31
+ 32
: ""
+ 33
: "C"
+ 34
: "Z"
+ 35
: ":"
+ 36 - 47
Remarks
P28/34
Confidential
Nikon Communication Interface Manual
*?SOC
Input
Output
None
+0
: ""
+1
: "S"
+2
: "X"
+3
: ":"
+ 4 - 15
+ 16
: ""
+ 17
: "S"
+ 18
: "Y"
+ 19
: ":"
: ""
+ 33
: "S"
+ 34
: "Z"
+ 35
: ":"
P29/34
Confidential
Nikon Communication Interface Manual
*?BSE
Input
Output
None
+0
: ""
+1
: "H"
+2
: "I"
+3
: ":"
+ 4 - 10
+ 11
: ""
+ 12
: "X"
+ 13
: "B"
+ 14
: ":"
: ""
+ 28
: "Y"
+ 29
: "B"
+ 30
: ":"
+ 31 42
+ 43
: ""
+ 44
: "Z"
+ 45
: "B"
+ 46
: ":"
*?H-T
Input
None
Output
+0
: ""
+1
: "H"
+2
: "T"
+3
: ":"
+ 4 - 10
Remarks
P30/34
Confidential
Nikon Communication Interface Manual
5-6.
fDDDMMSSS
DDD: degree, MM: minute, SSS: 0.1 second
Gon
fNNNDDDDD
NNN: integer part, DDDDD: decimal part (5 decimal places)
Mil
fNNNNDDDD
NNNN: integer part, DDDD: decimal part (4 decimal places)
* f: sign, negative shows - , positive shows 0
<8-digit type>
Degree
fDDDMMSS
DDD: degree, MM: minute, SSS: 1 second
Gon
fNNNDDDD
NNN: integer part, DDDD: decimal part(4 decimal places)
Mil
fNNNNDDD
NNNN: integer part, DDD: decimal part(3 decimal places)
* f: sign, negative shows - , positive shows 0
<7-digit type>
Degree
DDDMMSS
DDD: degree, MM: minute, SSS: 1 second
Gon
NNNDDDD
NNN: integer part, DDDD: decimal part(4 decimal places)
Mil
NNNNDDD
NNNN: integer part, DDD: decimal part(3 decimal places)
Format
Meters
f NNNNNNNDDDD
NNNNNNN: integer part, DDDD: decimal part(4 decimal places)
Feet
fNNNNNNNNDDD
NNNNNNNN: integer part, DDD: decimal part(3 decimal places)
* f: sign, negative shows - , positive shows 0
<9-digit type>
Meters
f NNNNDDDD
NNNN: integer part, DDDD: decimal part(4 decimal places)
Feet
fNNNNNDDD
NNNNN: integer part, DDD: decimal part(3 decimal places)
P31/34
Confidential
Nikon Communication Interface Manual
Format
Meters
f NNDDDD
NN: integer part, DDDD: decimal part(4 decimal places)
Feet
fNNNDDD
NNN: integer part, DDD: decimal part(3 decimal places)
* f: sign, negative shows - , positive shows 0
<6-digit type>
Meters
f NDDDD
NNNN: integer part, DDDD: decimal part(4 decimal places)
Feet
fNNDDD
NN: integer part, DDD: decimal part(3 decimal places)
* f: sign, negative shows - , positive shows 0
Format
Centigrade/Fahrenhei
fNN
NN: integer
*f: sign (negative shows -,
positive shows 0)
Format
hPa/mmHg
NNNN
NNNN: integer
inHg
NNND
NNN: integer part, D: decimal part(1 decimal places)
P32/34
Confidential
Nikon Communication Interface Manual
6.
c) DATA command (00H) : When an instrument receives the DATA command (00H), it
sends the latest data of SD, VA, HA regardless of current situation.
* In case of EDM OFF, DTM-500 sends the last measured data of SD, VA, HA after it receives
START or DATA command.
P33/34
Confidential
Nikon Communication Interface Manual
7.
SET2Way Emulation
Following commands are supported by Nikon DTM-502/501/350/330/352/332 ,
NPL-350/352/332 and Nivo M series.
Command
501/500/350/330
502/352/332
Note
An exit from HA setout (Gd)
ACK
ACK
/B
/Da
/Db
/Dc
/Dd
/De
ACK
/Df
/Dg
Output Instrument ID
Db
De
Ea
SD/VA/HA measurement
Ec
Ed
Ee
Gb
HD set-out measurement
Gd
HA set-out measurement
ACK
Gf
ACK
Xa
Xb
Xc
ACK
ACK
ACK
ACK
Xd
Xe
Xf
Xg
Xi
Xk
Xl
O:
Supported
-:
Not supported
ACK:
P34/34