EasyManua.ls Logo

Omron CP1H-X40D - Example Pulse Output Applications

Omron CP1H-X40D
810 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
291
Pulse Outputs Section 5-3
5-3-10 Example Pulse Output Applications
Outputting Pulses after a Preset Delay
This example program waits for a preset time (0.5 ms) after the interrupt input
(CIO 0.00) 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.
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
Built-in Input Settings
MSKS
PULS SPED
Pulse output 0
(CIO 100.00)
Interrupt input 0
(CIO 0.00)
I/O interrupt
response time
Scheduled interrupt
time 500 µs
PLC Setup setting details
Use built-in input 0.00 as the interrupt input.

Table of Contents

Related product manuals