Omron CP1E-E@@D@-@ Computer Hardware User Manual


 
2-323
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
High-speed Counter/Pulse
Output Instructions
2
PULS
PULS
Applicable Program Areas
Operands
P: Port specifier
T: Pulse type
N and N+1: Number of pulses
The actual number of movement pulses that will be output are as follows:
For relative pulse output, the number of movement pulses = the set number of pulses.
For absolute pulse output, the number of movement pulses = the set number of pulses - the PV.
Operand Specifications
Instruction Mnemonic Variations
Function
code
Function
SET PULSES PULS @PULS 886
PULS(886) is used to set the pulse output amount (number of out-
put pulses).
Symbol
PULS
Area Step program areas Subroutines Interrupt tasks
Usage OK OK OK
Operand Description Data type Size
P Port specifier --- 1
T Pulse type --- 1
N Number of pulses DINT 2
P Port
0000 hex Pulse output 0
0001 hex Pulse output 1
T Pulse type
0000 hex Relative
0001 hex Absolute
Area
Word addresses Indirect DM addresses
Constants CF Pulse bits TR bits
CIO WR HR AR T C DM @DM *DM
P, T --- --- --- --- --- --- --- --- ---
OK --- --- ---
N OKOKOKOKOKOKOK OK OK
N: Number of pulse
s
PULS(886)
P
T
N
P: Port specifier
T: Pulse type
N
N+1
0
15
Lower word with number of pulses
Upper word with number of pulses