Outputting Pulses After A Preset Delay - Omron CJ-Series Operation Manual

Built-in i/o. cpu units
Hide thumbs Also See for CJ-Series:
Table of Contents

Advertisement

Built-in Outputs
6-1-2

Outputting Pulses after a Preset Delay

Specifications and Operation
Pulse output (2961.00)
Interrupt input (2960.03)
Instructions Used
Preparation and PLC Setup Settings
Interrupt Input (IN3:
2960.03) Settings in the
PLC Setup
Scheduled Interrupt Time
Unit Setting in the PLC
Setup
Ladder Program
138
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.
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 setting details
Use built-in inputs IN3 as an interrupt input.
Do not use high-speed counter 0.
Disable origin search function for pulse output 1.
PLC Setup setting details
Set the scheduled interrupt time units to 0.1 ms.
Cyclic Task (Task 0)
P_First_Cycle_Task
Task Start Flag
Scheduled interrupt
PULS SPED
time 500 µs
MSKS(690)
Section 6-1
Address
Data
060
1000 hex
050
0000 hex
274
0000 hex
Address
Data
195
0002 hex
Built-in interrupt input 3
9
Unmask (Enable
#0
interrupts.)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cj1m-cpu22Cj1m-cpu23

Table of Contents