CPM2A/CPM2C Pulse Output Functions
The following table shows the words and bits related to pulse outputs with vari-
able duty ratio.
Word
Bit
AR 11
15
Pulse output in progress
for pulse output 0
AR 12
15
Pulse output in progress
for pulse output 1
Pulse Output With Variable Duty Ratio
Change Duty Ratio
These functions set the position for outputting pulses (01000, 01001), the fre-
quency, and the duty ratio, and start the pulse outputs. By changing the duty ratio
setting and executing PWM(––) again, it is also possible to change the duty ratio
while pulse outputs with variable duty ratio are already in progress.
(@PWM(––)
The pulse frequency cannot be changed while pulses are being output.
Stop Pulse Outputs
This function stops pulse outputs.
(@)INI(61)
Note The pulse outputs can also be stopped by switching the PC to PROGRAM
mode.
Read Pulse Output Status
This function reads the pulse output status.
Using an Instruction
(@)PRV(62)
Name
ON: In progress (by SPED(64),
ACC(––), or PWM(––))
OFF: Stopped
ON: In progress (by SPED(64),
ACC(––), or PWM(––))
OFF: Stopped
P
Port specifier (000: Pulse output 0; 010: Pulse output 1)
Target frequency data word
F
Duty ratio data word
D
F
Target frequency
Register the target frequency to be set.
#0001 to #9999 (4 digits BCD): 0.1 Hz to 999.9 Hz
D
Duty ratio
Register the duty ratio to be set.
#0000 to #0100 (4 digits BCD): 0% to 100%
Port specifier (000: Pulse output 0; 010: Pulse output 1)
P
003
Control designation (003: Stop pulse outputs)
Fixed: 000
000
P
Port specifier (000: Pulse output 0; 010: Pulse output 1)
Control designation (001: Read pulse output status)
001
Beginning word for storing pulse output status
D
Section
2-5
Contents
Pulse output in progress
0: Stopped
1: Output in progress
113
Need help?
Do you have a question about the CPM1 - PROGRAMING MANUAL 02-2001 and is the answer not in the manual?