Using A Scheduled Interrupt As A High-Precision Timer (Cj1-H-R And Cj1M Only) - 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)

Block Program Instructions
6-5
Using a Scheduled Interrupt as a High-precision Timer
(CJ1-H-R and CJ1M Only)
REVERSIBLE COUNTER
Instruction name
Mnemonic
S (counter set value)
Setting
RESET TIMER/COUNTER
Instruction name
Mnemonic
TIMER WAIT (100 ms)
Instruction name
Mnemonic
S (timer set value)
Setting time (unit: 0.1 s)
HIGH-SPEED TIMER WAIT (10 ms)
Instruction name
Mnemonic
S (timer set value)
Unit: 0.01 s
Setting time (unit: 0.01 s)
COUNTER WAIT
Instruction name
Mnemonic
S (counter set value)
Setting
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.
BCD mode
CNTR
#0000 to #9999 (BCD)
0 to 9,999 times
BCD mode
CNR
BCD mode
TIMW
#0000 or# 9999 (BCD)
0 to 999.9 s
BCD mode
TMHW
#0000 to #9999 (BCD)
0 to 999.9 s
BCD mode
CNTW
#0000 to #9999 (BCD)
0 to 9,999 times
Section 6-5
Binary mode
CNTRX
&0 to &65535 (decimal)
or #0000 to #FFFF (hexa-
decimal)
0 to 65,535 times
Binary mode
CNRX
Binary mode
TIMWX
&0 to &65535 (decimal)
or #0000 to #FFFF (hexa-
decimal)
0 to 6,553.5 s
Binary mode
TMHWX
&0 to &65535 (decimal)
or #0000 to #FFFF (hexa-
decimal)
0 to 655.35 s
Binary mode
CNTWX
&0 to &65535 (decimal)
or #0000 to #FFFF (hexa-
decimal)
0 to 65,535 times
319

Advertisement

Table of Contents
loading

Table of Contents