Omron SYSMAC CP Series Instruction & Reference Manual page 346

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

2 Instructions
Changing a PV (C = 0002 hex)
Port and mode
Pulse output (P = 0000 or 0001 hex)
Linear Mode
High-speed
counter input (P =
0010 to 0015 hex)
Ring Mode
Stopping Pulse Output (P = 0000, 0001 or 1000 hex and C = 0003 hex)
If C is 0003 hex, INI(880) immediately stops pulse output for the specified port. If this instruction is exe-
cuted when pulse output is already stopped, then the pulse amount setting will be cleared.
Sample program
When CIO 0.00 turns ON in the following example, SPED(885) starts outputting pulses from pulse out-
put 0 in Continuous Mode at 500 Hz. When CIO 0.01 turns ON, pulse output is stopped by INI(880).
0.00
0.01
2-310
The present value of the pulse output is
changed. The new value is specified in NV and
NV+1.
Note This instruction can be executed only
when pulse output is stopped. An error
will occur if it is executed during pulse
output.
Differential inputs,
increment/decre-
The present value of the high-speed counter is
ment pulses, or pulse
changed. The new value is specified in NV and
+ direction inputs
NV+1.
Note An error will occur for the instruction if the
Increment pulse input
specified port is not set for a high-speed
counter.
@SPED
#0000
Pulse output 0
#0100
Pulse + Direction output, CW, Continuous Mode
D100
@INI
#0000
Pulse output 0
#0003
Stop pulse output
0
(Not used.)
Operation
8000 0000 to 7FFF FFFF hex
(-2,147,483,648 to 2,147,483,647)
8000 0000 to 7FFF FFFF hex
(-2,147,483,648 to 2,147,483,647)
0000 0000 to FFFF FFFF hex
(0 to 4,294,967,295)
0000 0000 to FFFF FFFF hex
(0 to 4,294,967,295)
i
01F4
D100
0
D101
CP1E CPU Unit Instructions Reference Manual(W483)
Setting range
Target frequency: 500 Hz

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents