A-57
Appendices
CJ2 CPU Unit Software User’s Manual
A-1 Instruction Functions
App
A-1-20 High-speed Counter/Pulse Output Instructions
REGISTER
COMPARI-
SON TABLE
CTBL
@CTBL
882 CTBL(882) is used to perform target value or range comparisons
for the present value (PV) of a high-speed counter. (CTBL(882) is
supported only by the CJ2M.)
Output Required
SPEED OUT-
PUT
SPED
@SPED
885 SPED(885) is used to specify the frequency and perform pulse
output without acceleration or deceleration. (SPED(885) is sup-
ported only by the CJ2M.)
Output Required
SET
PULSES
PULS
@PULS
886 PULS(886) is used to set the number of pulses for pulse output.
(PULS(886) is supported only by the CJ2M.)
Output Required
PULSE OUT-
PUT
PLS2
@PLS2
887 PLS2(887) is used to set the pulse frequency and accelera-
tion/deceleration rates, and to perform pulse output with accelera-
tion/deceleration with different acceleration/deceleration rates.
(PLS2(887) is supported only by the CJ2M.)
Output Required
ACCELERA-
TION CON-
TROL
ACC
@ACC
888 ACC(888) is used to set the pulse frequency and accelera-
tion/deceleration rates, and to perform pulse output with accelera-
tion/deceleration (with the same acceleration/deceleration rate).
(ACC(888) is supported only by the CJ2M.)
Output Required
ORIGIN
SEARCH
ORG
@ORG
889 ORG(889) is used to perform origin searches and returns.
(ORG(889) is supported only by the CJ2M.)
Output Required
PULSE WITH
VARIABLE
DUTY FAC-
TOR
PWM
@PWM
891 PWM(891) is used to output pulses with a variable duty factor.
(PWM(891) is supported only by the CJ2M.)
Output Required
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
CTBL(882)
P
C
TB
P: Port Specifier
C: Control data
TB: 1st
comparison
table word
SPED(885)
P
M
F
P: Port Specifier
M: Output mode
F: 1st pulse
frequency word
PULS(886)
P
T
N
P: Port Specifier
T: Pulse type
N: Number of
pulses
M
S
F
P
P: Port specifier
M: Output mode
S: 1st word of
settings table
F: 1st word of
starting frequency
PLS2(887)
ACC(888)
P
M
S
P: Port specifier
M: Output mode
S: 1st word of
settings table
ORG(889)
P
C
P: Port specifier
C: Control data
PWM(891)
P
F
D
P: Port specifier
F: Frequency
D: Duty factor