2-319
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
High-speed Counter/Pulse
Output Instructions
2
SPED
SPED
Applicable Program Areas
Operands
P: Port specifier
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 Step program areas Subroutines Interrupt tasks
Usage OK OK OK
Operand Description Data type Size
P Port specifier UINT 1
M Output mode WORD 1
F First pulse frequency word UDINT 2
P Port
0000 hex Pulse output 0
0001 hex Pulse output 1
M: Output mode F: First pulse frequency word
Specify the pulse frequency in Hz.
Area
Word addresses Indirect DM addresses
Constants CF Pulse bits TR bits
CIO WR HR AR T C DM @DM *DM
P, M --- --- --- --- --- --- --- --- --- OK
--- --- ---
F OKOKOKOKOKOKOK OK OK ---
F: First pulse frequency word
SPED(855)
P
M
F
P: Port specifier
M: Output mode
03478111215
M
Mode
0 hex: Continuous
1 hex: Independent
Direction
0 hex: CW
1 hex: CCW
Pulse output method
1 hex: Pulse + direction
Alwa
y
s 0 hex.
F
F+1
0
15
Lower word of target frequency
Upper word of target frequency
0 to 100,000 Hz
(0000 0000 to 0001 86A0 hex)