Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 791

Table of Contents

Advertisement

Operand Specifications
Word addresses
Area
CIO
WR
HR
P, M
---
---
---
S
OK
OK
OK
Flags
Name
Label
Error Flag
ER
Function
ACC(888) starts pulse output on the port specified in P using the mode specified in M using the target
frequency and acceleration/deceleration rate specified in S. The frequency is increased every pulse
control period (4 ms) at the acceleration rate specified in S until the target frequency specified in S is
reached.
Pulse output is started each time ACC(888) is executed. It is thus normally sufficient to use the
differentiated version (@ACC(888)) of the instruction or an execution condition that is turned ON only
for one scan.
Pulse frequency
Target frequency
ACC(888) executed.
In independent mode, pulse output stops automatically when the specified number of pulses has been
output. In continuous mode, pulse output continues until it is stopped from the program.
An error will occur if an attempt is made to switch between independent and continuous mode during
pulse output.
With the CJ1M CPU Units, PLS2(887) can be executed during pulse output for ACC(888) in either
independent or continuous mode, and during acceleration, constant speed, or deceleration. (See note.)
ACC(888) can also be executed during pulse output for PLS2(887) during acceleration, constant speed,
or deceleration.
If ACC(888) is executed in independent or continuous mode with a target frequency of 0 Hz and then
ACC(888) or PLS2(887) is executed before pulse output stops, the target frequency will not change and
pulse output will stop. Execute ACC(888) or PLS2(887) after pulse output stops.
Note Executing PLS2(887) during speed control with ACC(888) (continuous mode) with the same target fre-
quency as ACC(888) can be used to achieved interrupt feeding of a fixed distance. Acceleration will not be
performed by PLS2(887) for this application, but if the acceleration rate is set to 0, the Error Flag will turn ON
and PLS2(887) will not be executed. Always set the acceleration rate to a value other than 0.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
AR
T
C
DM
EM
---
---
---
---
---
OK
OK
OK
OK
• ON if the specified range for P, M, or S is exceeded.
• ON if pulses are being output using ORG(889) for the specified port.
• ON if ACC(888) is executed to switch between independent and continuous mode for a port that is outputting
pulses for SPED(885), ACC(888), or PLS2(887).
• ON if ACC(888) is executed in an interrupt task when an instruction controlling pulse output is being executed in a
cyclic task.
• ON if ACC(888) is executed for an absolute pulse output in independent mode but the origin has not been estab-
lished.
• OFF in all other cases.
ACC(888) executed.
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
---
---
OK
---
OK
OK
---
Operation
Acceleration/deceleration rate
Time
3. Instructions
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
---
---
---
OK
TR
bits
---
---
3
755

Advertisement

Table of Contents
loading

Table of Contents