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

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Block Programming Instructions
Flags
Precautions
Examples
1000
"A"
executed.
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. An error will also occur and the
Error Flag will turn ON if an indirect IR designation is used for N in binary
mode and the address is not for a timer present value.
When CIO 0.00 is ON in the following example, "A" will be executed and then
execution of the rest of the block program "B" will wait until 7,000 counts of
CIO 1.00.
SV preset.
Count reached.
"B" executed.
"C"
"C"
"C"
executed.
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-30

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents