![Omron CJ1M-CPU21 Operation Manual Download Page 150](http://html1.mh-extra.com/html/omron/cj1m-cpu21/cj1m-cpu21_operation-manual_742493150.webp)
121
PULSE WITH VARIABLE DUTY FACTOR: PWM(891)
Section 5-10
Operand Specifications
Description
PWM(891) outputs the frequency specified in F at the duty factor specified in
D from the port specified in P. PWM(891) can be executed during duty-factor
pulse output to change the duty factor without stopping pulse output. Any
attempts to change the frequency will be ignored.
Pulse output is started each time PWM(891) is executed. It is thus normally
sufficient to use the differentiated version (@PWM(891)) of the instruction or
an execution condition that is turned ON only for one scan.
The pulse output will continue either until INI(880) is executed to stop it (C =
0003 hex: stop pulse output) or until the CPU Unit is switched to PROGRAM
mode.
Flags
Area
P
F
D
CIO Area
---
CIO 0000 to CIO 6143 CIO 0000 to CIO 6143
Work Area
---
W000 to W511
W000 to W511
Holding Bit Area
---
H000 to H511
H000 to H511
Auxiliary Bit Area
---
A000 to A959
A000 to A959
Timer Area
---
T0000 to T4095
T0000 to T4095
Counter Area
---
C0000 to C4095
C0000 to C4095
DM Area
---
D00000 to D32767
D00000 to D32767
EM Area without bank ---
---
---
EM Area with bank
---
---
---
Indirect DM/EM
addresses in binary
---
@ D00000 to @
D32767
@ D00000 to @
D32767
Indirect DM/EM
addresses in BCD
---
*D00000 to *D32767
*D00000 to *D32767
Constants
See
descrip-
tion of
operand.
0000 to FFFF hex
• Pre-Ver. 2.0 CPU
Units
0000 to 0064 hex
• CPU Units Ver. 2.0
0000 to 03E8 hex
Data Registers
---
DR0 to DR15
DR0 to DR15
Index Registers
---
---
---
Indirect addressing
using Index Registers
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Name
Label
Operation
Error Flag
ER
ON if the specified range for P, F, or D is exceeded.
ON if pulses are being output using ORG(889) for the
specified port.
ON if PWM(891) is executed in an interrupt task when an
instruction controlling pulse output is being executed in a
cyclic task.
Summary of Contents for CJ1M-CPU21
Page 1: ...Cat No W395 E1 03 CJ series Built in I O CJ1M CPU21 22 23 CJ1M CPU Units...
Page 2: ...CJ series Built in I O CJ1M CPU21 22 23 CPU Units Operation Manual Revised August 2004...
Page 3: ...iv...
Page 19: ...xx...
Page 79: ...50 Wiring Examples Section 3 3...
Page 217: ...188 Origin Search and Origin Return Functions Section 6 3...
Page 220: ...191 Built in Outputs Section 7 1...
Page 247: ...218 Built in Outputs Section 7 1...
Page 251: ...222 Combinations of Pulse Control Instructions Appendix A...
Page 255: ...226 Using Pulse Instructions in other CPU Units Appendix B...
Page 263: ...234 Index...
Page 265: ...236 Revision History...