Eventc (Instruction To Count The Number Of Events) - Panasonic FP7 Series Command Reference Manual

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

10.9 EVENTC (Instruction to Count the Number of Events)

Ladder diagram
Available operation units (●: Available)
Operatio
bit
n unit
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
W
W
X
Y
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:
WUME-FP7CPUPGR-12
10.9 EVENTC (Instruction to Count the Number of Events)
US
16-Bit device:
W
W
W
S
D
L
R
L
S
D
T
D
SS
UL
32-Bit
device:
TS
TE
U
W
WI
C
C
M
O
S
E
SL
SF
Real
Integer
numbe
r
D
IX
K
H
SF
F
DF
St
rin
Index
g
modifie
r
(Note 1)
" "
10-33

Advertisement

Table of Contents
loading

Table of Contents