Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 777

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

3. Instructions
Operand Specifications
Word addresses
Area
CIO
WR
HR
P, T
---
---
---
N
OK
OK
OK
Flags
Name
Label
Error Flag
ER
Function
PULS(886) sets the pulse type and number of pulses specified in T and N for the port specified in P.
Actual output of the pulses is started later in the program using SPED(885) or ACC(888) in independent
mode.
Note
• An error will occur if PULS(886) is executed when pulses are already being output. Use the differentiated
version (@PULS(886)) of the instruction or an execution condition that is turned ON only for one scan to
prevent this.
• The calculated number of pulses output for PULS(886) will not change even if INI(880) is used to change
the PV of the pulse output.
• The direction set for SPED(885) or ACC(888) will be ignored if the number of pulses is set with
PULS(881) as an absolute value.
• It is possible to move outside of the range of the PV of the pulse output amount (-2,147,483,648 to
2,147,483,647).
Sample program
When CIO 0.00 turns ON in the following programming example, PULS(886) sets the number of output
pulses for pulse output 0. An absolute value of 5,000 pulses is set. SPED(885) is executed next to start
pulse output using the CW/CCW method in the clockwise direction in independent mode at a target
frequency of 500 Hz.
0.00
740
@DM
AR
T
C
DM
EM
---
---
---
---
---
OK
OK
OK
OK
• ON if the specified range for P, T, or N is exceeded.
• ON if PULS(886) is executed for a port that is already outputting pulses.
• ON if PULS(886) is executed in an interrupt task when an instruction controlling pulse output is being executed in a
cyclic task.
• OFF in all other cases.
@PULS
Pulse output: 0
#0000
Pulse type: Relative
#0000
D100
@SPED
Pulse output: 0
#0000
Direction:
#0001
CW in independent mode
D110
Indirect DM/EM
addresses
Con-
stants
*DM
DR
@EM
*EM
---
---
OK
---
OK
OK
Operation
D100
1388
D101
0000
D110
01F4
D111
0000
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
---
---
---
OK
Number of output pulses: 5,000
Target frequency: 500 Hz
TR
bits
---
---

Advertisement

Table of Contents
loading

Table of Contents