EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 241

Omron CP - PROGRAMMING MANUAL 05-2007
1175 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...
208
Timer and Counter Instructions Section 3-5
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 2000.00 into IR2.
4. MOV(021) moves &100 into D0 for indirect addressing of the timer SVs.
5. The content of IR0, IR1, IR2, and D0 are incremented by 1 each time as
this loop is executed 100 times, starting timers T0 through T99.
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 timers PV
IR1 The PLC memory address of the timers Completion Flag
IR2 The PLC memory address of the timers execution condition
D0 The DM address of the word containing the timer’s SV
The subroutine above is equivalent to the 400 instructions below.
2000.00
T0000
2000.01
T0001
2006.02
T0099
D100
2000.00
D101
2000.01
D199
2006.02

Table of Contents

Related product manuals