285
Using a Scheduled Interrupt as a High-precision Timer (CJ1M Only)
Section 6-5
6-5-2
Specifying a Reset Start with MSKS(690)
When CJ1M CPU Units are used and the MSKS(690) instruction is used to
start the scheduled interrupt, the internal timer can be reset before starting the
interrupt (this is called a reset start).
This method can be used to specify the time to the first interrupt without using
the CLI(691) instruction.
Scheduled interrupts are started by using the MSKS(690) instruction to set
the scheduled interrupt time (interval between two interrupts). After executing
the MSKS(690) instruction, however, the time required before the first sched-
uled interrupt task starts (first interrupt start time) is fixed only if the CLI(691)
instruction is specified. Therefore, CJ1M CPU Units provide an internal timer
reset start, allowing the time to the first interrupt to be set without using the
CLI(691) instruction.
MSKS(690) Instruction Operand (Only when Scheduled Interrupt Is Specified)
6-5-3
Reading the Internal Timer PV with MSKR(692)
CJ1M CPU Units allow reading the PV of the internal timer that measures the
scheduled interrupt time. The time is read from either the scheduled interrupt
start point or the previous scheduled interrupt point. The internal timer PV is
read by executing the MSKR(692) instruction. The unit of time depends on the
scheduled interrupt unit time setting in the PLC Setup, in the same way as for
the scheduled interrupt time.
MSKR(692) Operands (Only when Scheduled Interrupt Is Specified)
Operand
Set value
N (Interrupt identi-
fier)
4: Scheduled interrupt 0, normal setting (internal timer not
reset)
5: Scheduled interrupt 1, normal setting (internal timer not
reset)
14: Scheduled interrupt 0, specifies reset start (CJ1M CPU
Units onlyÅj
15: Scheduled interrupt 1, specifies reset start (CJ1M CPU
Units onlyÅj
Operand
Set value
N (Interrupt identifier) 4: Scheduled interrupt 0, reads scheduled interrupt time (set
value)
5: Scheduled interrupt 1, reads scheduled interrupt time (set
value)
14: Scheduled interrupt 0, reads internal timer PV (CJ1M
CPU Units onlyÅj
15: Scheduled interrupt 1, reads internal timer PV (CJ1M
CPU Units onlyÅj
Summary of Contents for CJ1G-CPU series
Page 3: ...iv...
Page 5: ...vi...
Page 21: ...xxii Conformance to EC Directives 6...
Page 169: ...148 Task Control Instructions Section 3 32...
Page 203: ...182 Programming Device Operations for Tasks Section 4 4...
Page 253: ...232 Using File Memory Section 5 3...
Page 337: ...316 Other Functions Section 6 11...
Page 347: ......
Page 369: ......
Page 373: ......
Page 379: ......
Page 381: ...360 Revision History...