2-5
Section
CPM2A/CPM2C Pulse Output Functions
113
The following table shows the words and bits related to pulse outputs with vari-
able duty ratio.
Word
Bit
Name
Contents
AR 11
15
Pulse output in progress
for pulse output 0
ON: In progress (by SPED(64),
ACC(––), or PWM(––))
OFF: Stopped
AR 12
15
Pulse output in progress
for pulse output 1
ON: In progress (by SPED(64),
ACC(––), or PWM(––))
OFF: Stopped
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.
Port specifier (000: Pulse output 0; 010: Pulse output 1)
Target frequency data word
Target frequency
Register the target frequency to be set.
#0001 to #9999 (4 digits BCD): 0.1 Hz to 999.9 Hz
Duty ratio data word
Duty ratio
Register the duty ratio to be set.
#0000 to #0100 (4 digits BCD): 0% to 100%
(@PWM(––)
P
F
D
F
D
The pulse frequency cannot be changed while pulses are being output.
Stop Pulse Outputs
This function stops pulse outputs.
Port specifier (000: Pulse output 0; 010: Pulse output 1)
Control designation (003: Stop pulse outputs)
Fixed: 000
(@)INI(61)
P
003
000
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
Port specifier (000: Pulse output 0; 010: Pulse output 1)
Control designation (001: Read pulse output status)
Beginning word for storing pulse output status
Pulse output in progress
0: Stopped
1: Output in progress
(@)PRV(62)
P
001
D