Example Pulse Output Applications - Omron CP1H-X40D Operation Manual

Cpu unit sysmac cp series
Hide thumbs Also See for CP1H-X40D:
Table of Contents

Advertisement

Pulse Outputs

5-3-10 Example Pulse Output Applications

Outputting Pulses after a Preset Delay
Pulse output 0
(CIO 100.00)
Interrupt input 0
(CIO 0.00)
Instructions Used
Preparation
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.
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.00 as the interrupt input.
Scheduled interrupt
PULS SPED
time 500 µs
Section 5-3
291

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cp1h-xa40dCp1h-y20dt-dCp1h

Table of Contents