EasyManua.ls Logo

Omron CJ - PROGRAMMING MANUAL 12-2009 - Using a Scheduled Interrupt as a High-Precision Timer (CJ1-H-R and CJ1 M Only)

Omron CJ - PROGRAMMING MANUAL 12-2009
448 pages
Print Icon
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...
321
Using a Scheduled Interrupt as a High-precision Timer (CJ1-H-R and CJ1M Only) Section 6-5
REVERSIBLE COUNTER
RESET TIMER/COUNTER
Block Program Instructions
TIMER WAIT (100 ms)
HIGH-SPEED TIMER WAIT (10 ms)
COUNTER WAIT
6-5 Using a Scheduled Interrupt as a High-precision Timer
(CJ1-H-R and CJ1M Only)
When using a CJ1-H-R or CJ1M CPU Unit, the following functions allow a
scheduled interrupt to be used as a high-precision timer.
The scheduled interrupt timer can be input in units of 0.1 ms (high-preci-
sion interval timer).
Resetting (i.e., restart) is possible using the MSKS(690) instruction (fixed
time to first interrupt).
Internal timer PVs can be read using the MSKR(692) instruction (interval
timer PV reading)
These functions allow applications such as that shown in the following exam-
ple of a high-precision one-shot timer, where the input bit turning ON acts as a
trigger, causing the output bit to turn ON, and then turn OFF again after a
fixed interval.
Instruction name BCD mode Binary mode
Mnemonic CNTR CNTRX
S (counter set value) #0000 to #9999 (BCD) &0 to &65535 (decimal)
or #0000 to #FFFF (hexa-
decimal)
Setting 0 to 9,999 times 0 to 65,535 times
Instruction name BCD mode Binary mode
Mnemonic CNR CNRX
Instruction name BCD mode Binary mode
Mnemonic TIMW TIMWX
S (timer set value) #0000 or# 9999 (BCD) &0 to &65535 (decimal)
or #0000 to #FFFF (hexa-
decimal)
Setting time (unit: 0.1 s) 0 to 999.9 s 0 to 6,553.5 s
Instruction name BCD mode Binary mode
Mnemonic TMHW TMHWX
S (timer set value)
Unit: 0.01 s
#0000 to #9999 (BCD) &0 to &65535 (decimal)
or #0000 to #FFFF (hexa-
decimal)
Setting time (unit: 0.01 s) 0 to 999.9 s 0 to 655.35 s
Instruction name BCD mode Binary mode
Mnemonic CNTW CNTWX
S (counter set value) #0000 to #9999 (BCD) &0 to &65535 (decimal)
or #0000 to #FFFF (hexa-
decimal)
Setting 0 to 9,999 times 0 to 65,535 times

Table of Contents

Related product manuals