RTC
®
5 PC Interface Board
Rev. 1.9 e
9 Programming Peripheral Interfaces
216
innovators for industry
shows the timing diagram of a typical
encoder signal pair. The second encoder signal is
usually phase-shifted by 90° relative to the first
signal. The internal RTC
®
encoder counter triggers at
each edge of both signals, i.e. one encoder increment
results in four counter pulses (counts). The relative
90° phase-shift of the two signals allows the RTC
®
board to detect not only the speed but the direction
of movement as well. Depending on the direction of
movement, the counter value is increased or
decreased.
The signals of encoder input ENCODER X will trigger
encoder counter Encoder0, the signals of encoder
input ENCODER Y will trigger encoder counter
Encoder1.
The input signals of the user-supplied encoder must
not exceed a maximum allowed frequency of 4 MHz
(i.e. 16 encoder signal edges per
µ
s).
Encoder Simulation
The encoder simulation can be activated (and deacti-
vated) via
. The RTC
®
5 provides a
periodic 1 MHz clock signal. After the encoder simu-
lation is activated, the selected encoder counter (or
both counters) will be incremented at this clock rate.
Signals of an attached incremental encoder will then
be ignored.
9.3.4 Synchronization and Online
Positioning via McBSP Signals
For processing moving workpieces with a (stationary)
scan system or a (stationary) workpiece with a
moving scan system (e.g. via a robot arm), the laser
scan processes need to be adapted to the workpiece’s
current position relative to the scan system
(Processing-on-the-fly). Before processing randomly
or imprecisely positioned and oriented workpieces,
the scan system needs to be precisely aligned to the
workpiece (online positioning).
The current position of the workpiece or scan system
can be forwarded via the McBSP interface to the
RTC
®
5. The input value most recently fully trans-
mitted at the McBSP interface can be queried via
®
5 automatically
evaluates the current input value if execution of the
laser scan processes is controlled as follows:
• For Processing-on-the-fly-applications (see
), the coordinate values of all vector and
arc commands are transformed in accordance
with the current input value (i.e. in accordance
with the current position of the workpiece or scan
system).
• Via the list command
execution of a list can be postponed until the
input value (i.e. the position of the workpiece or
scan system) has reached, overstepped or under-
stepped a pre-defined value.
• Via online positioning (see
system will be aligned in accordance with the
current input values.
Notes
• To compensate linear motion, cartesian coordi-
nates can be forwarded via the McBSP interface.
Compensation of rotational motion, on the other
hand, requires transmission of angle positions
(i.e. values proportional to the current angle
position – similar to synchronization via encoder
signals, see
). It doesn’t matter if the
transmitted signal resets or simply counts further
upon overflow (angle > 360°).
• The signals at the McBSP interface have no impact
on the track delay, which can be defined for
external list starts (via
,
or
60
Counter
Pulses
Encoder Increment
(360°)
Encoder Rotation Angle
Encoder
Signal 1
Encoder
Signal 2
Timing diagram of a typical encoder signal pair and of the corre-
sponding RTC
®
counter pulses