Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 1029

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Block Programming Instructions
Description
Flags
Precautions
996
Area
Index Registers
Indirect addressing
using Index Registers
TIMW(813)/TIMWX(816) creates an ON-delay countdown timer (100-ms timer
set in SV) between execution of the block program instruction preceding it and
the instructions following. TIMW(813) can time from 0 to 999.9 s with a timer
accuracy of 0 to 0.01 s. TIMWX(816) can time from 0 to 6,553.5 s with a timer
accuracy of 0 to 0.01 s.
The first part of the block program is executed the first time the block program
is entered. When TIMW(813)/TIMWX(816) is reached, the Completion Flag is
reset to OFF, the timer is preset to the SV, and execution of the rest of the
block program will wait until SV has expired.
While the timer is timing down, only TIMW(813)/TIMWX(816) will be executed
to update the timer. When the timer times out, the Completion Flag will turn
ON and the rest of the block program will be executed. Once the entire block
program has been executed, the process will be repeated.
TIMW(813)/TIMWX(816) can be thought of as a WAIT instruction with a timer
for the execution condition and it can thus be used for timed step progres-
sions.
executed
and SV
preset.
Name
Label
Error Flag
ER
The rest of the block program following timer will be executed if the Comple-
tion Flag for the timer is force set.
If the Completion Flag for the timer is force reset, only TIMW(813/
TIMWX(816)) will be executed in the block program until the force reset status
is cleared.
N
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
"A"
Time elapsed.
"B" executed.
"C" executed.
Operation
ON if TIMW(813)/TIMWX(816) is not in a block program.
ON if an indirect IR designation is used for N in BCD
mode and the address is not for a timer present value.
ON if in BCD mode and SV is not BCD.
OFF in all other cases.
Section 3-30
SV
---

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents