Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 759

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

3. 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 or 0011 hex)
Ring Mode
Interrupt inputs in counter mode (P = 0100, 0101, 0102, or
0103 hex)
Stopping Pulse Output (P = 1000 or 1001 hex and C = 0003 hex)
If C is 0003 hex, INI(880) immediately stops pulse output for the specified port. If this instruction is
executed 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
output 0 in Continuous Mode at 500 Hz. When CIO 0.01 turns ON, pulse output is stopped by INI(880).
0.00
0.01
722
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
Increment pulse input
the specified port is not set for a high-speed
counter.
The present value of the interrupt input is
changed. The new value is specified in NV and
NV+1.
@SPED
#0000
Pulse output 0
#0000
CW/CCW method, CW, Continuous Mode
D100
@INI
Pulse output 0
#0000
#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)
0000 0000 to 0000 FFFF hex
(0 to 65,535)
Note: An error will occur if a value outside this
range is specified.
i
01F4
D100
0
D101
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Setting range
Target frequency: 500 Hz

Advertisement

Table of Contents
loading

Table of Contents