3. Instructions
D: Duty factor
Numeric unit
1%
0.1%
Operand Specifications
Word addresses
Area
CIO
WR
HR
P
---
---
---
F, D
OK
OK
OK
Flags
Name
Label
Error Flag
P_ER
Function
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 PWM output to change the duty factor without stopping
PWM output. Any attempts to change the frequency will be ignored. PWM 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 PWM output will continue until stopped using one of the following occurs:
(1) INI(880) is executed to stop it (C = 0003 hex: stop PWM output).
(2) The CPU Unit is switched to PROGRAM mode.
778
Setting range
0% to 100%
0 to 100 (0000 to 0064 hex)
0.0% to 100.0%
0 to 1,000 (0000 to 03E8 hex)
@DM
AR
T
C
DM
EM
---
---
---
---
---
OK
OK
OK
OK
OK
• ON if the specified range for P, F, or D is exceeded.
• ON if the origin search function is assigned to the PWM output terminal in the PLC Setup.
• ON if PWM(891) is executed in an interrupt task for the same port number when PWM(891) is already being exe-
cuted.
• For a CJ2M CPU Unit, ON for any function that uses I/O on the Pulse I/O Module even if a Pulse I/O Module is not
mounted.
• OFF in all other cases.
CJ1M-CPU2@
(pre-version 2.0)
Not allowed.
Indirect DM/EM
addresses
Con-
stants
*DM
DR
@EM
*EM
---
---
---
OK
OK
OK
OK
Operation
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Setting support
CJ1M-CPU2@ with unit
version 2.0 or later or
CJ2M + MD21@
OK
OK
OK
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
---
---
---
OK
TR
bits
---
---
Need help?
Do you have a question about the CJ - INSTRUCTIONS and is the answer not in the manual?
Questions and answers