Omron SYSMAC CS Series Instruction & Reference Manual page 708

Hide thumbs Also See for SYSMAC CS Series:
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
P_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.
Example Programming
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 pps.
0.00
674
@DM
AR
T
C
DM
EM
---
---
---
---
---
OK
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.
• For a CJ2M CPU Unit, ON for any function that uses I/O on the Pulse I/O Module even if a Pulse I/O Module is not
mounted.
• 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
Pulse frequency
Target frequency:
500 pps
5,000 pulses
PULS(881) and the
SPED(885) executed.
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 pulses
Target frequency: 500 pps
Time
TR
bits
---
---

Advertisement

Table of Contents
loading

Table of Contents