Chapter 4 Register Programming; Pcl-839+ Registers; 1R0 : Down-Counter (24 Bits) - Advantech PCL-839+ User Manual

3-axis stepping motor control card
Table of Contents

Advertisement

Chapter 4 Register Programming

4.1 PCL-839+ Registers

Several registers are used to control the PCL-839+. The PCL-839+ uses
these registers to store commands, speed, mode, number of pulses etc.
The following sections describe these registers in detail.
4.1.1 R0 : Down-Counter (24 bits)
The down counter counts down when a pulse is output in manual mode,
origin mode or preset mode. If the counter is stopped in operation mode,
counting ceases. If a pulse is output when the counter has reached 0, the
counter reverts to its maximum number (FFFFFF in Hex, 16777215 in
Decimal).
The counter value can be read at any stage - in operation or during stand-
still. When reading the value in operation, two quick reads must be done
before the next pulse changes the value of the counter. Compare the two
values - if they are the same then this is the true number of the residual
pulses.
In preset mode you set the required number of pulses on the counter. The
counter counts down when a pulse is output and pulse generation will
stop when the counter reaches 0. The starting range is 00001 (hex) to
FFFFFF (hex) (1 to 16777215 in decimal notation). If the counter is set to
0 when operation is started, no pulse generation will occur. At that time
the operation flag will indicate the halt condition, but the INT signal is
not output.
If counting is interrupted by a deceleration-stop or reset command, the
current counter value is stored, and counting will continue as soon as the
start command is received. As the counter will be at 0 when operation is
complete, it is necessary to supply an initial value every time preset mode
is started.
PCL-839+ User Manual
40

Advertisement

Table of Contents
loading

Table of Contents