![background image](http://html1.mh-extra.com/html/omron/cj1m-cpu21/cj1m-cpu21_operation-manual_742493222.webp)
193
Built-in Outputs
Section 7-1
7-1-2
Outputting Pulses after a Preset Delay
Specifications and Operation
This example program waits for a preset time (0.5 ms) after the interrupt input
(2960.03) goes ON and then outputs 100,000 pulses at 100 kHz from pulse
output 0.
The I/O interrupt task starts a scheduled interrupt with a scheduled time of
0.5 ms. The scheduled interrupt task executes the pulse output instruction
and stops the scheduled interrupt.
Instructions Used
MSKS(690)
Enables the I/O interrupt. Starts the scheduled interrupt.
PULS(886)
Sets the number of output pulses.
SPED(885)
Starts the pulse output.
Preparation
PLC Setup Settings
Built-in Input (IN3: 2960.03) Settings
MSKS
PULS SPED
Pulse output 0 (2961.00)
Interrupt input 3 (2960.03)
I/O interrupt
response time
Scheduled interrupt
time 500
µ
s
PLC Setup setting details
Address
Data
Use built-in inputs IN3 as an interrupt input.
060
1000 hex
Do not use high-speed counter 0.
050
0000 hex
Disable origin search function for pulse output 1.
274
0000 hex
Summary of Contents for CJ1M-CPU21
Page 1: ...Cat No W395 E1 03 CJ series Built in I O CJ1M CPU21 22 23 CJ1M CPU Units...
Page 2: ...CJ series Built in I O CJ1M CPU21 22 23 CPU Units Operation Manual Revised August 2004...
Page 3: ...iv...
Page 19: ...xx...
Page 79: ...50 Wiring Examples Section 3 3...
Page 217: ...188 Origin Search and Origin Return Functions Section 6 3...
Page 220: ...191 Built in Outputs Section 7 1...
Page 247: ...218 Built in Outputs Section 7 1...
Page 251: ...222 Combinations of Pulse Control Instructions Appendix A...
Page 255: ...226 Using Pulse Instructions in other CPU Units Appendix B...
Page 263: ...234 Index...
Page 265: ...236 Revision History...