![background image](http://html1.mh-extra.com/html/omron/srm1-programing-02-2001/srm1-programing-02-2001_programming-manual_742414506.webp)
7-27
Section
Pulse Output Instructions
488
Description
PULS(65) is used to set the number of pulses for pulse outputs that are started
later in the program using SPED(64) or ACC(––). The number of pulses set with
PULS(65) are output in independent mode.
The number of pulses cannot be changed while pulses are being output. In gen-
eral, PULS(65) should be executed just once each time that the number of
pulses needs to be set; use the differentiated variation (@PULS(65)) or an input
condition that is ON for just one cycle.
Note
Refer to
2-5 Pulse Output Functions
for more details.
Port Specifier (P)
The port specifier indicates the pulse output location. The parameters set by the
in C and N will apply to the next SPED(64) or ACC(––) instruction in which the
same port output location is specified.
P
Pulse output location(s)
000 Single-phase pulse output 0 without acceleration or deceleration (output
01000) or single-phase pulse output 0 with trapezoidal acceleration and decel-
eration (outputs 01000 and 01001)
010 Single-phase pulse output 1 without acceleration or deceleration (output
01001)
This setting is supported by CPM2A/CPM2C PCs only.
Control Data (C)
The control data determines the type of pulses (relative or absolute).
C
Pulse type
000 Relative pulse specification
001 Absolute pulse specification (Valid only when the absolute coordinate system
is being used.)
This setting is supported by CPM2A/CPM2C PCs only.
Number of Output Pulses (N+1 and N)
N+1 and N contain the 8-digit BCD number of output pulses setting for indepen-
dent mode pulse outputs. The number of output pulses can be –16,777,215 to
16,777,215. Bit 15 of N+1 acts as a sign bit; the number is negative if bit 15 is ON,
positive if it is OFF.
Positive: 0 to +16,777,215 (0000 0000 to 1677 7215)
Negative: –16,777,215 to 0 (9677 7215 to 8000 0000)
N+1 contains the leftmost 4 digits and N contains the rightmost 4 digits.
The number of movement pulses depends upon the number of output pulses
(N+1 and N) and the pulse type (C).
Coordinate
system
Movement pulses
Relative
Number of movement pulses = Number of output pulses
Absolute
Pulse type: Relative (C=000)
Number of movement pulses = Number of output pulses
Pulse type: Absolute (C=001, CPM2A/CPM2C only)
Number of movement pulses = Number of output pulses – PV
After PULS(65) has been executed, the calculated number of movement pulses
will not be changed even if INI(61) is executed to change the pulse output PV.
A specification that causes movement outside of the allowed PV range
(–16,777,215 to 16,777,215) can be specified without problems.
PULS(65) will not be executed and an error will occur (SR 25503 ON) if the cal-
culated number of movement pulses is 0.
When the pulse output is operating in independent mode without acceleration or
deceleration and the number of movement pulses is negative, the absolute val-
Number of Movement
Pulses