RTC
®
5 PC Interface Board
Rev. 1.9 e
10 Commands And Functions
424
innovators for industry
Normal
List Command
set_fly_2d
Function
activates Processing-on-the-fly correction for compensation of a linear workpiece-
movement in two dimensions (based on the encoder values transferred to the RTC
®
5 via
encoder counters Encoder0 and Encoder1 and corrected via a special 2D table) and sets
the corresponding scaling factors. The current encoder values get added to the previous
reference values of 2D encoder compensation and the sums get stored as the new
reference values (see notes). The encoder counters get reset to zero.
Restriction
If the Processing-on-the-fly option is not enabled, then the command terminates the
Processing-on-the-fly process (even though it couldn’t have been activated).
Call
set_fly_2d( ScaleX, ScaleY )
Parameters
ScaleX
scaling factor for the X direction (encoder counter Encoder0) in
bits/count
(as a 64-bit IEEE floating point value);
allowed range: 1/256
|
ScaleX
|
16000.0
ScaleY
scaling factor for the Y direction (encoder counter Encoder1) in
bits/count
(as a 64-bit IEEE floating point value);
allowed range: 1/256
|
ScaleY
|
16000.0
Comments
• For Processing-on-the-fly correction (e.g. determination of the scaling factor or deacti-
vating Processing-on-the-fly correction), see the
chapter 8.7 "Processing-on-the-fly
. For
set_fly_2d
command usage, see the
sation of 2D Motions", page 184
• If unallowed parameter values are supplied (e.g. for
ScaleX
= 0), then
set_fly_2d
will
not activate a Processing-on-the-fly correction or will deactivate a Processing-on-the-fly
correction previously activated via
set_fly_2d
(but will not deactivate any other
Processing-on-the-fly correction). The latter case leads to a jump (at jump speed) to the
endpoint of the most recently executed vector or arc command (without “set_fly_2d“
Processing-on-the-fly correction).
However, Processing-on-the-fly correction successfully activated via
set_fly_2d
switches off any other Processing-on-the-fly correction and will itself get switched off
by any other Processing-on-the-fly command, even if that other command contains
unallowed parameters (see
section "Overview" on page 178
).
• When using
, do
not
set bit#9, which would result in the encoder
values getting reset only after the subsequent external start trigger. Otherwise the refer-
ence values of 2D encoder compensation will be lost.
• Don’t intermediately call
to switch on the Processing-on-the-fly
application if you intend to use
set_fly_2d
in conjunction with 2D encoder compensa-
tion for an XY stage, because here too the reference values will be lost.
• If no correction table for 2D encoder compensation has yet been loaded onto the board
), then the encoder values will be used without correction.
• If a coordinate transformation in the virtual image field is active, then it will be applied
to the entire virtual image field
before
Processing-on-the-fly correction (see the
"Coordinate Transformations in the Virtual Image Field" on page 185
).
• You can also use the
set_fly_2d
Processing-on-
the-fly correction.
RTC
®
4
RTC
®
5 new command
In RTC
®
4 compatibility mode, the RTC
®
5 multiplies the specified scaling factors by 16 (the
permissible range of values is correspondingly reduced).
Version info
Available beginning with version DLL 536, OUT 536