Pulse With Variable Duty Ratio -- Pwm - Omron CPM1 Programming Manual

Hide thumbs Also See for CPM1:
Table of Contents

Advertisement

Operation in Continuous
Mode
Flags
7-26-8 PULSE WITH VARIABLE DUTY RATIO - - PWM(- - - -)
PWM(----)
P
F
D
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.
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(----).
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.
Ladder Symbols
@PWM(----)
P
F
D
Pulse frequency
Operand Data Areas
IR, SR, AR, DM, HR, LR, #
IR, SR, AR, DM, HR, LR, #
Section
Time
P: Port specifier
000 or 010
F: Frequency
D: Duty ratio
7-26

Advertisement

Table of Contents
loading

This manual is also suitable for:

Srm-v2Cpm1aCpm2aSrm1Cpm2c

Table of Contents