RTC6 boards
Doc. Rev. 1.0.21 en-US
10 RTC6 Commands
858
Ctrl Command write_hi_pos
Function Writes the specified values to the Flash Memory of the RTC6 board to be used as ASC
reference values (= Home-In reference positions, not to confuse with Home-In positions).
Call
Result = write_hi_pos ( HeadNo, X1, X2, Y1, Y2 )
Parameters
HeadNo
Number of the scan head connector.
As an unsigned 32-bit value.
Allowed values:
= 1: First scan head connector.
= 2: Second scan head connector.
X1
X1 reference position. In bits.
As a signed 32-bit value.
X2
Like
X1
(analogously).
Y1
Like
X1
(analogously).
Y2
Like
X1
(analogously).
Result Error code.
As an unsigned 32-bit value.
0 Kein Fehler.
Bit #0 =1: Wrong
HeadNo
.
Bit #1 =1: Wrong sensor position for
X1
.
Bit #2 =1: Wrong sensor position for
X2
.
Bit #3 =1: Wrong sensor position for
Y1
.
Bit #4 =1: Wrong sensor position for
Y2
.
Bit #5 =1: Invalid ASC version.
Bit #6 =1: Download failed.
The values have possibly not been saved.
Comments • write_hi_pos is used in cases when a scan head is moved from RTC6 board “A” to
RTC6 board “B” in order to transfer its Home-In reference positions from RTC6 board
“A” to RTC6 board “B”.
• Use
get_hi_pos( HeadNo )
to read out the Home-In reference positions of RTC6 board
“A” (only after init_rtc6_dll, see the get_hi_pos command description).
• write_hi_pos is also executed if the scan head is switched off or even a scan head is
not attached.
• With an ASC type-1 equipped scan head attached, auto_cal
(Command = 4)
(or
auto_cal
(Command = 0)
because this command implicitly executes
auto_cal
(Command = 4
) must have been successfully executed at last on the RTC6 board
“B”.
A cross-check with
get_auto_cal(HeadNo)
needs to return 100. Otherwise,
write_hi_pos would return the error Bit #5 = 1.
If required, connect the scan head to RTC6 board “B” and execute
auto_cal
(HeadNo, 4)
before executing write_hi_pos.
• write_hi_pos takes several hundred µs. During this time, the 10 µs clock cycle of
RTC6 boards is interrupted.