The text of a manual · part 9 of 12
Telegram Listing: Telegrams for Configuring and Operating the NAV200 Laser Positioning System, Firmware Version from V4.4.X: 4 Modes, pages 65 to 74
Pages 65 to 74 of 96, from Telegram Listing: Telegrams for Configuring and Operating the NAV200 Laser Positioning System, Firmware Version from V4.4.X
The original document is the PDF (1.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Sick NAV 200
Page 65
Telegram Listing
Modes
Chapter 4
NAV200
Command PF to NAV200: STX
9
P
F
Rlow0
Rlow1
Rhigh0
Rhigh1
BCC
Block
Format
Denotation
Range
Rlow0, Rlow1
UNIT16 Rlow (LSB, MSB)
Radius in mm at a distance of 0.5 m
100 mm ≤ R ≤ 500 mm (Default setting: 300 mm)
Rhigh0, Rhigh1
UNIT16 Rhigh Radius in mm at a distance of (LSB, MSB) 28.5 m
100 mm ≤ R ≤ 500 mm (Default setting: 300 mm)
Tab. 4-48: Command PF: Denotation of the individual blocks
NAV200 response (acknowledgement): STX
9
P
F
Rlow0
Rlow1
Rhigh0
Rhigh1
BCC
The NAV200 acknowledges the command by displaying what are now valid radii.
4.4.18
Sequence of commands for the positioning mode (determining position)
Principle Commands for the positioning mode and the principle of detemining position are described in detail in the relevant sections of this document. When determining position the quality G of the values should be verified: –
G = 0: Contact lost, the NAV200 attempts to resotre contact in Quickmap.
–
G = –1: Contact lost, virtual determination of position outside 3 m in X or Y
If contact is lost temporarily, the NAV200 will recover contact with command PM, even if it moves. If the movement is accelerated, the vehicle should be brought to a halt prior to transmitting the PM command. If contact cannot be restored, the vehicle must be brought to a halt and a full map must be enforced with command PA or PN. Commands PM, PA and PN may be used without exiting the positioning mode.
8009595/TK80/2009-10-29
© SICK AG · Division Auto Ident · Germany · All rights reserved
65
Page 66
Modes
Chapter 4
Telegram Listing Laser Positioning System NAV200
Sequence of commands for the positioning mode (determining position) a) Initialising the determinination of position in FULLMAP For the initial determination of position in a layer E, the NAV200 is switched from the "standby" mode to the positioning mode with a PA or PN command. The initial determination of position is carried out by the NAV200 in the full map mode and all the visible reflectors are measured, if necessary subject to restrictions according to specifications. Operation
Command to NAV200
NAV200 response
Comment
1. Switch to the positioning mode Alternative
PA
PA
Gliding medium = 4 if selected
PA N
PA N
Gliding medium = N if selected
PL E
PL E
3a. Select radius operation
PO Rfr0 Rfr1 Rfr2 Rfr3 Rto0 Rto1 Rto2 Rto3
3b. Select number "N closest"
PC N
PO If no layer is selected before one of Rfr0 Rfr1 Rfr2 Rfr3 the commands was activated, the Rto0 Rto1 Rto2 Rto3 NAV200 will attempt to find its position in Layer 0. PC N If this layer is not the current layer in which the NAV200 is located, a long response time may result.
2. Select a layer
Optional
4. Repeated position enquiry
Alternative
5a. Determine position by means of automatic velocity determination
PP
5b. Determine position by means of local velocity data input
Pv VX0 VX1 VY0 VY1
5c. Determine position with local velocity and angular velocity input
Pw VXL0 VXL1 VYL0 VYL1 VA0 VA1
5d. Determine position by entering velocity in world co-ordinates
PV VX0 VX1 VY0 VY1 VA0 VA1
PP X0 X1 X2 X3 Y0 Y1 Y2 Y3 A0 A1 G N
On initial position request the NAV200 in the positioning mode will conduct a full map. The vehicle with the NAV200 should not move during this initial operation. The following reflector position detections will be conducted by the NAV200 in Quickmap with the reflector identification gained in previous measurements.
Tab. 4-49: Sequence of commands for initialising the FULL MAP
66
© SICK AG · Division Auto Ident · Germany · All rights reserved
8009595/TK80/2009-10-29
Page 67
Modes
Telegram Listing
Chapter 4
NAV200 b) Initialising the positioning mode with pre-set position The NAV200 is switched from the "standby" mode to the positioning mode with current position data. Operation 1. Switch to the positioning mode
2. Optional
NAV200 response
Comment
PA
PA
Gliding medium = 4 if selected
PA N
PA N
Gliding medium = N if selected
BS N
BS N
PM E X0 X1 X2 X3 Y0 Y1 Y2 Y3 A0 A1
PM E X0 X1 X2 X3 Y0 Y1 Y2 Y3 A0 A1
Alternative
2. Select layer bank
2. Select a layer with a specified position#
Optional
Command to NAV200
3a. Select radius opera- PO tion Rfr0 Rfr1 Rfr2 Rfr3 Rto0 Rto1 Rto2 Rto3 3b. Select number "N closest"
PC N
The NAV200 uses the position data in order to recognise the reflectors by comparing the measurements with the expected reflector positions (Quickmap). This procedure is faster than a full map.
PO See chapter 4.4.14 Command PO: Select the operating radii of the Rfr0 Rfr1 Rfr2 Rfr3 Rto0 Rto1 Rto2 Rto3 NAV200, page 60 and chapter 4.4.15 Command PC: PC N Select "the number N of closest reflectors", page 61.
4. Repeated position enquiry
Alternative
5a. Determine position by means of automatic velocity determination
PP
5b. Determine position by means of local velocity data input
Pv VX0 VX1 VY0 VY1
5c. Determine position with local velocity and angular velocity input
Pw VXL0 VXL1 VYL0 VYL1 VA0 VA1
5d. Determine position by entering velocity in world co-ordinates
PV VX0 VX1 VY0 VY1 VA0 VA1
PP X0 X1 X2 X3 Y0 Y1 Y2 Y3 A0 A1 G N
Once the layer selection process has been started with command PM, the NAV200 will carry out the first and the following position requests in Quickmap (with reflector identification, on the basis of the PM position data or the previous measurement).
Tab. 4-50: Sequence for initialising the positioning mode with a specified position
8009595/TK80/2009-10-29
© SICK AG · Division Auto Ident · Germany · All rights reserved
67
Page 68
Modes
Chapter 4
Telegram Listing Laser Positioning System NAV200 c) Reactivating positioning mode when contact is lost The NAV200 is prepared for operating in the positioning mode. Operation 1a. Restore contact: Conduct FULL MAP
Command to NAV200
NAV200 response
Comment
PA
PA
PA N
PA N
The NAV200 is prepared for operation in the positioning mode but contact to the reflectors has been lost (shown as G = 0 or G = –1). The vehicle with the NAV200 should not move before the next response to a position request (with G > 0).
PM E X0 X1 X2 X3 Y0 Y1 Y2 Y3 A0 A1
PM E X0 X1 X2 X3 Y0 Y1 Y2 Y3 A0 A1
The position data helps to regain contact to the reflectors by comparing the measurements with the expected reflector positions (Quickmap). This procedure is faster than a full map.
PP X0 X1 X2 X3 Y0 Y1 Y2 Y3 A0 A1 G N
If the positioning mode has been started with a PA or PN command, the NAV200 will conduct the first position request in the full map mode. The vehicle with the NAV200 should not move during this initial operation. Once the PM command has been entered, the NAV200 will carry out the first and the following position requests in Quickmap (with reflector identification on the basis of the PM position data or the previous measurement).
Alternative Alternative 1b. Restore contact: Select layout layer with position data input. Continue with QUICKMAP
2. Repeated position enquiry 3a. Determine position by means of PP automatic velocity determination 3b. Determine position by means of Pv entering local velocity data VX0 VX1 VY0 VY1 Alternative
3c. Determine position with local velocity and angular velocity input
Pw VXL0 VXL1 VYL0 VYL1 VA0 VA1
3d. Determine position by entering velocity in world co-ordinates
PV VX0 VX1 VY0 VY1 VA0 VA1
Tab. 4-51: Sequence of commands for reactivating the positioning mode for a lost contact
68
© SICK AG · Division Auto Ident · Germany · All rights reserved
8009595/TK80/2009-10-29
Page 69
Telegram Listing
Modes
Chapter 4
NAV200
4.5
"Upload" and "Download" modes
Upload and download modes are available for transferring the reflector co-ordinates stored in the NAV200 between several positioning systems NAV200 with the help of a PC/vehicle processor. Upload (from NAV200) and Download (to NAV200) are explicitly activated. In the upload/ download modes each reflector position is requested individually from the NAV200/transferred individually to the NAV200 in order to ensure that data is properly processed and transferred. Whereby the NAV200 operates on the currently active bank of layers (see Chapter 4.2.15, page 35 / Chapter 4.2.16, page 35) The reflector radii belonging to the respective layers are read out of the reflector memory in the upload mode with command RG (see chapter 4.2.13 Command RG: Display the reflector radius of a layer stored in the NAV200, page 33 ) and are placed in download with command RS (see chapter 4.2.14 Command RS: Enter the reflector radius of a layer in the NAV200, page 34) 4.5.1
Command UA: Activate upload in the NAV200
Mode
U Upload
Function
A Activate mode
Command UA to NAV200: STX
5
U
A
BCC
A
BCC
NAV200 response (acknowledgement): STX
5
U
The "upload" mode is active. The reflector positions can now be requested step-by-step from the NAV200. Example of command input/NAV200 response: Name
Command
Block check
Structure
STX
5
U
A
BCC
Byte position
1
2
3
4
5
Hex
02h
05h
55h
41h
13h
Value
8009595/TK80/2009-10-29
Start character Length
UA
© SICK AG · Division Auto Ident · Germany · All rights reserved
69
Page 70
Modes
Chapter 4
Telegram Listing Laser Positioning System NAV200
4.5.2
Command UR: Request the next reflector position from the NAV200
Mode
U Upload
Function
R Display the next reflector position
Command UR to NAV200: STX
6
U
R
E
Block
Denotation
Range
E
Number of the layer
0 ... 159
BCC
Tab. 4-52: Command UR: Denotation of block E
Request to the NAV200 to display the position of the next reflector in Layer E. NAV200 response (acknowledgement): STX
15
U
R
E
No.
Block
Denotation
E
Number of the layer
X0
X1
X2
X3
Y0
No.
Number of the reflector in the layer
X0 ... X3
X position of the reflector in mm (4 bytes, LSB to MSB)
Y0 ... Y3
Y position of the reflector in mm (4 bytes, LSB to MSB)
Y1
Y2
Y3
BCC
Tab. 4-53: Command UR: Structure of the NAV200 response
Position of the next reflector in the list. When reflector number –1 is displayed, the NAV200 has transferred all the reflectors in a layer. Example of a command input: Name
Start character Length
Command
Data
Block check
Structure
STX
6
U
R
E
BCC
Byte position
1
2
3
4
5
6
Hex
02h
06h
55h
52h
02h
01h
Value
UR
2
Example of NAV200 response: Name
Start character
Length Command
Data
Structure
STX
15
U
R
E
No.
X0
X1
X2
X3
Y0
Y1
Y2
Y3
BCC
Byte position 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Hex
0Fh
55h
52h
13h
02h
87h 22h 00h 00h 4Dh DAh FFh
FFh
29h
19
2
X = 8,839 mm
Value
70
02h
UR
Block check
© SICK AG · Division Auto Ident · Germany · All rights reserved
Y = -9,651 mm
8009595/TK80/2009-10-29
Page 71
Telegram Listing
Modes
Chapter 4
NAV200
4.5.3
Command DA: Activate download to the NAV200
Mode
D Download
Function
A Activate mode
Command DA to NAV200: STX
5
D
A
BCC
A
BCC
NAV200 response (acknowledgement): STX
5
D
The "download" mode is active. The individual reflector positions may now be delivered stepby-step to the NAV200. Example of command input/NAV200 response: Name
Command
Block check
Structure
STX
5
D
A
BCC
Byte position
1
2
3
4
5
Hex
02h
05h
44h
41h
02h
Value
8009595/TK80/2009-10-29
Start character Length
DA
© SICK AG · Division Auto Ident · Germany · All rights reserved
71
Page 72
Modes
Chapter 4
Telegram Listing Laser Positioning System NAV200
4.5.4
Command DR: Download the next reflector position in the NAV200
Mode
D Download
Function
R Deliver the next reflector position
Command DR to NAV200: STX
15
D
R
E
No.
X0
X1
X2
X3
Y0
Y1
Y2
Y3
Block
Denotation
Range
E
Number of the layer
0 ... 159
No.
Number of the reflector in the layer
0 ... 31, –1 as end identification
X0 to X3
X position of the reflector (4 bytes, LSB to MSB) –8,380,000 ... 8,380,000 mm
Y0 to Y3
Y position of the reflector (4 bytes, LSB to MSB) –8,380,000 ... 8,380,000 mm
BCC
Tab. 4-54: Command DR: Denotation of the individual blocks
Position of the next reflector in the list. When reflector number –1 is entered, all the reflectors in a layer will have been transferred to the NAV200. The NAV200 then transfers the reflector positions from the main memory to the reflector memory. Important
Any reflector transfer sequence which has not be conducted sequentially and concluded in this manner will be rejected with an error message; the reflector data will be invalid. NAV200 response (acknowledgement): STX
7
D
R
E
Block
Denotation
E
Number of the layer
No.
Number of the reflector in the layer
No.
BCC
Tab. 4-55: Command DR: Structure of the NAV200response
The NAV200 acknowledges inclusion in the layer with the respective reflector number. Example of a command input: Name
Start character
Length Command
Data
Structure
STX
15
E
D
R
Block check No.
X0
X1
X2
X3
Y0
Y1
Y2
8
9
10
11
12
Y3
BCC
Byte position 1
2
3
4
5
6
7
13
14
15
Hex
0Fh
44h
52h
13h
02h
87h 22h 00h 00h 4Dh DAh FFh
FFh
38h
19
2
X = 8,839 mm
02h
Value
DR
Y = -9,651 mm
Example of NAV200 response: Name
Start character
Length Command
Structure
STX
7
Byte position
1
2
3
4
5
6
7
Hex
02h
07h
44h
52h
13h
02h
02h
19
2
Value
72
D
Data R
DR
© SICK AG · Division Auto Ident · Germany · All rights reserved
E
Block check No.
BCC
8009595/TK80/2009-10-29
Page 73
Modes
Telegram Listing
Chapter 4
NAV200
4.6 Important
"Reflector co-ordinate" mode
The information contained in this section refers only to a NAV200 as of Firmware 4.4.x. When measuring reflector positions, the NAV200 combines the successive individual measurements for one and the same reflector to a single reflector co-ordinate. These reflector co-ordinates result from the point of intersection of the scanning surface and the centre line of a reflector. For flat reflectors this is the vertical middle line and for cylindrical reflectors it is the central axis. The NAV200 therefore needs to know the radius if it is to measure cylindrical reflectors.
Important
Radius = 0 indicates flat reflectors; their width is not required for measurement. In order to distinguish the reflector sheeting from the other surroundings, the NAV200 uses a previously stored, distance-related detection threshold. This detection threshold is measured in the factory for each NAV200 on a 100-mm wide flat reflector from "3M Diamond Grade" reflector sheeting. The SP command is available for modifying the detection threshold, chapter 4.2.12 Command SP: Configure reflector detection threshold in the NAV200, page 32 describes the detection threshold. The reflector co-ordinates are each determined by means of a 360° rotation of the scanner head and are stamped with a time stamp. The time stamp facilitates synchronisation with the time axis of the application software. Image rectification on taking account of sensor movement such as is used for positioning the NAV200 is not possible here, since velocities are not known. It needs to be carried out by the vehicle control system. As additional information in this mode, the NAV200 displays the strength of signals received (average echoamplitude) and the number of individual measurements on the respective reflectors. Basic information on data formats is available in chapter 3 Introduction, page 10. 4.6.1
Local co-ordinates
The origin of the NAV200 co-ordinates is in the central axis of the scanner head, which is perpendicular to the scanning surface (see chapter 3.6 Co-ordinate systems, page 13). The x-axis points towards the connectors parallel to the lateral edge of the bottom plate. The angle data is mathematically positive in an anti-clockwise direction. The scanner head turns in a clockwise direction on the scanning surface, i.e. mathematically negatively. The local co-ordinate system can be reflected with command SU so that the scanner head turns anti-clockwise relative to the co-ordinate system. Command SU does not automatically change the direction of rotation here. Users require this option for measuring on reflectors in an absolute co-ordinate system when the NAV200 is mounted upside down (scan axis turned by 180° and scanner head pointing downwards). The NAV200 needs the information when measuring in local co-ordinates for calculating the angle and co-ordinates and for the chronological order of the measurements. See also chapter 4.2.7 Command SU: Enter the NAV200 scanner head direction of rotation, page 25.
8009595/TK80/2009-10-29
© SICK AG · Division Auto Ident · Germany · All rights reserved
73
Page 74
Chapter 4
Modes
Telegram Listing Laser Positioning System NAV200
4.6.2
Commands in the "reflector co-ordinate" mode
The "reflector co-ordinate" mode is activated with command RA and is switched off again with command SA. Reflector measurement commences after initialisation by command RA. Command RD for reflector positions in polar co-ordinates and command RK for X/Y co-ordinates (cartesian co-ordinates) are used to enable the NAV200 to retrieve reflector positions. The time stamp in ms included in the measurement data is the time span from taking a measurement for an individual reflector to the display of the first bytes of a response. The NAV200 transfers a maximum of 30 reflector positions. If it identifies more reflectors it selects the data of the 30 closest reflectors. The following describes commands relevant for reflector measurement and data transmission. 4.6.3
Command RA: Activate "reflector co-ordinate" mode
Mode
R Reflector co-ordinates
Function
A Activate mode
Command RA to NAV200: STX
5
R
A
BCC
A
BCC
NAV200 response (acknowledgement): STX
5
R
The "reflector co-ordinate" mode is active. Example of command input/NAV200 response: Name
Start character Length
Command
Structure
STX
5
R
A
BCC
Byte position
1
2
3
4
5
Hex
02h
05h
52h
41h
14h
Value
74
Block check
RA
© SICK AG · Division Auto Ident · Germany · All rights reserved
8009595/TK80/2009-10-29