427
6
6 Positioning and Interpolation PLSN: Multi-speed pulse output
The number of pulses to be output is used as the position relative to the current value registers listed in the
following table.
Y0 Y1 Y2 Y3 Y4 Attribute
D8340 D8360 D8380 D8400 D8420
Current value register (PLS) (32-bit)
D8341 D8361 D8381 D8401 D8421
The numerical value of the current value register decreases in the reverse direction.
S2 indicates the specied pulse output frequency at the rst segment. The pulse output frequencies at
other segments are stored in subsequent consecutive elements. For a 16-bit instruction, the range is 10 to
32,767 Hz. For a 32-bit instruction, the range is 10 to 200,000 Hz.
D1 indicates the pulse output port which can be Y0, Y1, Y2, Y3, or Y4.
D2 indicates the running direction of the output port or the bit variable. If output is ON, it means running in
the forward direction; otherwise, it means running in the reverse direction.
S3 indicates the specied number of the pulse segments, in the range 2 to 16.
When the instruction ow is OFF, the pulse output is decelerated to stop, and the execution complete ag
M8029 takes no action. After the instruction driving point switches to OFF, when the ag is ON during pulse
output, the ag is not driven again by the instruction. When the ow switches from OFF to ON, the pulse
output resumes. When the instruction execution is complete, the M8029 ag is set to ON.
The following gure shows a pulse output diagram.
Startup
Frequency
Time
P1 P2 P3 P4
...
V1 V2 V3 V4 ...
◆
Note
1) The user may monitor the corresponding special register for checking current pulse position,
as shown in the following table.
Y0 Y1 Y2 Y3 Y4 Attribute
D8340 D8360 D8380 D8400 D8420
Current value register (PLS) (32-bit)
D8341 D8361 D8381 D8401 D8421