7-27
Section
Pulse Output Instructions
494
In continuous mode, pulses will be output indefinitely until stopped by executing
INI(61) with C=003, executing ACC(––) again with the target frequency (in C+1)
set to 0000, or switching the PC to PROGRAM mode.
Pulse frequency
Time
The following conditions apply when ACC(––) is executed while pulses are al-
ready being output with trapezoidal acceleration/deceleration.
•
ACC(––) will have no effect if it is executed when the pulse output is accelerat-
ing or decelerating.
•
When ACC(––) is executed while pulses are being output in continuous mode,
the frequency can be changed to a new target frequency (0001 to 1000: 10 Hz
to 10 kHz) with the set acceleration/deceleration rates.
•
If pulses are being output in independent mode, the pulse output can be decel-
erated to a stop while by executing ACC(––) with the target frequency (in C+1)
set to 0000. The acceleration/deceleration rates and number of output pulses
won’t be checked or changed.
•
ACC(––) will have no effect if it is executed when pulses are being output by
one of the following instructions. (The pulse output will continue unchanged.)
Pulses being output from output 01000 by SPED(64).
Pulses being output from output 01001 by SPED(64).
Pulses being output from output 01000 by PWM(––).
Pulses being output from output 01001 by PWM(––).
Note
Be sure to check the status of the pulse output before executing ACC(––).
Flags
ER:
A data area boundary is exceeded.
Indirectly addressed DM word is non-existent. (Content of *DM word is
not BCD, or the DM area boundary has been exceeded.)
P is not 000.
M is not 000, 002, or 010 to 013. (The mode specifier is read only when
starting the pulse output.)
ACC(––) is executed for a bit from which pulses are already being out-
put by PWM(––) or SPED(64).
ACC(––) is executed in an interrupt subroutine while a pulse I/O or high-
speed counter instruction (INI(61), PRV(62), CTBL(63), SPED(64),
PULS(65), ACC(––), PWM(––), or SYNC(––)) is being executed in the
main program.
7-27-4
PULSE WITH VARIABLE DUTY RATIO – PWM(––)
P:
Port specifier
000 or 010
Ladder Symbols
Operand Data Areas
@PWM(––)
P
F
D
D
: Duty ratio
IR, SR, AR, DM, HR, LR, #
F:
Frequency
IR, SR, AR, DM, HR, LR, #
PWM(––)
P
F
D
Operation in Continuous
Mode