27
Pulse Output Function (CQM1 Only) Section 1-3
Some instructions cannot be used depending on the mode setting in DM
6611.
The setting in DM 6611 is read only when the CQM1 is started. If this setting
is changed, be sure to turn the PC off and then on again to make the new set-
ting effective.
Specify standard pulse outputs in DM 6643 (port 1) and/or DM 6644 (port 2).
Variable-duty-ratio pulses cannot be output from a port if it has been set for
standard pulse output in DM 6643 or DM 6644.
Example 1:
Starting Pulse Output with
PULS(65) and SPED(64)
The following example shows PULS(65) and SPED(64) used to control a
pulse output from port 1. The number of pulses specified in PULS(65)
(10,000) are output as the frequency is changed by executions of SPED(64)
with different frequency settings.
Before executing the program make sure that DM 6611 is set to 0001 (pulse
output mode) and DM 6643 is set to 0000 (standard pulse setting for port 1).
DM 6611 setting Affected instructions
High-speed counter mode (0000) PLS2(––) and mode 0 of ACC(––) cannot be
used.
Pulse output mode (0001) CTBL(63) cannot be used with ports 1 and 2.
15 0
DM 6643
0
Bit
Port 1 pulse type setting
0: Standard pulse output
Default: Standard pulse output
15 0
DM 6644
0
Bit
Port 2 pulse type setting
0: Standard pulse output
Default: Standard pulse output
@PULS(65)
000
001
05000
DM 0000
@SPED(64)
000
001
#0100
00000
@SPED(64)
000
001
#0150
00001
@SPED(64)
000
001
#0100
00002
@SPED(64)
000
001
#0050
When 05000 goes ON, PULS(65) sets port 1 for 10,000 CW
pulses.
Starts pulse output from port 1 at 1 kHz in independent
mode.
When 00000 goes ON, the frequency from port 1 is
changed to 1.5 kHz.
When 00001 goes ON, the frequency from port 1 is
changed to 1 kHz.
When 00002 goes ON, the frequency from port 1 is
changed to 500 Hz.