Outputting Pulses After A Preset Delay; 7-2-10 Example Pulse Output Applications - Omron CP1L-EL20DR-D Operation Manual

Sysmac cp series cp1l-el/em cpu unit
Table of Contents

Advertisement

Pulse Outputs

7-2-10 Example Pulse Output Applications

Outputting Pulses after a Preset Delay

Pulse output 0
(CIO 100.00)
Interrupt input 0
(CIO 0.04)
Instructions Used
Preparation
This example program waits for a preset time (0.5 ms) after the interrupt input
(CIO 0.04) goes ON and then outputs 100,000 pulses at 100 kHz from pulse
output 0.
Input interrupt task 0 (interrupt task number 140) starts a scheduled interrupt
with a scheduled time of 0.5 ms. The scheduled interrupt task executes the
pulse output instructions and stops the scheduled interrupt.
I/O interrupt
MSKS
response time
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.
■ PLC Setup
Built-in Input Settings
PLC Setup setting details
Use built-in input 0.04 as the interrupt input.
Scheduled interrupt
PULS SPED
time 500 μs
Section 7-2
287

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents