777
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
High-speed Counter/Pulse Output Instructions
3
PWM
PWM
Applicable Program Areas
Operands
P: Port specifier/numeric units
F: Frequency
Instruction Mnemonic Variations Fun No. Function
PWM outputs PWM @PWM 891
PWM(891) is used to output pulses with a variable
duty factor.
Symbol
PWM
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or transition
programs
Usage OK OK OK OK OK OK
Operand Description Data type Size
P Port specifier/numeric units --- 1
F Frequency UNIT 1
D Duty factor UNIT 1
Set value Frequency unit Duty ratio unit
Setting support
CJ1M-CPU2@ CJ2M+MD21@
#000@
0.1 Hz 1%
OK OK
#100@
0.1 Hz 0.1%
OK OK
#110@
1 Hz 0.1%
Not allowed. OK
Setting support
CJ1M-
CPU21
CJ1M-
CPU22/23
CJ2M+MD21@
Port number
0OKOK
OK
1
Not allowed. OK
OK
2 Not allowed. Not allowed.
OK
3 Not allowed. Not allowed. OK
Numeric unit Setting range
Setting support
CJ1M-CPU2@ CJ2M+MD21@
0.1 Hz 0.1 to 6,553.5 Hz
1 to 65,535 (0001 to FFFF hex)
OK OK
1 Hz 1 to 32,800 Hz
1 to 32,800 (0001 to 8020 hex)
Not allowed. OK
P: Port specifier/numeric units
F: Frequency
D: Duty factor
PWM
P
F
D