beautypg.com

Sped, Applicable program areas operands, 2 instructions – Omron SYSMAC CP CP1E-N@@D@-@ User Manual

Page 355: P: port specifier operand specifications, M: output mode f: first pulse frequency word

background image

2-319

2 Instructions

CP1E CPU Unit Instructions Reference Manual(W483)

High-speed

Counter/Pulse

Ou

tp
ut I

n

stru

ctio

ns

2

SPE

D

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

OK

OK

OK

OK

OK

OK

OK

OK

OK

---

F: First pulse frequency word

SPED(855)

P

M

F

P: Port specifier

M: Output mode

0

3

4

7

8

11

12

15

M

Mode
0 hex: Continuous
1 hex: Independent

Direction
0 hex: CW
1 hex: CCW

Pulse output method
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 Hz
(0000 0000 to 0001 86A0 hex)

This manual is related to the following products: