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

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Special Math Instructions
Operands
Operand Specifications
Description
Flags
Precautions
N: Number of words
The number of words must be 0001 to FFFF (1 to 65,535 words).
S: First source word
S and S+(N–1) must be in the same data area.
Area
CIO Area
Work Area
Holding Bit Area
Auxiliary Bit Area
Timer Area
Counter Area
DM Area
Indirect DM addresses
in binary
Indirect DM addresses
in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
BCNT(067) counts the total number of bits that are ON in all words between S
and S+(N–1) and places the result in R.
to
S+(N–1)
Name
Label
Error Flag
ER
Equals Flag
=
An error will occur if N=0000 or the result exceeds FFFF.
N
CIO 0 to CIO 6143
W0 to W511
H0 to H511
A0 to A959
T0000 to T4095
C0000 to C4095
D0 to D32767
@ D0 to @ D32767
*D0 to *D32767
#0001 to #FFFF
---
(binary) or &1 to
&65,535
DR0 to DR15
---
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
N words
Counts the number
of ON bits.
Binary result
R
Operation
ON if N is 0000.
ON if result exceeds FFFF.
OFF in all other cases.
ON if the result is 0000.
OFF in all other cases.
Section 3-13
S
R
A448 to A959
DR0 to DR15
471

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents