Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 1251

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Block Programming Instructions
Flags
Precautions
The first part of the block program is executed the first time the block program
is entered. When CNTW(814)/CNTWX(818) is reached, the Completion Flag
is reset to 0, the counter is preset to SV, and execution of the rest of the block
program will wait until the counter has counted out. The counter counts pulses
(upward differentiation) on I, the counter input.
While the counter is counting down, only CNTW(814)/CNTWX(818) will be
executed to update the counter. When the counter counts 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.
CNTW(814)/CNTWX(818) can be thought of as a WAIT instruction with a
counter for the execution condition and it can thus be used for timed step pro-
gressions.
Name
Label
Error Flag
ER
The rest of the block program following CNTW(814)/CNTWX(818) will be exe-
cuted if the Completion Flag for the counter is force set.
If the Completion Flag for the counter is force reset, the only CNTW(814)/
CNTWX(818) will be executed in the block program until the force reset status
is cleared.
The counter numbers are also used by the other counter instructions. Opera-
tion will not be predictable if the same counter number is used for more than
one counter instruction. Use each counter number only once. The only way
that the same counter number can be used dependably is if only one of the
counters is ever operating at the same time. An error will occur in the program
check if the same counter number is used in more than one counter instruc-
tion.
An error will occur and the Error Flag will turn ON if an indirect IR designation
is used for N in BCD mode and the address is not for a counter present value
or if SV is not BCD when BCD mode is set.
"A"
executed.
SV preset.
Count reached.
"C"
"C"
executed.
executed.
Operation
ON if CNTW(814)/CNTWX(818) 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 counter present value.
ON if SV is not BCD when BCD mode is set.
OFF in all other cases.
Section 3-32
"B" executed.
"C"
executed.
1211

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents