99
CS/CJ/NSJ Series Instructions Reference Manual (W474)
2. Summary of Instructions
2-2 Instruction Functions
2
2-2-20 High-speed Counter and Pulse Output
Instructions (CJ2M-CPU@@ and CJ1M-
PULSE OUTPUT
PLS2
@PLS2
887
P: Port specifier
M: Output mode
S: 1st word of set-
tings table
F: 1st word of
starting frequency
PLS2(887) is used to set the pulse frequency and acceleration/deceler-
ation rates, and to perform pulse output with acceleration/deceleration
(with different acceleration/deceleration rates). Only positioning is pos-
sible.
Output
Required
757
ACCELERATION
CONTROL
ACC
@ACC
888
P: Port specifier
M: Output mode
S: 1st word of set-
tings table
ACC(888) is used to set the pulse frequency and acceleration/deceler-
ation rates, and to perform pulse output with acceleration/deceleration
(with the same acceleration/deceleration rate). Both positioning and
speed control are possible.
Output
Required
766
ORIGIN SEARCH
ORG
@ORG
889
P: Port specifier
C: Control data
ORG(889) is used to perform origin searches and returns. Output
Required
774
PULSE WITH
VARIABLE DUTY
FACTOR
PWM
@
891
P: Port specifier
F: Frequency
D: Duty factor
PWM(891) is used to output pulses with a variable duty factor. Output
Required
777
INTERRUPT
FEEDING
IFEED
@IFEED
892
(CJ2M only)
P: Port specifier
C: Control Data
S: First word of
settings table
IFEED(892) uses an input interrupt as a trigger to switch from speed
control to position control and move the specified number of pulses.
It is not necessary to create an interrupt task. (IFEED(892) is sup-
ported only by the CJ2M.)
Output
Required
780
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution
condition
Page
PLS2
P
M
S
F
ACC
P
M
S
ORG
P
C
PWM
P
F
D
IFEED
P
C
S