![Omron CJ1G-CPUxx Instructions Manual Download Page 266](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491266.webp)
245
Timer and Counter Instructions
Section 3-6
2.
MOVR(560) moves the PLC memory address of the Completion Flag for
timer T0000 to IR1.
3.
MOVR(560) moves the PLC memory address of CIO 200000 into IR2.
4.
MOV(021) moves &100 into D00000 for indirect addressing of the timer
SVs.
5.
The content of IR0, IR1, IR2, and D00000 are incremented by 1 each time
as this loop is executed 100 times, starting timers T0000 through T0099.
The loop in the program above has 4 input parameters which are used to start
all 100 timers with this common subroutine.
IR0
The PLC memory address of the timer’s PV
IR1
The PLC memory address of the timer’s Completion Flag
IR2
The PLC memory address of the timer’s execution condition
D00000 The DM address of the word containing the timer’s SV
The subroutine above is equivalent to the 400 instructions below.
000000 LD
NOT 200000
000001 TIM
0000
D00100
000002 LD
T0000
000003 OUT
200000
000004 LD
NOT 200001
000005 TIM
0001
D00101
000006 LD
T0001
000007 OUT
200001
000008 LD
NOT 200002
000009 TIM
0002
D00102
000010 LD
T0002
000011 OUT
200002
000396 LD
NOT 200602
000397 TIM
0099
D00199
000398 LD
T0000
000399 OUT
200602
Instruction
Address
Operands
200000
T0000
200001
T0001
200602
T0099
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...