462
6
6 Positioning and InterpolationPWM: Pulse width modulation
7) Interpolation at x- and y-axes (Y0/Y1) results in output complete interrupt of only one pulse.
8) The "interrupt enabling ag bit" of special elements must be set. See the following table.
Y0 Y1 Y2 Y3 Y4 Attribute
M8352 M8372 M8392 M8412 M8432 Output complete interrupt enabling
Y0 output
complete
interrupt
Y1 output
complete
interrupt
Y2 output
complete
interrupt
Y3 output
complete
interrupt
Y4 output
complete
interrupt
Corresponding interrupt
9) The pulse output is stopped.
The pulse output can be stopped by setting the "pulse output stop ag bit" of special elements. See the
following table.
Y0 Y1 Y2 Y3 Y4 Attribute
M8349 M8369 M8389 M8409 M8429 Pulse output stop ag
6.4 High-speed Processing Instruction
PWM: Pulse width modulation
◆
Overview
This instruction is used to output modulated square waves at the specied pulse width and during the
specied pulse period.
PWM
S1 S2 D
PWM Applicable model:
H3U
S1
Output
pulse width
Specied output pulse width
16-bit instruction (7
steps)
PWM: Continuous
execution
S2
Pulse
period
Specied pulse period
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
Note: The elements in gray background are supported.
◆
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 is used to continuously output pulses at the pulse width
specied by S1 through the port specied by D within the pulse period specied by S2.