380
6
6 Positioning and InterpolationPLSY: Pulse output
PLSY: Pulse output
◆
Overview
A specied number of pulses are output at the specied pulse frequency.
PLSY
S1 S2 D
Pulse Output Applicable model:
H3U
S1
Output
frequency
Specied pulse output frequency
16-bit instruction
(7 steps)
PLSY:
Continuous
execution
32-bit instruction
(13 steps)
DPLSY: Continuous
execution
S2 Pulse count Specied number of pulse outputs
D Output port High-speed pulse output port
◆
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S1 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM V Z Modication K H E
S2 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM V Z Modication K H E
D X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM V Z Modication K H E
◆
Functions and actions
Because the relay is not applicable to high-frequency actions, this instruction is applicable only to the PLC
of the transistor output type. This instruction can be used to output S2 pulses at the S1 frequency through
the port specied by D. After the pulses are sent, the M8029 ag is set. Wherein:
D indicates the pulse output port which can be Y0, Y1, Y2, Y3, or Y4.
S1 indicates the designated output pulse frequency. For a 16-bit instruction (PLSY), the frequency ranges
from 1 Hz to 32,767 Hz. For a 32-bit instruction (DPLSY), the frequency ranges from 1 Hz to 200,000 Hz (that
is, 1 Hz to 200 kHz). The S1 value can be changed during instruction execution.
S2 indicates the number of the output pulses. For a 16-bit instruction (PLSY), the number ranges from 1 to
32,767. For a 32-bit instruction (DPLSY), the number ranges from 1 to 2,147,483,647. When S2 is 0, innite
pulses are sent continuously.
When the instruction ow status is OFF, the pulse output stops immediately. When the instruction ow
status switches from OFF to ON, the pulse output restarts. When the instruction is executed, the M8029
ag is set to ON.
The following gure shows a pulse output diagram.