Setting The Scheduled Interrupt To Units Of 0.1 Ms - Omron CJ - PROGRAMMING MANUAL 08-2008 Programming Manual

Programmable controllers
Hide thumbs Also See for CJ - PROGRAMMING MANUAL 08-2008:
Table of Contents

Advertisement

Using a Scheduled Interrupt as a High-precision Timer (CJ1-H-R and CJ1M Only)
1,2,3...
Cyclic task
6-5-1

Setting the Scheduled Interrupt to Units of 0.1 ms

PLC Setup
Item
Programming Console
Word
Scheduled inter-
+195
rupt unit time set-
ting
320
Example:
1. Input interrupt task starts when the built-in input bit turns ON.
2. Output bit A turns ON in the input interrupt task, and the MSKS(690) in-
struction is executed to perform a scheduled interrupt reset start.
3. After a fixed interval, the scheduled interrupt task starts, and output bit A
in the scheduled interrupt task turns OFF, and the MSKS(690) instruction
is executed to prohibit a scheduled interrupt.
Input
Input interrupt task
interrupt
SET
ON
MSKS
#0005
The scheduled interrupt time is set using the PLC Setup's scheduled interrupt
unit time setting and the MSKS(690) instruction.
With CJ1-H-R and CJ1M CPU Units, the scheduled interrupt time can be set
in units of 0.1 ms.
• CJ1H-R CPU Units: When the units are set to 0.1 ms, the scheduled
interrupt time can be set between 0.2 ms and 999.9 ms.
• CJ1M CPU Units: When the units are set to 0.1 ms, the scheduled inter-
rupt time can be set between 0.5 ms and 999.9 ms.
When using the CX-Programmer, make the settings on the Timings Tab Page.
The following table shows the corresponding settings when using a Program-
ming Console.
address
Bit
00 to 03
0 hex: 10-ms unit
1 hex: 1-ms unit
2 hex: 0.1-ms unit (CJ1-H-R
and CJ1M CPU Units only)
Output bit A
turns ON.
A
Scheduled interrupt
reset start.
Scheduled interrupt task
14
Fixed interval
Example:
After 0.5 ms)
Set value
Section 6-5
Output bit A
turns OFF.
RESET
Stop due to fixed
A
interrupt being
MSKS
prohibited.
4
#0000
Default
Refresh timing
0 hex
When operation starts.

Advertisement

Table of Contents
loading

Table of Contents