751
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
High-speed Counter/Pulse Output Instructions
3
SPED
SPED
Applicable Program Areas
Operands
P: Port specifier
z Operand Specifications
Instruction Mnemonic Variations
Function
code
Function
SPEED OUTPUT SPED @SPED 885
SPED(885) is used to set the output pulse frequency for a specific
port and start pulse output without acceleration or deceleration.
Symbol
SPED
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or transition
programs
Usage OK OK OK OK OK OK
Operand Description Data type Size
P Port specifier --- 1
M Output mode --- 1
F First pulse frequency word UDINT 2
P Port
0000 hex Pulse output 0
0001 hex Pulse output 1
0002 hex Pulse output 2 (CJ2M only)
0003 hex Pulse output 3 (CJ2M only)
M: Output mode
Note Use the same pulse output method when
using pulse outputs 0 and 1 at the same time
and when using 2 and 3 at the same time.
F: First pulse frequency word
The value of F and F+1 sets the pulse
frequency in pps.
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
P, M --- --- --- --- --- --- --- --- --- ---
OK --- ---
---
--- --- --- ---
F OKOKOKOKOKOKOKOK OK OK OK
F: First pulse frequency word
SPED(855)
P
M
F
P: Port specifier
M: Output mode
03478
111215
M
Mode
0 hex: Continuous
1 hex: Independent
Direction
0 hex: CW
1 hex: CCW
Pulse output method (See note.)
0 hex: CW/CCW
1 hex: Pulse + direction
Always 0 hex.
F
F+1
0
15
Lower word of target frequency
Upper word of target frequency
0 to 100,000 pps
(0000 0000 to 0001 86A0 hex)