394
Special Instructions
Section 5-28
The direction setting is valid until program execution is stopped or PULS(65)
is executed again.
Number of Pulses (C=000 or C=001)
When C=000 or 001, N+1, N contains the 8-digit number of pulses setting for
independent mode pulse outputs. N+1, N can be from 0000 0001 to
1677 7215. The pulse output started by SPED(64) or ACC(––) will stop auto-
matically when this number of pulses has been output.
Number of Pulses and Deceleration Point (C=002 or C=003)
When C=002 or 003, N+1, N contains the 8-digit number of pulses setting for
independent mode pulse outputs. N+1, N can be from 0000 0001 to
1677 7215. The pulse output started by ACC(––) will stop automatically when
this number of pulses has been output.
N+3, N+2 contains the 8-digit number of pulses setting for the deceleration
point used in ACC(––) mode 0. N+3, N+2 can be from 0000 0001 to
1677 7215. The pulse output started by ACC(––) will begin deceleration when
this number of pulses have been output.
Change Output Destination (C=004 or C=005)
When C=004 or 005, neither the number of pulses nor the deceleration point
are set. Set N=000 when C=004 or 005. Use these settings to change the out-
put destination for continuous mode pulse outputs from port 1 or port 2.
Frequency Changes
The number of pulses set to be output will be used even if SPED(64) is used
to change the pulse frequency during operation. (The number of pulses can-
not be changed during operation.)
For example, if the number of pulses setting is 2,100 and the frequency is
changed from 1 KHz to 100 Hz, pulse output will stop in:
12 s if the pulse frequency is changed after 1 s at 1 KHz.
3 s if the pulse frequency is changed after 2 s at 1 KHz.
Flags
ER:
Indirectly addressed EM/DM word is non-existent.
(Content of
*
EM/
*
DM word is not BCD, or the EM/DM area boundary
has been exceeded.)
A data area boundary is exceeded.
There is an error in the instruction settings.
PULS(65) is executed in an interrupt subroutine while a pulse I/O or
high-speed counter instruction is being executed in the main program.
Leftmost 4 digits Rightmost 4 digits
N+1
N
Number of pulses:
Possible range
0000 0001 to 1677 7215
Leftmost 4 digits Rightmost 4 digits
N+1
N
Number of pulses:
Possible range
0000 0001 to 1677 7215
Leftmost 4 digits Rightmost 4 digits
N+3
N+2
Deceleration point:
Possible range
0000 0001 to 1677 7215