beautypg.com

Applicable program areas operands, 2 instructions, P: port specifier f: frequency – Omron SYSMAC CP CP1E-N@@D@-@ User Manual

Page 375: D: duty factor

background image

2-339

2 Instructions

CP1E CPU Unit Instructions Reference Manual(W483)

High-speed

Counter/Pulse

Ou

tp
ut I

n

stru

ctio

ns

2

PWM

PWM

Applicable Program Areas

Operands

P: Port Specifier

F: Frequency

F specifies the frequency of the PWM output between 2.0 and 6,553.5 Hz (0.1 Hz units, 0014 to FFFF
hex), or between 2 and 32,000 Hz (2 Hz units, 0002 to 7D00 hex).

D: Duty Factor

0.0% to 100.0% (0.1% units, 0000 to 03E8 hex)

D specifies the duty factor of the PWM output, i.e., the percentage of time that the output is ON.

Instruction

Mnemonic

Variations

Function

code

Function

PULSE WITH VARIABLE
DUTY FACTOR

PWM

@PWM

891

PWM(891) is used to output pulses with the speci-
fied duty factor from the specified port.

Symbol

PWM

Area

Step program areas

Subroutines

Interrupt tasks

Usage

OK

OK

OK

Operand

Description

Data type

Size

P

Port specifier

---

1

F

Frequency

---

1

D

Duty factor

---

1

P

Port

1000 hex

PWM output 0 (duty factor: in increments of 1%, frequency 0.1 Hz)

1100 hex

PWM output 0 (duty factor: in increments of 1%, frequency 1 Hz)

P: Port specifier

F: Frequency

D: Duty factor

PWM

P

F

D

This manual is related to the following products: