Omron CJ - REFERENCE MANUAL 10-2009 Reference Manual page 773

Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents