10.9 EVENTC (Instruction to Count the Number of Events)
■
Ladder diagram
■
Available operation units (●: Available)
Operatio
n unit
bit US SS UL SL SF DF
i ●
■
List of operands
Operand Description
S1 Starting address of the counting starting position
S2 Starting address of the working area for counting
n Number of bits to be counted
D Starting device address to store the count result
■
Available devices (●: Available)
Operan
d
16-Bit device:
32-Bit
device:
Integer
Real
numbe
r
St
rin
g
Index
modifie
r
(Note 1)
W
X
W
Y
W
R
W
L
W
S
S
D
D
T
L
D
U
M
WI
W
O
TS
C
S
TE
C
E
IX K U H SF
D
F
" "
S1 ● ● ● ● ● ● ● ● ● ● ● ●
S2 ● ● ● ● ● ● ●
n ● ● ● ● ● ● ● ● ● ● ● ●
D ● ● ● ● ● ● ● ● ●
(Note 1) Only 16-bit devices, 32-bit devices, and integer constants can be modified. (Real number constants,
and character constants cannot be specified.)
■
Outline of operation
● This instruction counts the number of ONs for [n] bits from the device specified by [S1].
● During the counting operation, a data area that is equal to n/16 words from the device
specified in [S2] is used.
● The count result is stored in the area of [n]*2 words starting with [D].
● The working area with the starting address specified by [S2] needs the following number of
words:
10.9 EVENTC (Instruction to Count the Number of Events)
WUME-FP7CPUPGR-12 10-33