Appendices
Instruction
Mnemonic
PULSE WITH
PWM
VARIABLE
DUTY FACTOR
A-1-19
Step Instructions
Instruction
Mnemonic
STEP DEFINE
STEP
STEP START
SNXT
A-44
Variations
Symbol/Operand
@
PWM
P
F
D
P: Port specifier
F: Frequency
D: Duty factor
Variations
Symbol/Operand
---
When defining the beginning of a
step, a control bit is specified as
follows:
STEP(008)
B
B: Bit
When defining the end of a step, a
control bit is not specified as fol-
lows:
STEP(008)
---
SNXT(009)
B
B: Bit
Function
Outputs pulses with the specified duty factor from the specified
port.
Built-in output
PWM output
100%
Period is determined
by frequency
15%
Duty factor:15%
50%
Duty factor:50%
P: Port Specifier
PWM output 0 (duty factor: in increments of
1000 hex
1%, frequency 0.1 Hz)
PWM output 0 (duty factor: in increments of
1100 hex
1%, frequency 1 Hz)
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 percent-
age of time that the output is ON.
Function
STEP(008) functions in following 2 ways, depending on its position
and whether or not a control bit has been specified.
(1)Starts a specific step.
(2)Ends the step programming area (i.e., step execution).
SNXT(009) is used in the following three ways:
(1)To start step programming execution.
(2)To proceed to the next step control bit.
(3)To end step programming execution.
CP1E CPU Unit Software User's Manual(W480)
Need help?
Do you have a question about the CP1E CPU UNIT SOFTWARE and is the answer not in the manual?