112
Pulse I/O Board
Section 2-2
Example 1: Starting
Pulse Output with
PULS(65) and SPED (64)
Starting Pulse Output at Specified Frequency
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.
The following diagram shows the frequency of pulse outputs from port 1 as
the program is executed.
!Caution
Be sure that the pulse frequency is within the motor’s self-starting frequency
range when starting and stopping the motor.
Note
Speed control timing will be accurate when frequency changes are performed
as input interrupt processes.
@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 IR 05000 turns ON, PULS(65) sets port 1 for 10,000
CW pulses.
Starts pulse output from port 1 at 1,000 Hz in Independent
Mode.
When IR 00000 turns ON, the pulse frequency from port 1
is changed to 1,500 Hz.
When IR 00001 turns ON, the pulse frequency from port 1
is changed to 1,000 Hz.
When IR 00002 turns ON, the pulse frequency from port 1
is changed to 500 Hz.
DM 0000: 0000
DM 0001: 0001
•
•
•
•
•
Frequency
Time
1.5 kHz
1.0 kHz
0.5 kHz
IR 05000
turns ON
IR 00000
turns ON
IR 00001
turns ON
IR 00002
turns ON
10,000
pulses